diff --git a/.travis.yml b/.travis.yml index 607277f..f7975ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,6 @@ addons: - libgmp-dev script: - - cargo run --release \ No newline at end of file + - cd tinysnark && cargo test + - cargo run --release + - cargo test \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 8bc53bb..19bb13c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [package] -name = "bellman" -version = "0.0.1" authors = ["Sean Bowe "] -homepage = "https://github.com/ebfull/bellman" -repository = "https://github.com/ebfull/bellman" +description = "zk-SNARK library" documentation = "https://github.com/ebfull/bellman" +homepage = "https://github.com/ebfull/bellman" license = "MIT" -description = "zk-SNARK library" +name = "bellman" +repository = "https://github.com/ebfull/bellman" +version = "0.0.1" [dependencies.tinysnark] path = "tinysnark" -version = "0.0.1" \ No newline at end of file +version = "0.0.1" diff --git a/src/main.rs b/src/main.rs index 6b95114..9447469 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,7 @@ extern crate tinysnark; fn main() { - tinysnark::test(); -} \ No newline at end of file + tinysnark::init(); + + tinysnark::test(); +} diff --git a/tinysnark/src/lib.rs b/tinysnark/src/lib.rs index 6d87cbd..105d2ac 100644 --- a/tinysnark/src/lib.rs +++ b/tinysnark/src/lib.rs @@ -1,4 +1,5 @@ -#![feature(box_syntax, test)] +#![feature(box_syntax)] +#![cfg_attr(test, feature(test))] extern crate libc; mod arith;