Skip to content
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

axum_server doesn't work with unreleased version of axum (0.3.0) #24

Closed
pbspbsingh opened this issue Nov 2, 2021 · 4 comments
Closed

Comments

@pbspbsingh
Copy link

Lately Axum has modified the internal implementation of Router and they have started boxing the routers by default (https://github.com/tokio-rs/axum). Unfortunately these new changes don't work with axum_server.
I get following compilation error:

error[E0277]: `(dyn axum::clone_box_service::CloneService<axum::http::Request<axum::body::Body>, Response = axum::http::Response<http_body::combinators::box_body::UnsyncBoxBody<bytes::Bytes, axum::Error>>, Error = Infallible, Future = Pin<Box<(dyn futures_util::Future<Output = Result<axum::http::Response<http_body::combinators::box_body::UnsyncBoxBody<bytes::Bytes, axum::Error>>, Infallible>> + std::marker::Send + 'static)>>> + std::marker::Send + 'static)` cannot be shared between threads safely
@programatik29
Copy link
Owner

See #23.

@programatik29
Copy link
Owner

Keep this issue open until resolved. 👍

@pbspbsingh
Copy link
Author

Thanks for the prompt response.

@programatik29
Copy link
Owner

Updated yesterday. Version 0.3 works with axum.

@programatik29 programatik29 changed the title axum_sever doesn't work with unreleased version of axum (0.3.0) axum_server doesn't work with unreleased version of axum (0.3.0) Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants