interprocess
interprocess copied to clipboard
Support `Listener` trait of `axum`
Is your feature request related to a problem? Please describe.
From axum 0.8, they have introduced a trait, which can directly pass to serve fn:
- https://docs.rs/axum/latest/axum/serve/trait.Listener.html
- They have implemented this trait for
UnixListnerandTCPListnerof tokio
It is very convenience to serve a http server upon interprocess's stream, and without any dependency, such as hyper.
Describe the solution you'd like
I hope interprocess can impl this trait behind a feature gate axum
Describe alternatives you've considered
The another solution is tht create a stream, and use hyper to serve on it. There is no guide about it. If someone wants to it, i can document it later.
Additional context
Nope.