Skip to content

Commit

Permalink
Omit cargo-features from generated Cargo.toml if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 20, 2023
1 parent 6653404 commit 3e4029e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::path::PathBuf;

#[derive(Serialize, Debug)]
pub struct Manifest {
#[serde(rename = "cargo-features")]
#[serde(rename = "cargo-features", skip_serializing_if = "Vec::is_empty")]
pub cargo_features: Vec<String>,
pub package: Package,
#[serde(skip_serializing_if = "Map::is_empty")]
Expand Down

0 comments on commit 3e4029e

Please sign in to comment.