1 个不稳定版本
使用旧的Rust 2015
| 0.0.2 | 2015年1月25日 |
|---|
#9 in #buildable
21KB
473 行
mongo-db
MongoDB Rust构建器
状态
lib.rs:
Rust构建器用于Mongo DB。
此包旨在与rub一起使用。
如果您还没有安装rub,请访问https://github.com/rust-builder/rub以获取安装说明。
Rub选项
$ rub mongo --help
mongo - Rust Builder
Usage:
rub mongo [options] [<lifecycle>...]
rub mongo (-h | --help)
rub mongo --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. [default: /usr/local]
-u --url <url> Set the SCM URL.
-h --help Show this usage.
--version Show rust-rub version.
示例
use buildable::Buildable;
use mongo_rub::MongoRub;
// To run lifecycle methods outside of rub...
let mut mr = MongoRub::new();
let b = Buildable::new(&mut mr, &vec!["rub".to_string(),
"mongo".to_string(),
"--version".to_string()]);
assert_eq!(Ok(0), b.version());
依赖项
~3.5–5.5MB
~101K SLoC