library/std/Cargo.toml contains:
addr2line = { version = "0.16.0", optional = true, default-features = false }
miniz_oxide = { version = "0.4.0", optional = true, default-features = false }
library/backtrace/Cargo.toml has:
addr2line = { version = "0.17.0", default-features = false }
miniz_oxide = { version = "0.5.0", default-features = false }
(and current master of the backtrace-rs repo has even different versions)
It seems to me backtrace should have its own rustc-dep-of-std feature, which would avoid libstd enabling the feature on stale dependencies.
It's worth noting that the dependencies in crates/as-if-std/Cargo.toml in backtrace-rs match what's currently in libstd, although I'm not sure what that's testing considering there is no dependency on the backtrace crate in there...
library/std/Cargo.tomlcontains:library/backtrace/Cargo.tomlhas:(and current master of the backtrace-rs repo has even different versions)
It seems to me backtrace should have its own rustc-dep-of-std feature, which would avoid libstd enabling the feature on stale dependencies.
It's worth noting that the dependencies in
crates/as-if-std/Cargo.tomlin backtrace-rs match what's currently in libstd, although I'm not sure what that's testing considering there is no dependency on the backtrace crate in there...