-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reduce deps for windows-msvc targets for backtrace #113432
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was public = false
removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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