4 releases
Uses old Rust 2015
0.0.4 | Jan 25, 2015 |
---|---|
0.0.3 | Jan 15, 2015 |
0.0.2 | Jan 14, 2015 |
0.0.1 | Dec 19, 2014 |
#4 in #buildable
19KB
392 lines
cargo-rub
cargo Rust Builder
Status
lib.rs
:
Rust Builder for Cargo.
This crate is intended for use with rub.
If you don't have rub
installed, visit https://github.com/rust-builder/rub
for installation instructions.
Rub Options
$ rub cargo --help cargo - Rust Builder Usage: rub cargo [options] [<lifecycle>...] rub cargo (-h | --help) rub cargo --version Options: -d --dir <dir> Set the projects directory. -b --branch <branch> Set the build branch. [default: master] -t --enable-test Enable tests. -p --prefix <prefix> Set the installation prefix. -u --url <url> Set the SCM URL. -h --help Show this usage. --force-configure Force the configure lifecycle to run. --disable-optimize Disable compile-time optimization. --version Show cargo-rub version.
Examples
use buildable::Buildable;
use cargo_rub::CargoRub;
// To run lifecycle methods outside of rub...
let mut cr = CargoRub::new();
let b = Buildable::new(&mut cr, &vec!["rub".to_string(),
"cargo".to_string(),
"--version".to_string()]);
assert_eq!(Ok(0), b.version());
Dependencies
~3.5–5.5MB
~101K SLoC