-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo_sgx.toml
37 lines (29 loc) · 2.02 KB
/
Cargo_sgx.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[package]
name = "ringvrf"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
curve25519-dalek = { git = "https://github.com/sgx-test/curve25519-dalek-sgx", branch = "v2.1.3", default-features = false, features = ["serde", "u64_backend"] }
polynomials = { git = "https://github.com/ABMatrix/polynomials.git", branch = "wasm", default-features = false, features = ["alloc"] }
serde_json = { git = "https://github.com/mesalock-linux/serde-json-sgx" }
serde = { version = "1.0", git = "https://github.com/mesalock-linux/serde-sgx", features = ["derive"] }
sha2 = { git = "https://github.com/mesalock-linux/rustcrypto-hashes-sgx", tag = "sgx_1.1.3" }
sha3 = { git = "https://github.com/mesalock-linux/rustcrypto-hashes-sgx", tag = "sgx_1.1.3" }
p256 = { git = "https://github.com/sgx-test/p256-sgx.git", default-features = false, features = ["ecdsa"], optional = true }
k256 = { git = "https://github.com/sgx-test/k256-sgx.git", default-features = false, features = ["ecdsa"], optional = true }
rand_sgx = { package = "rand_core", git = "https://github.com/mesalock-linux/rand-sgx", default-features = false , features = ["getrandom"], optional = true }
sgx_tstd = { rev = "v1.1.3", git = "https://github.com/apache/teaclave-sgx-sdk.git", optional = true }
lazy_static = { version = "1.4.0", features = ["spin_no_std"] }
rand = { version = "0.8", default-features = false, features = ["getrandom"], optional = true }
rand_core = { version = "0.5.1", default-features = false, features = ["getrandom"], optional = true }
[features]
default = ["mesalock_sgx", "pk256", "sgx-prove"]
std = ["sha3/std", "serde_json/std", "serde/std", "sha2/std", "polynomials/std", "prove"]
std-prove = ["prove","std-rand"] # prove std-rand
sgx-prove = ["prove","sgx-rand"]
prove = []
std-rand = ["rand", "rand_core"]
pk256 = ["p256", "k256"] # + p256 +k256
sgx-rand = ["rand_sgx"]
mesalock_sgx = ["sgx_tstd", "curve25519-dalek/mesalock_sgx", "p256/mesalock_sgx", "k256/mesalock_sgx"]