-
Notifications
You must be signed in to change notification settings - Fork 168
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
ServiceBuilderExt may not extend ServiceBuilder #515
Comments
Yes, we need to do a new release upgrading tower to 0.5. I'm pretty sure we already have an issue for it. |
Oh! I see #503 upgrades tower to 0.5 and the patch is available in the main branch. Thanks for taking a look! |
With tower version Later it complains, that there's Update: It seems, using the |
I don't have this problem anymore with tower-http |
Bug Report
ServiceBuilderExt may not extend ServiceBuilder
Version
tower = "0.5.1"
tower-http = { version = "0.5.2", features = ["util", "trace"] }
Platform
Linux laptop 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
Description
I tried this code:
I expected to see this happen: Compile succeeds
Instead, this happened:
If tower is manually pinned to 0.4.13 in Cargo.toml, then compile works fine.
I also found
ServiceBuilder
in tower 0.5.1 removes manycfg_attr
from 0.4.13 (source), perhaps Rust considers that a major change so it only applies ServiceBuilderExt to ServiceBuilder in 0.4.x?The text was updated successfully, but these errors were encountered: