update config to add some more useful fields

This commit is contained in:
2026-03-22 18:57:21 -05:00
parent 9a2ce7b1cc
commit 15ff177b18

View File

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