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

Error compiling example #767

Closed
calambrenet opened this issue Jan 7, 2024 · 2 comments
Closed

Error compiling example #767

calambrenet opened this issue Jan 7, 2024 · 2 comments

Comments

@calambrenet
Copy link

calambrenet commented Jan 7, 2024

Doing tests with http-axum example, I get the following error:

INFO invoke server listening on [::]:9000 INFO starting lambda function function="_" manifest="Cargo.toml" Compiling test-project v0.1.0 (/home/calambrenet/RustWorkspace/lambda/test-project) error[E0277]: the trait boundRouter<>: Service<lambda_http::http::Request<lambda_http::Body>>is not satisfied --> src/main.rs:52:9 | 52 | run(app).await | --- ^^^ the traitService<lambda_http::http::Request<lambda_http::Body>>is not implemented forRouter<>| | | required by a bound introduced by this call | = help: the following other types implement traitService: <Router as Service<axum::http::Request<B>>> <Router as Service<IncomingStream<'_>>> note: required by a bound in lambda_http::run--> /home/calambrenet/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lambda_http-0.8.3/src/lib.rs:191:8 | 189 | pub async fn run<'a, R, S, E>(handler: S) -> Result<(), Error> | --- required by a bound in this function 190 | where 191 | S: Service<Request, Response = R, Error = E>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound inrun`

For more information about this error, try rustc --explain E0277.
error: could not compile test-project (bin "test-project") due to previous error
ERROR command exited code=101
`

Any ideas?
thx

@calavera
Copy link
Contributor

calavera commented Jan 9, 2024

Make sure you're using Axum 0.7 and the Runtime version 0.9, you're still using the Runtime version 0.8.3. See this issue for more information: #738

@calavera calavera closed this as completed Jan 9, 2024
Copy link

github-actions bot commented Jan 9, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for the maintainers of this repository to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

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