diff --git a/src/cargo/util/toml/mod.rs b/src/cargo/util/toml/mod.rs index 410a41d92941..2e361e2ba435 100644 --- a/src/cargo/util/toml/mod.rs +++ b/src/cargo/util/toml/mod.rs @@ -499,42 +499,25 @@ impl Display for TomlDebugInfo { #[derive(Deserialize, Serialize, Clone, Debug, Default, Eq, PartialEq)] #[serde(default, rename_all = "kebab-case")] pub struct TomlProfile { - #[serde(skip_serializing_if = "Option::is_none")] pub opt_level: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub lto: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub codegen_backend: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub codegen_units: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub debug: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub split_debuginfo: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub debug_assertions: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub rpath: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub panic: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub overflow_checks: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub incremental: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub dir_name: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub inherits: Option, - #[serde(skip_serializing_if = "Option::is_none")] pub strip: Option, // Note that `rustflags` is used for the cargo-feature `profile_rustflags` - #[serde(skip_serializing_if = "Option::is_none")] pub rustflags: Option>, // These two fields must be last because they are sub-tables, and TOML // requires all non-tables to be listed first. - #[serde(skip_serializing_if = "Option::is_none")] pub package: Option>, - #[serde(skip_serializing_if = "Option::is_none")] pub build_override: Option>, }