Skip to content

Commit

Permalink
Recognize dev_dependencies as alias of dev-dependencies
Browse files Browse the repository at this point in the history
Looks like Cargo permits both forms.
  • Loading branch information
dtolnay committed May 8, 2019
1 parent 914e0ba commit c50d874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dependencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct Manifest {
pub features: Map<String, Vec<String>>,
#[serde(default)]
pub dependencies: Map<String, Dependency>,
#[serde(default, rename = "dev-dependencies")]
#[serde(default, alias = "dev-dependencies")]
pub dev_dependencies: Map<String, Dependency>,
}

Expand Down

0 comments on commit c50d874

Please sign in to comment.