|
@@ -6,10 +6,6 @@ use super::*;
|
|
|
/// Config options for the build system.
|
|
|
#[derive(Clone, Debug, Default, Deserialize, Parser)]
|
|
|
pub struct ConfigOptsBuild {
|
|
|
- /// The index HTML file to drive the bundling process [default: index.html]
|
|
|
- #[arg(long)]
|
|
|
- pub target: Option<PathBuf>,
|
|
|
-
|
|
|
/// Build in release mode [default: false]
|
|
|
#[clap(long)]
|
|
|
#[serde(default)]
|
|
@@ -35,14 +31,18 @@ pub struct ConfigOptsBuild {
|
|
|
/// Space separated list of features to activate
|
|
|
#[clap(long)]
|
|
|
pub features: Option<Vec<String>>,
|
|
|
+
|
|
|
+ /// Rustc platform triple
|
|
|
+ #[clap(long)]
|
|
|
+ pub target: Option<String>,
|
|
|
+
|
|
|
+ /// Extra arguments passed to cargo build
|
|
|
+ #[clap(last = true)]
|
|
|
+ pub cargo_args: Vec<String>,
|
|
|
}
|
|
|
|
|
|
#[derive(Clone, Debug, Default, Deserialize, Parser)]
|
|
|
pub struct ConfigOptsServe {
|
|
|
- /// The index HTML file to drive the bundling process [default: index.html]
|
|
|
- #[arg(short, long)]
|
|
|
- pub target: Option<PathBuf>,
|
|
|
-
|
|
|
/// Port of dev server
|
|
|
#[clap(long)]
|
|
|
#[clap(default_value_t = 8080)]
|
|
@@ -89,6 +89,14 @@ pub struct ConfigOptsServe {
|
|
|
/// Space separated list of features to activate
|
|
|
#[clap(long)]
|
|
|
pub features: Option<Vec<String>>,
|
|
|
+
|
|
|
+ /// Rustc platform triple
|
|
|
+ #[clap(long)]
|
|
|
+ pub target: Option<String>,
|
|
|
+
|
|
|
+ /// Extra arguments passed to cargo build
|
|
|
+ #[clap(last = true)]
|
|
|
+ pub cargo_args: Vec<String>,
|
|
|
}
|
|
|
|
|
|
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Serialize, Deserialize, Debug)]
|
|
@@ -129,4 +137,12 @@ pub struct ConfigOptsBundle {
|
|
|
/// Space separated list of features to activate
|
|
|
#[clap(long)]
|
|
|
pub features: Option<Vec<String>>,
|
|
|
+
|
|
|
+ /// Rustc platform triple
|
|
|
+ #[clap(long)]
|
|
|
+ pub target: Option<String>,
|
|
|
+
|
|
|
+ /// Extra arguments passed to cargo build
|
|
|
+ #[clap(last = true)]
|
|
|
+ pub cargo_args: Vec<String>,
|
|
|
}
|