Split libsnark interactions into subcrate

This commit is contained in:
Sean Bowe 2016-08-02 10:22:35 -06:00
parent 104c624271
commit 4130c497da
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
14 changed files with 38 additions and 12 deletions

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "libsnark"]
path = libsnark
[submodule "snark/libsnark"]
path = snark/libsnark
url = https://github.com/zcash/libsnark.git

13
Cargo.lock generated
View File

@ -2,9 +2,7 @@
name = "mpc"
version = "0.0.1"
dependencies = [
"gcc 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
"mpc_snark 0.0.1",
]
[[package]]
@ -22,3 +20,12 @@ name = "libc"
version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "mpc_snark"
version = "0.0.1"
dependencies = [
"gcc 0.3.32 (registry+https://github.com/rust-lang/crates.io-index)",
"lazy_static 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
]

View File

@ -9,11 +9,5 @@ authors = [
license = "MIT OR Apache-2.0"
readme = "README.md"
build = "src/build.rs"
[build-dependencies]
gcc = "0.3.*"
[dependencies]
libc = "0.2.*"
lazy_static = "0.1.*"
mpc_snark = { path = "./snark/" }

18
snark/Cargo.toml Normal file
View File

@ -0,0 +1,18 @@
[package]
name = "mpc_snark"
version = "0.0.1"
authors = [
"Sean Bowe <ewillbefull@gmail.com>",
"Ariel Gabizon <ariel@z.cash>",
"Matthew Green <mgreen@cs.jhu.edu>"
]
license = "MIT OR Apache-2.0"
build = "src/build.rs"
[build-dependencies]
gcc = "0.3.*"
[dependencies]
libc = "0.2.*"
lazy_static = "0.1.*"

7
src/main.rs Normal file
View File

@ -0,0 +1,7 @@
extern crate mpc_snark;
use mpc_snark::*;
fn main() {
initialize();
}