#buildable #builder

rust_rub

Rust Builder for Rust

5 releases

Uses old Rust 2015

0.0.5 Jan 25, 2015
0.0.4 Jan 15, 2015
0.0.3 Jan 14, 2015
0.0.2 Dec 30, 2014
0.0.1 Dec 19, 2014

#5 in #buildable

MIT license

20KB
404 lines

rust-rub

rust Rust Builder

Status

Build Status


lib.rs:

Rust Builder for Rust.

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 rust --help
rust - Rust Builder

Usage:
    rub rust [options] [<lifecycle>...]
    rub rust (-h | --help)
    rub rust --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.
    --target <target>     Target triples to build.
    --force-configure     Force the configure lifecycle to run.
    --enable-docs         Enable document generation.
    --disable-ccache      Disable ccache during build.
    --disable-valgrind    Disable valgrind testing.
    --version             Show rust-rub version.

Examples

use buildable::Buildable;
use rust_rub::RustRub;

// To run lifecycle methods outside of rub...
let mut rr = RustRub::new();
let b = Buildable::new(&mut rr, &vec!["rub".to_string(),
                                      "rust".to_string(),
                                      "--version".to_string()]);
assert_eq!(Ok(0), b.version());

Dependencies

~3.5–5.5MB
~96K SLoC