diff --git a/src/config.rs b/src/config.rs index a865366..518f671 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,9 +1,15 @@ -#[derive(serde::Deserialize, serde::Serialize)] +#[derive(serde::Deserialize, serde::Serialize, Default)] pub struct Config { /// The name of the output binary pub name: String, /// The default build to use pub default_build: String, + /// A brief description + pub description: Option, + /// The version of the project + pub version: Option, + /// The authors of the project + pub authors: Option>, /// Build configs pub build: Vec, } @@ -14,6 +20,7 @@ impl Config { name: name.to_owned(), default_build: "debug".to_owned(), build: vec![BuildConf::debug(), BuildConf::release()], + ..Default::default() } }