-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Doesn't work when compiling the binary in debug mode #24
Comments
Disabling incremental builds does resolve this: # Cargo.toml
[profile.dev]
incremental = false |
Doing a little more research and it seems that this problem is blocked by rust-lang/rust#47384. Someone also mentioned the |
Also came across this issue. It seems that in release mode things work ok, but in debug mode the module in the crate has to actually be used for it to be properly submitted to the inventory |
I came across this behavior recently. It was working in the 2015 edition, but broke when changing to the 2018 edition. |
This is fixed in rustc 1.62.0 / inventory 0.3.0. |
I always have problems when running my compiled binary in debug mode. For some reason
inventory
's iterator doesn't return anything. I always have to run the binary in release mode. This makes it harder to fix panics as the lines where they happen are unknown and not displayed in the stacktrace.Not sure if this is related to #7...
OS: Windows 10 2004
rustc: 1.46.0 (does happen with earlier versions as well)
inventory: 0.1.8
The text was updated successfully, but these errors were encountered: