use caesium::compress_to_size; use caesium::parameters::CSParameters; use std::env; use std::process::ExitCode; fn main() -> ExitCode { let args: Vec = env::args().collect(); let input = args[1].clone(); let output = args[2].clone(); let mut parameters = CSParameters::new(); match compress_to_size(input, output, &mut parameters, 1000000, true) { Ok(_) => ExitCode::SUCCESS, Err(e) => { eprintln!("{}", e); ExitCode::FAILURE } } }