reduce deps for windows-msvc targets for backtrace#113432
reduce deps for windows-msvc targets for backtrace#113432bors merged 3 commits intorust-lang:masterfrom
Conversation
|
(rustbot has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
85fa933 to
55aafaf
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
☔ The latest upstream changes (presumably #108485) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@rustbot ready this eventually be reviewed in backtrace-rs repo, but let's not block on it |
|
Let's reroll r? |
| 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 } |
There was a problem hiding this comment.
Why was public = false removed?
There was a problem hiding this comment.
I don't remember why ;-)
https://rust-lang.github.io/rfcs/1977-public-private-dependencies.html
Q: Where is public / private defined?
Dependencies are private by default and are made public through a public flag on the dependency in the Cargo.toml file. This also means that crates created before the implementation of this RFC will have all their dependencies private.
Probably some unintentional change, but it shouldn't affect anything, as by default it public = false. I can try revert this?
There was a problem hiding this comment.
If it makes no difference then it's fine. But if so then I'm curious why it was added in the first place.
|
This looks great to me! I'm still a bit curious about the @bors r+ |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (08691f0): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 632.73s -> 632.877s (0.02%) |
(eventually) mirrors rust-lang/backtrace-rs#543
Some dependencies of backtrace don't used on windows-msvc targets, so exclude them:
This saves about 30kb of std.dll + 17.5mb of rlibs