Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from wasmerio/dont-serialize-private-equals-false
Browse files Browse the repository at this point in the history
Skip serializing the `private` flag if it is `false`
  • Loading branch information
Michael Bryan authored Oct 10, 2023
2 parents 040da37 + 1791623 commit b9d6840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub struct Package {
#[builder(setter(into, strip_option), default)]
pub entrypoint: Option<String>,
/// Mark this as a private package
#[serde(default)]
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
#[builder(default)]
pub private: bool,
}
Expand Down

0 comments on commit b9d6840

Please sign in to comment.