#clojure #rub #buildable

clj_rub

Rust Builder for Clojure

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 20, 2014

#5 in #buildable

MIT license

17KB
368 lines

clj-rub

Clojure RUst Builder

Status

Build Status


lib.rs:

Rust Builder for Clojure.

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

 Usage:
     rub clj [options] [<lifecycle>...]
     rub clj (-h | --help)
     rub clj --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.
     --dist                Create a distribution zip.
     --version             Show rust-rub version.
 

Examples

use buildable::Buildable;
use clj_rub::CljRub;

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

Dependencies

~3.5–5.5MB
~101K SLoC