diff --git a/Cargo.toml b/Cargo.toml index df52011..f993af6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,9 @@ [workspace] resolver = "2" members = [ - "crates/types", - "crates/quote-verifier", - "crates/pcs", - "crates/collaterals", -] -exclude = [ - "zkvm/risc0", - "zkvm/risc0/guest", + "crates/types", + "crates/quote-verifier", + "crates/pcs", + "crates/collaterals", ] +exclude = ["zkvm/risc0", "zkvm/risc0/guest"] diff --git a/crates/collaterals/Cargo.toml b/crates/collaterals/Cargo.toml index 7e9413e..f89165b 100644 --- a/crates/collaterals/Cargo.toml +++ b/crates/collaterals/Cargo.toml @@ -1,22 +1,18 @@ [package] -name = "dcap-collaterals" +name = "dcap-collaterals" version = "0.1.0" edition = "2021" [dependencies] -anyhow = "1" -hex = "0.4" +anyhow = "1" +hex = "0.4" x509-parser = "0.15.1" -der = { version = "0.7", features = ["alloc", "derive"] } -chrono = { version = "0.4" } -serde_json = { version = "1", features = ["preserve_order"] } - -openssl = { git = "https://github.com/datachainlab/rust-openssl", rev = "6fdf2f32721719d173bf909c97e982fe4e2e2819" } - -dcap-types = { path = "../types" } +der = { version = "0.7", features = ["alloc", "derive"] } +chrono = { version = "0.4" } +serde_json = { version = "1", features = ["preserve_order"] } +openssl = { git = "https://github.com/datachainlab/rust-openssl", rev = "6fdf2f32721719d173bf909c97e982fe4e2e2819" } +dcap-types = { path = "../types" } [features] -default = [] -openssl-vendored = [ - "openssl/vendored" -] +default = [] +openssl-vendored = ["openssl/vendored"] diff --git a/crates/quote-verifier/Cargo.toml b/crates/quote-verifier/Cargo.toml index a0d0037..2873692 100644 --- a/crates/quote-verifier/Cargo.toml +++ b/crates/quote-verifier/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "dcap-quote-verifier" +name = "dcap-quote-verifier" license = "Apache-2.0" version = "0.1.0" edition = "2021" @@ -8,21 +8,19 @@ edition = "2021" crate-type = ["lib"] [dependencies] -hex = { version = "0.4" } -x509-parser = { version = "0.15.1" } -serde_json = { version = "1.0" } -anyhow = { version = "1" } - -p256 = { version = "0.13.2" } -sha2 = { version = "0.10.8" } -sha3 = { version = "0.10.8" } +hex = { version = "0.4" } +x509-parser = { version = "0.15.1" } +serde_json = { version = "1.0" } +anyhow = { version = "1" } +p256 = { version = "0.13.2" } +sha2 = { version = "0.10.8" } +sha3 = { version = "0.10.8" } alloy-sol-types = { version = "0.8.12" } - dcap-types = { path = "../types" } [features] default = [] [dev-dependencies] -serde_json = { version = "1.0", features = ["preserve_order"] } +serde_json = { version = "1.0", features = ["preserve_order"] } dcap-collaterals = { path = "../collaterals" } diff --git a/crates/types/Cargo.toml b/crates/types/Cargo.toml index 41faf78..7f3617b 100644 --- a/crates/types/Cargo.toml +++ b/crates/types/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "dcap-types" +name = "dcap-types" license = "Apache-2.0" version = "0.1.0" edition = "2021" @@ -8,11 +8,11 @@ edition = "2021" crate-type = ["lib"] [dependencies] -x509-parser = { version = "0.15.1" } -serde = { version = "1.0", features = ["derive"] } -chrono = { version = "0.4" } -anyhow = { version = "1" } -hex = { version = "0.4" } +x509-parser = { version = "0.15.1" } +serde = { version = "1.0", features = ["derive"] } +chrono = { version = "0.4" } +anyhow = { version = "1" } +hex = { version = "0.4" } [features] default = [] diff --git a/zkvm/risc0/Cargo.toml b/zkvm/risc0/Cargo.toml index 950ab66..a7f69c0 100644 --- a/zkvm/risc0/Cargo.toml +++ b/zkvm/risc0/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "zkdcap-risc0" +name = "zkdcap-risc0" version = "0.1.0" edition = "2021" @@ -10,12 +10,12 @@ methods = ["guest"] risc0-zkvm = { version = "=1.2.2", default-features = false, optional = true } [build-dependencies] -risc0-build = { version = "=1.2.2", features = ["docker", "unstable"] } +risc0-build = { version = "=1.2.2", features = ["docker", "unstable"] } risc0-binfmt = { version = "=1.2.2", default-features = false } [dev-dependencies] -risc0-zkvm = { version = "=1.2.2", default-features = false, features = ["prove"] } -hex = { version = "0.4", default-features = false, features = ["alloc"] } +risc0-zkvm = { version = "=1.2.2", default-features = false, features = ["prove"] } +hex = { version = "0.4", default-features = false, features = ["alloc"] } dcap-quote-verifier = { path = "../../crates/quote-verifier" } [features] diff --git a/zkvm/risc0/guest/Cargo.toml b/zkvm/risc0/guest/Cargo.toml index 0d73473..c75521d 100644 --- a/zkvm/risc0/guest/Cargo.toml +++ b/zkvm/risc0/guest/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "guests" +name = "guests" version = "0.1.0" edition = "2021" @@ -8,7 +8,7 @@ name = "dcap_quote_verifier" path = "src/bin/main.rs" [dependencies] -risc0-zkvm = { version = "=1.2.2", default-features = false, features = ["std", "unstable"] } +risc0-zkvm = { version = "=1.2.2", default-features = false, features = ["std", "unstable"] } dcap-quote-verifier = { path = "../../../crates/quote-verifier" } [profile.release] @@ -16,5 +16,5 @@ lto = "thin" [patch.crates-io] crypto-bigint = { git = "https://github.com/risc0/RustCrypto-crypto-bigint", tag = "v0.5.5-risczero.0" } -sha2 = { git = "https://github.com/risc0/RustCrypto-hashes", tag = "sha2-v0.10.8-risczero.0" } -p256 = { git = "https://github.com/risc0/RustCrypto-elliptic-curves", tag = "p256/v0.13.2-risczero.0" } +sha2 = { git = "https://github.com/risc0/RustCrypto-hashes", tag = "sha2-v0.10.8-risczero.0" } +p256 = { git = "https://github.com/risc0/RustCrypto-elliptic-curves", tag = "p256/v0.13.2-risczero.0" }