You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No matter how I configure my Cargo.toml, I am unable to produce any trace output.
The latest attempt is below:
[dependencies.slog]
version = "1.0.0-alpha6"
default-features = false
features = ["release_max_level_trace", "max_level_trace"]
After digging around a bit I believe the culprit is Cargo not honoring the default-features = false flag.
It seems that all the features are enabled (in this case, "release_max_level_info, release_max_level_trace, max_level_debug, and max_level_trace"). Due to the if clause in lib.rs, and a normal debug build, "max_level_debug" is always hit, and trace can never be enabled.
Update
Running cargo build --verbose shows the following passed to rustc (and includes all 4 dependencies):
No matter how I configure my Cargo.toml, I am unable to produce any trace output.
The latest attempt is below:
After digging around a bit I believe the culprit is Cargo not honoring the default-features = false flag.
It seems that all the features are enabled (in this case, "release_max_level_info, release_max_level_trace, max_level_debug, and max_level_trace"). Due to the if clause in lib.rs, and a normal debug build, "max_level_debug" is always hit, and trace can never be enabled.
Update
Running
cargo build --verbose
shows the following passed to rustc (and includes all 4 dependencies):So this looks like a bug in Cargo where it isn't removing the default dependencies even when
default-features = false
is used.I'm going to open an issue on the cargo project.
The text was updated successfully, but these errors were encountered: