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
app building fine with rc.2 fails to build with rc.3, in matched_path.rs #1515
Comments
I can confirm this issue on Mac and Linux. |
That is because of the |
I think adding this to your [profile.release.package]
axum = { debug = true } |
Ah yes I see. I'll fix that an ship a new release! |
Edited: disabled my comment |
@lolo32 There is no rc.4 so not sure what you mean. |
doesn't fix it on my box. FYI - even if it's almost surely not related at all - I have
Anyway I just wanted to report the issue as soon as possible, because that's the whole point of "rc" releases. I still can't catch what difference in source code makes it build in release mode in one app and not the other... Still eager to try asap the fantastic work both of you guys are doing on axum ! thanks a lot. |
When #1517 is merged I'll do a new release. Hold your horses 😅 |
Sorry, my bad, forget my comment |
Just switched my Cargo.toml to
and I can confirm you fixed it ♛ ! I don't close this issue myself as you may want to add comments / more fixes. |
Alright 0.6.0-rc.4 is out with the fix! Thanks for reporting it! |
Bug Report
Version
$ cargo tree | grep axum ├── axum v0.6.0-rc.3 │ ├── axum-core v0.3.0-rc.3
Platform
Windows 10
Description
An axum app that was building fine with rc.2 doesn't build with rc.3.
I fixed some breaking but trivial fixes (e.g. nest() => nest_service()) but still :
The odd part is :
rustc, that is nearly always giving good details about the problem and the way to fix it, doesn't in my case, and doesn't even give some filename/line featuring the "culprit" code...
Building with nightly (cargo 1.67.0-nightly (9286a1beb 2022-11-04)) doesn't change anything (as expected, it is a simple if let statement, not the new let chain).
The only difference I can spot for now is the failing build has the "json" feature enabled when the one building fine doesn't, but I don't know if it's related in anyway (and removing the feature makes the app build fail for tons of reason because there are json handlers... It would be possible to comment all these if needed, but I post this issue as is for now).
I'll try to spot more differences between the "OK" code and the the failing one.
The text was updated successfully, but these errors were encountered: