|
@@ -114,6 +114,7 @@ pub struct CrateConfig {
|
|
pub executable: ExecutableType,
|
|
pub executable: ExecutableType,
|
|
pub dioxus_config: DioxusConfig,
|
|
pub dioxus_config: DioxusConfig,
|
|
pub release: bool,
|
|
pub release: bool,
|
|
|
|
+ pub verbose: bool,
|
|
pub custom_profile: Option<String>,
|
|
pub custom_profile: Option<String>,
|
|
pub features: Option<Vec<String>>,
|
|
pub features: Option<Vec<String>>,
|
|
}
|
|
}
|
|
@@ -164,6 +165,7 @@ impl CrateConfig {
|
|
let executable = ExecutableType::Binary(output_filename);
|
|
let executable = ExecutableType::Binary(output_filename);
|
|
|
|
|
|
let release = false;
|
|
let release = false;
|
|
|
|
+ let verbose = false;
|
|
let custom_profile = None;
|
|
let custom_profile = None;
|
|
let features = None;
|
|
let features = None;
|
|
|
|
|
|
@@ -178,7 +180,8 @@ impl CrateConfig {
|
|
release,
|
|
release,
|
|
dioxus_config,
|
|
dioxus_config,
|
|
custom_profile,
|
|
custom_profile,
|
|
- features
|
|
|
|
|
|
+ features,
|
|
|
|
+ verbose,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -192,6 +195,11 @@ impl CrateConfig {
|
|
self
|
|
self
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ pub fn with_verbose(&mut self, verbose: bool) -> &mut Self {
|
|
|
|
+ self.verbose = verbose;
|
|
|
|
+ self
|
|
|
|
+ }
|
|
|
|
+
|
|
pub fn set_profile(&mut self, profile: String) -> &mut Self {
|
|
pub fn set_profile(&mut self, profile: String) -> &mut Self {
|
|
self.custom_profile = Some(profile);
|
|
self.custom_profile = Some(profile);
|
|
self
|
|
self
|