From ab7469e3b8fea6d7e7febe5d278d570254142e78 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 11 Dec 2024 16:53:01 -0600 Subject: [PATCH] fix(script): Don't override the release profile This has been around since #12224 and isn't in the RFC, so its being removed. This is part of #12207. --- src/cargo/util/toml/embedded.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/cargo/util/toml/embedded.rs b/src/cargo/util/toml/embedded.rs index 126188588b2..686fcb77a22 100644 --- a/src/cargo/util/toml/embedded.rs +++ b/src/cargo/util/toml/embedded.rs @@ -141,19 +141,6 @@ fn expand_manifest_( toml::Value::Array(vec![toml::Value::Table(bin)]), ); - let release = manifest - .entry("profile".to_owned()) - .or_insert_with(|| toml::Value::Table(Default::default())) - .as_table_mut() - .ok_or_else(|| anyhow::format_err!("`profile` must be a table"))? - .entry("release".to_owned()) - .or_insert_with(|| toml::Value::Table(Default::default())) - .as_table_mut() - .ok_or_else(|| anyhow::format_err!("`profile.release` must be a table"))?; - release - .entry("strip".to_owned()) - .or_insert_with(|| toml::Value::Boolean(true)); - Ok(manifest) } @@ -588,9 +575,6 @@ build = false edition = "2024" name = "test-" -[profile.release] -strip = true - [workspace] "#]] @@ -626,9 +610,6 @@ build = false edition = "2024" name = "test-" -[profile.release] -strip = true - [workspace] "#]]