-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add missing strip
entries in dev
and release
profiles.
#12748
Conversation
The docs for the `dev` and `release` profiles mention 10 of the 11 possible profile settings. This commit adds the missing `strip` entries.
r? @ehuss (rustbot has picked a reviewer for you, use r? to override) |
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.
Nice catch. Thanks!
I am just about to submit exactly the same PR 😆.
For the reference, this comes from Profile::default()
:
cargo/src/cargo/core/profiles.rs
Lines 603 to 623 in e6aabe8
impl Default for Profile { | |
fn default() -> Profile { | |
Profile { | |
name: InternedString::new(""), | |
opt_level: InternedString::new("0"), | |
root: ProfileRoot::Debug, | |
lto: Lto::Bool(false), | |
codegen_backend: None, | |
codegen_units: None, | |
debuginfo: DebugInfo::Resolved(TomlDebugInfo::None), | |
debug_assertions: false, | |
split_debuginfo: None, | |
overflow_checks: false, | |
rpath: false, | |
incremental: false, | |
panic: PanicStrategy::Unwind, | |
strip: Strip::None, | |
rustflags: vec![], | |
} | |
} | |
} |
@bors r+ |
☀️ Test successful - checks-actions |
Update cargo 4 commits in e6aabe8b3fcf639be3a5bf68e77853bd7b3fa27d..59596f0f31a94fde48b5aa7e945cd0b7ceca9620 2023-09-26 16:31:53 +0000 to 2023-09-29 19:29:17 +0000 - refactor: Switch from termcolor to anstream (rust-lang/cargo#12751) - Add missing `strip` entries in `dev` and `release` profiles. (rust-lang/cargo#12748) - Add better suggestion for the unsupported silent flag (rust-lang/cargo#12723) - docs(ref): Establish publish best practices (rust-lang/cargo#12745) r? ghost
This is a follow-up to rust-lang#12748.
Update cargo 4 commits in e6aabe8b3fcf639be3a5bf68e77853bd7b3fa27d..59596f0f31a94fde48b5aa7e945cd0b7ceca9620 2023-09-26 16:31:53 +0000 to 2023-09-29 19:29:17 +0000 - refactor: Switch from termcolor to anstream (rust-lang/cargo#12751) - Add missing `strip` entries in `dev` and `release` profiles. (rust-lang/cargo#12748) - Add better suggestion for the unsupported silent flag (rust-lang/cargo#12723) - docs(ref): Establish publish best practices (rust-lang/cargo#12745) r? ghost
Also change some `strip = false` mentions to `strip = "false"`. This is a follow-up to rust-lang#12748.
Add more missing `strip` info to docs. This is a follow-up to #12748.
The docs for the
dev
andrelease
profiles mention 10 of the 11 possible profile settings. This commit adds the missingstrip
entries.