reduce deps for windows-msvc targets for backtrace
This commit is contained in:
parent
aafd75a9c5
commit
6203cda583
@ -25,14 +25,12 @@ hashbrown = { version = "0.14", default-features = false, features = ['rustc-dep
|
||||
std_detect = { path = "../stdarch/crates/std_detect", default-features = false, features = ['rustc-dep-of-std'] }
|
||||
|
||||
# Dependencies of the `backtrace` crate
|
||||
addr2line = { version = "0.20.0", optional = true, default-features = false }
|
||||
rustc-demangle = { version = "0.1.21", features = ['rustc-dep-of-std'] }
|
||||
miniz_oxide = { version = "0.7.0", optional = true, default-features = false, public = false }
|
||||
[dependencies.object]
|
||||
version = "0.31.1"
|
||||
optional = true
|
||||
default-features = false
|
||||
features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
|
||||
|
||||
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
|
||||
miniz_oxide = { version = "0.7.0", optional = true, default-features = false }
|
||||
addr2line = { version = "0.20.0", optional = true, default-features = false }
|
||||
object = { version = "0.31.1", default-features = false, optional = true, features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive'] }
|
||||
|
||||
[dev-dependencies]
|
||||
rand = { version = "0.8.5", default-features = false, features = ["alloc"] }
|
||||
|
@ -393,9 +393,15 @@
|
||||
#[allow(unused_extern_crates)]
|
||||
extern crate unwind;
|
||||
|
||||
// FIXME: #94122 this extern crate definition only exist here to stop
|
||||
// miniz_oxide docs leaking into std docs. Find better way to do it.
|
||||
// Remove exclusion from tidy platform check when this removed.
|
||||
#[doc(masked)]
|
||||
#[allow(unused_extern_crates)]
|
||||
#[cfg(feature = "miniz_oxide")]
|
||||
#[cfg(all(
|
||||
not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))),
|
||||
feature = "miniz_oxide"
|
||||
))]
|
||||
extern crate miniz_oxide;
|
||||
|
||||
// During testing, this crate is not actually the "real" std library, but rather
|
||||
|
Loading…
Reference in New Issue
Block a user