Skip to content

Commit

Permalink
think i have one
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdud007 committed Jul 21, 2024
1 parent a9e8cee commit 0c8dc4b
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 39 deletions.
8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,3 @@ thiserror = "1.0.61"
num-bigint = { version = "0.4.4", features = ["serde"] }
blake2 = "0.10.6"
wasm-bindgen = "0.2"

cairovm_verifier_air = { path = "crates/air", default-features = false }
cairovm_verifier_commitment = { path = "crates/commitment", default-features = false }
cairovm_verifier_fri = { path = "crates/fri", default-features = false }
cairovm_verifier_pow = { path = "crates/pow", default-features = false }
cairovm_verifier_stark = { path = "crates/stark", default-features = false }
cairovm_verifier_transcript = { path = "crates/transcript", default-features = false }
cairovm_verifier_proof_parser = { path = "proof-parser", default-features = false }
6 changes: 3 additions & 3 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ version.workspace = true
clap = { version = "4.4.4", features = ["derive"] }
starknet-crypto.workspace = true

cairovm_verifier_air = { workspace = true, features = ["std"] }
cairovm_verifier_stark = { workspace = true, features = ["std"] }
cairovm_verifier_proof_parser = { workspace = true, features = ["std"] }
cairovm_verifier_air = { path = "../crates/air", features = ["std"] }
cairovm_verifier_stark = { path = "../crates/stark", features = ["std"] }
cairovm_verifier_proof_parser = { path = "../proof-parser", features = ["std"] }

[features]
default = ["recursive", "keccak"]
Expand Down
10 changes: 7 additions & 3 deletions crates/air/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ version.workspace = true

[features]
default = ["std", "recursive"]
std = ["dep:thiserror"]
std = [
"dep:thiserror",
"cairovm_verifier_commitment/std",
"cairovm_verifier_transcript/std",
]
dex = []
recursive = []
recursive_with_poseidon = []
Expand All @@ -27,5 +31,5 @@ starknet-crypto.workspace = true
thiserror = { optional = true, workspace = true }
thiserror-no-std.workspace = true

cairovm_verifier_commitment.workspace = true
cairovm_verifier_transcript.workspace = true
cairovm_verifier_commitment = { path = "../commitment", default-features = false }
cairovm_verifier_transcript = { path = "../transcript", default-features = false }
2 changes: 1 addition & 1 deletion crates/commitment/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ thiserror-no-std.workspace = true
crypto-bigint.workspace = true
blake2.workspace = true

cairovm_verifier_transcript.workspace = true
cairovm_verifier_transcript = { path = "../transcript", default-features = false }
6 changes: 3 additions & 3 deletions crates/fri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ starknet-crypto.workspace = true
thiserror = { optional = true, workspace = true }
thiserror-no-std.workspace = true

cairovm_verifier_air.workspace = true
cairovm_verifier_commitment.workspace = true
cairovm_verifier_transcript.workspace = true
cairovm_verifier_air = { path = "../air", default-features = false }
cairovm_verifier_commitment = { path = "../commitment", default-features = false }
cairovm_verifier_transcript = { path = "../transcript", default-features = false }
2 changes: 1 addition & 1 deletion crates/pow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ thiserror = { optional = true, workspace = true }
thiserror-no-std.workspace = true
blake2.workspace = true

cairovm_verifier_transcript.workspace = true
cairovm_verifier_transcript = { path = "../transcript", default-features = false }
18 changes: 12 additions & 6 deletions crates/stark/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ version.workspace = true

[features]
default = ["std", "recursive"]
std = ["dep:thiserror"]
std = [
"dep:thiserror",
"cairovm_verifier_air/std",
"cairovm_verifier_commitment/std",
"cairovm_verifier_fri/std",
"cairovm_verifier_pow/std",
]
dex = []
recursive = []
recursive_with_poseidon = []
Expand All @@ -28,8 +34,8 @@ thiserror = { optional = true, workspace = true }
thiserror-no-std.workspace = true
wasm-bindgen.workspace = true

cairovm_verifier_air.workspace = true
cairovm_verifier_commitment.workspace = true
cairovm_verifier_fri.workspace = true
cairovm_verifier_pow.workspace = true
cairovm_verifier_transcript.workspace = true
cairovm_verifier_air = { path = "../air", default-features = false }
cairovm_verifier_commitment = { path = "../commitment", default-features = false }
cairovm_verifier_fri = { path = "../fri", default-features = false }
cairovm_verifier_pow = { path = "../pow", default-features = false }
cairovm_verifier_transcript = { path = "../transcript", default-features = false }
12 changes: 7 additions & 5 deletions proof-parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ version.workspace = true
[features]
default = ["std"]
std = ["dep:thiserror"]
keccak = []
blake2s = []

[dependencies]
serde.workspace = true
Expand All @@ -23,8 +25,8 @@ clap = { version = "4.5.1", features = ["derive"] }
regex = "1.10.3"
serde_json = "1.0.114"

cairovm_verifier_stark.workspace = true
cairovm_verifier_commitment.workspace = true
cairovm_verifier_fri.workspace = true
cairovm_verifier_air.workspace = true
cairovm_verifier_pow.workspace = true
cairovm_verifier_stark = { path = "../crates/stark", default-features = false }
cairovm_verifier_commitment = { path = "../crates/commitment", default-features = false }
cairovm_verifier_fri = { path = "../crates/fri", default-features = false }
cairovm_verifier_air = { path = "../crates/air", default-features = false }
cairovm_verifier_pow = { path = "../crates/pow", default-features = false }
5 changes: 0 additions & 5 deletions proof-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ mod stark_proof;
mod utils;

use crate::{json_parser::ProofJSON, stark_proof::StarkProof};
use std::convert::TryFrom;
extern crate clap;
extern crate num_bigint;
extern crate regex;
extern crate serde;
use alloc::string::String;
use cairovm_verifier_stark::types::StarkProof as StarkProofFromVerifier;

Expand Down
8 changes: 4 additions & 4 deletions wasm-binding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ version.workspace = true
serde_json.workspace = true
wasm-bindgen.workspace = true

cairovm_verifier_air = { workspace = true, default-features = false }
cairovm_verifier_stark = { workspace = true, default-features = false }
cairovm_verifier_proof_parser = { workspace = true, default-features = false }
cairovm_verifier_air = { path = "../crates/air", default-features = false }
cairovm_verifier_stark = { path = "../crates/stark", default-features = false }
cairovm_verifier_proof_parser = { path = "../proof-parser", default-features = false }

[lib]
crate-type = ["cdylib", "rlib"]
Expand All @@ -31,4 +31,4 @@ small = []
starknet = []
starknet_with_keccak = []
keccak = []
blake2s = []
blake2s = []

0 comments on commit 0c8dc4b

Please sign in to comment.