mirror of https://github.com/zcash/mpc.git
Split libsnark interactions into subcrate
This commit is contained in:
parent
104c624271
commit
4130c497da
|
@ -1,3 +1,3 @@
|
|||
[submodule "libsnark"]
|
||||
path = libsnark
|
||||
[submodule "snark/libsnark"]
|
||||
path = snark/libsnark
|
||||
url = https://github.com/zcash/libsnark.git
|
||||
|
|
|
@ -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)",
|
||||
]
|
||||
|
||||
|
|
|
@ -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/" }
|
||||
|
|
|
@ -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.*"
|
|
@ -0,0 +1,7 @@
|
|||
extern crate mpc_snark;
|
||||
|
||||
use mpc_snark::*;
|
||||
|
||||
fn main() {
|
||||
initialize();
|
||||
}
|
Loading…
Reference in New Issue