Skip to content

Commit 4b07db8

Browse files
committed
make deps implicitly required
1 parent b572f42 commit 4b07db8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/util/mod_file.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ fn all_platforms() -> HashSet<PlatformName> {
283283
])
284284
}
285285

286+
fn default_required() -> bool {
287+
true
288+
}
289+
286290
#[derive(Default, Deserialize, PartialEq, Clone)]
287291
#[serde(rename_all = "camelCase")]
288292
pub enum DependencyImportance {
@@ -299,7 +303,7 @@ pub struct Dependency {
299303
#[serde(deserialize_with = "parse_comparable_version")]
300304
pub version: VersionReq,
301305
pub importance: Option<DependencyImportance>,
302-
#[serde(default)]
306+
#[serde(default = "default_required")]
303307
pub required: bool,
304308
#[serde(default = "all_platforms")]
305309
pub platforms: HashSet<PlatformName>,

0 commit comments

Comments
 (0)