This commit is contained in:
nora 2023-04-01 15:58:00 +02:00
parent 9243224163
commit 02b8eaa7b2
5 changed files with 30 additions and 9 deletions

View file

@ -1,3 +1,5 @@
#![feature(non_exhaustive_omitted_patterns_lint)]
#[macro_use]
extern crate tracing;
@ -32,7 +34,7 @@ pub enum Cargo {
Minimize(Options),
}
#[derive(clap::Args, Debug)]
#[derive(clap::Args, Debug, Clone)]
pub struct Options {
/// Additional arguments to pass to cargo/rustc, separated by whitespace.
#[arg(long)]
@ -99,6 +101,9 @@ pub struct Options {
/// Do not touch the following files.
#[arg(long)]
pub ignore_file: Vec<PathBuf>,
#[arg(skip)]
pub no_delete_functions: bool,
}
#[derive(Debug, Clone)]
@ -177,6 +182,7 @@ impl Default for Options {
script_path: None,
script_path_lints: None,
ignore_file: Vec::new(),
no_delete_functions: false,
}
}
}