Skip to content

Commit

Permalink
through feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tyshkor committed Jul 21, 2023
1 parent 8c2021d commit b1442f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
- name: cargo test
run: |
export PATH=$HOME/bin:$PATH
cargo test --workspace --exclude witness::witness_calculator::tests::smt_verifier
cargo test
- name: cargo test smt_verifier
run: |
export PATH=$HOME/bin:$PATH
cargo test --tests witness::witness_calculator::tests::smt_verifier
cargo test --features smt_verifier
- name: cargo test circom 2 feature flag
run: |
Expand Down Expand Up @@ -69,12 +69,12 @@ jobs:
- name: cargo test
run: |
export PATH=$HOME/bin:$PATH
cargo test --workspace --exclude witness::witness_calculator::tests::smt_verifier
cargo test
- name: cargo test smt_verifier
run: |
export PATH=$HOME/bin:$PATH
cargo test --tests witness::witness_calculator::tests::smt_verifier
cargo test --features smt_verifier
- name: cargo test circom 2 feature flag
run: |
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ wasm = ["wasmer/js-default"]
bench-complex-all = []
circom-2 = []
ethereum = ["ethers-core"]
smt_verifier = []
1 change: 1 addition & 0 deletions src/witness/witness_calculator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ mod tests {
});
}

#[cfg(feature = "smt_verifier")]
#[test]
fn smt_verifier() {
let witness =
Expand Down

0 comments on commit b1442f3

Please sign in to comment.