diff --git a/src/main.rs b/src/main.rs index 6c23055..7d42835 100644 --- a/src/main.rs +++ b/src/main.rs @@ -283,6 +283,7 @@ OPTIONS: --all-features Activate all available features --no-default-features Do not activate the `default` feature --profile Build with the given profile. + --config Build with the given cargo config --target Build for the target triple --target-dir Directory for all generated artifacts --frozen Require Cargo.lock and cache are up to date @@ -329,6 +330,7 @@ pub struct Args { all_features: bool, no_default_features: bool, profile: Option, + config: Option, target: Option, target_dir: Option, frozen: bool, @@ -364,6 +366,7 @@ fn parse_args(raw_args: Vec) -> Result Vec { list.push(format!("--profile={}", profile)); } + if let Some(ref config) = args.config { + list.push(format!("--config={}", config)); + } if let Some(ref target) = args.target { list.push(format!("--target={}", target));