use cargo_rx::{process_input, Args};
fn main() {
let args = ["--name", "John Smitty", "--count", "2"];
process_input(Args {
name: Some("hello_world".into()),
args: Vec::from(args.map(String::from)),
input_args: false,
cargo: cargo_options::CommonOptions {
verbose: 1,
jobs: Some(2),
profile: Some("release".to_owned()),
features: vec!["__feature-1".to_owned()],
no_default_features: true,
ignore_rust_version: true,
color: Some("always".to_owned()),
locked: true,
offline: true,
config: vec!["my_cfg='test'".to_owned()],
..Default::default()
},
..Default::default()
})
.unwrap();
}