Skip to content

Commit

Permalink
cargo is required to build by default
Browse files Browse the repository at this point in the history
Ensure that cargo is specified as a build requirement by default since
the template hardcodes the usage of cargo. fixes wdv4758h#7
  • Loading branch information
cardoe committed Dec 3, 2019
1 parent d8e4373 commit 696e055
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/config/arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ fn empty_string() -> String {
"".to_string()
}

/// cargo is used by the template so default that
fn default_depends() -> Vec<String> {
vec!["cargo".to_string()]
}

/// data in `[package.metadata.arch]` section
#[derive(Clone, Debug, Default, Deserialize)]
pub struct CargoArch {
Expand Down Expand Up @@ -83,7 +88,7 @@ pub struct CargoArch {
#[serde(default)]
pub depends: Vec<String>,
/// An array of packages this package depends on to build but are not needed at runtime.
#[serde(default)]
#[serde(default = "default_depends")]
pub makedepends: Vec<String>,
/// An array of packages this package depends on to run its test suite but are not needed at runtime.
#[serde(default)]
Expand Down

0 comments on commit 696e055

Please sign in to comment.