Skip to content

Client and server mods as feature toggles #2223

@softprops

Description

@softprops

When using hyper in libraries I often find myself using it in one of two ways and not often both at the same time. I'm either writing clients or servers. Servers can contain clients for other servers in application contexts but in library contexts I find this often not the case.

There is some discussion going on in rusoto about bundled client sizes (rusoto/rusoto#1722) there are multiple factors that contribute to this but I'd like to try and make strawman argument for being able to reduce it's hyper bindings down to only what is needed for a client sdk.

Before putting potentially wasted effort into this, I wanted to see if you think there are good reasons why this might not yield meaningful value or of you know of others actively doing this research already.

Metadata

Metadata

Assignees

Labels

A-clientArea: client.A-serverArea: server.B-breaking-changeBlocked: this is an "API breaking change".C-refactorCategory: refactor. This would improve the clarity of internal code.E-mediumEffort: medium. Some knowledge of how hyper internal works would be useful.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions