5 个版本
使用旧的 Rust 2015
| 0.0.5 | 2015年1月25日 |
|---|---|
| 0.0.4 | 2015年1月15日 |
| 0.0.3 | 2015年1月14日 |
| 0.0.2 | 2014年12月30日 |
| 0.0.1 | 2014年12月19日 |
#6 in #buildable
20KB
404 行
rust-rub
rust Rust 构建器
状态
lib.rs:
Rust 的构建器用于 Rust。
该软件包旨在与 rub 一起使用。
如果您还没有安装 rub,请访问 https://github.com/rust-builder/rub 以获取安装说明。
Rub 选项
$ 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.
示例
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());
依赖项
~3.5–5.5MB
~100K SLoC