Auto merge of #113432 - klensy:ms-cut-backtrace, r=ChrisDenton
reduce deps for windows-msvc targets for backtrace (eventually) mirrors https://github.com/rust-lang/backtrace-rs/pull/543 Some dependencies of backtrace don't used on windows-msvc targets, so exclude them: miniz_oxide (+ adler) addr2line (+ gimli) object (+ memchr) This saves about 30kb of std.dll + 17.5mb of rlibs
This commit is contained in:
commit
08691f0c92
4 changed files with 13 additions and 9 deletions
|
@ -397,9 +397,15 @@ extern crate libc;
|
|||
#[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…
Add table
Add a link
Reference in a new issue