-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add serve_uds
to axum-extra
#2474
Comments
Will it also make serving connections over arbitrary |
No. hyper 0.14's server used to allow that but it leads to nasty trait bounds which I really want to avoid. |
A trait for a listener already exists: Listener |
Oh neat! That might be worth trying to use. |
So I guess #2479 will work for UDS and we don't actually want to add a separate |
Yes exactly! |
No, that PR should have closed this issue. |
axum::serve
intentionally only supportsTcpListener
because it greatly simplifies the API. However that means serving over a unix domain socket requires a lot of boilerplate.We should add a dedicated
serve_uds
function to axum-extra that makes that easier. I should be possible to more or less copyaxum::serve
and use Tokio'sUnixListener
instead.The text was updated successfully, but these errors were encountered: