Skip to content

Commit

Permalink
Merge pull request #251 from dtolnay/skipcargofeatures
Browse files Browse the repository at this point in the history
Omit cargo-features from generated Cargo.toml if empty
  • Loading branch information
dtolnay committed Dec 20, 2023
2 parents 6653404 + 3e4029e commit c28428d
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 c28428d

Please sign in to comment.