Enable Specifying Dependencies of `serve`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.3k
- Forks
- 1.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 14
Description
Currently, several bounds of the serve function rely on private traits and types which aren't exposed from hyper. This makes it impossible to create a function in another library which accepts a compatible Executor type and passes it onto the serve function. Would it be possible to either expose these traits, or expose the Exec enum which implements them, so that libraries which wrap hyper can pass on this dependency to their users?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the serve bounds in src/server/mod.rs around the linked location, then inspect the Exec enum in src/common/exec.rs and its implemented traits. Determine which public API would let wrapper libraries pass a compatible executor to serve; done means an external library can express and forward that dependency without relying on private hyper items.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100