mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
more
This commit is contained in:
parent
a36bf95c3e
commit
1cb5114557
7 changed files with 226 additions and 69 deletions
|
|
@ -21,7 +21,11 @@ enum Cargo {
|
|||
#[derive(clap::Args, Debug)]
|
||||
pub struct Options {
|
||||
#[arg(short, long)]
|
||||
verify_error_path: Option<PathBuf>,
|
||||
script_path: Option<PathBuf>,
|
||||
|
||||
#[arg(long)]
|
||||
cargo_args: Option<String>,
|
||||
|
||||
#[arg(long)]
|
||||
rustc: bool,
|
||||
#[arg(long)]
|
||||
|
|
@ -38,8 +42,6 @@ pub fn minimize() -> Result<()> {
|
|||
|
||||
let mut minimizer = Minimizer::new_glob_dir(&options.path, build);
|
||||
|
||||
minimizer.delete_dead_code().context("deleting dead code")?;
|
||||
|
||||
minimizer.run_passes([
|
||||
Box::new(Privatize::default()) as Box<dyn Processor>,
|
||||
Box::new(EverybodyLoops::default()) as Box<dyn Processor>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue