cargo-udeps 0.1.19

Find unused dependencies in Cargo.toml
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::{env, io};

use cargo::core::shell::Shell;

fn main() {
	let mut config = cargo::Config::default()
		.unwrap_or_else(|e| cargo::exit_with_error(e.into(), &mut Shell::new()));
	if let Err(err) = cargo_udeps::run(env::args_os(), &mut config, io::stdout()) {
		cargo::exit_with_error(err, &mut config.shell());
	}
}