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: undeclared crate or module axum #24

Open
makorne opened this issue Mar 12, 2024 · 1 comment
Open

Error: undeclared crate or module axum #24

makorne opened this issue Mar 12, 2024 · 1 comment

Comments

@makorne
Copy link

makorne commented Mar 12, 2024

Hi!
Thank you for your great crate!

I tried it with tonic and got an error:

error[E0433]: failed to resolve: use of undeclared crate or module `axum`
 --> /home/ben/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower_governor-0.3.2/src/governor.rs:5:5 

 | use axum::body::Body;
 |     ^^^^ use of undeclared crate or module `axum`

@benwis
Copy link
Owner

benwis commented Mar 14, 2024

Unfortunately this is kinda a known issue at this point, the last round of PRs changed from a body type must be String requirement, to a body type must be axum::body::Body requirement. I've been meaning to see if I can make it generic, but as I'm currently over my head in things to do I haven't gotten around to it

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