interprocess icon indicating copy to clipboard operation
interprocess copied to clipboard

Support `Listener` trait of `axum`

Open greenhat616 opened this issue 11 months ago • 0 comments

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 UnixListner and TCPListner of 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.

greenhat616 avatar Jan 04 '25 13:01 greenhat616