Could someone confirm if the into_make_service() method is no longer absolutely necessary? #3448
Answered
by
yanns
Mauricio951021
asked this question in
Q&A
-
axum::serve(listener, router.into_make_service()).await? |
Beta Was this translation helpful? Give feedback.
Answered by
yanns
Aug 26, 2025
Replies: 1 comment
-
I confirm you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mauricio951021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I confirm you can use
axum::serve(listener, app).await.unwrap();
You can see that in action in the hello world example: https://github.com/tokio-rs/axum/blob/main/examples/hello-world/src/main.rs