Skip to content

Commit f6ee12f

Browse files
Sort out features and use cargo (#25)
Sort out how we use features, and use cargo to run our examples, instead of directly specifying the path in the `target` directory.
1 parent 2a6cbf6 commit f6ee12f

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

circ_blocks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ required-features = ["smt", "zok"]
118118

119119
[[example]]
120120
name = "zxc"
121-
required-features = ["smt", "zok"]
121+
required-features = ["r1cs", "smt", "zok"]
122122

123123
[[example]]
124124
name = "opa_bench"

encode_ceno.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
#!/bin/bash
2-
cd circ_blocks && target/release/examples/zxc ceno_demo/tower_verifier
2+
set -euxo pipefail
3+
4+
cd circ_blocks
5+
6+
cargo run --release \
7+
--example zxc -- ceno_demo/tower_verifier

setup.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@ set -euxo pipefail
55
cd circ_blocks
66
cargo build --release --example zxc --no-default-features --features r1cs,smt,zok
77
)
8-
(
9-
cd spartan_parallel
10-
RUSTFLAGS="-C target_cpu=native" cargo build --release --features multicore,profile --example interface
11-
)

spartan_parallel/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,7 @@ std = [
7878
simd_backend = ["curve25519-dalek/simd_backend"]
7979
multicore = ["rayon"]
8080
profile = ["colored"]
81+
82+
[[example]]
83+
name = "interface"
84+
required-features = ["multicore", "profile"]

verify_ceno.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
#!/bin/bash
2-
cd spartan_parallel && RUST_BACKTRACE=1 target/release/examples/interface ceno_demo/tower_verifier
2+
set -euxo pipefail
3+
4+
cd spartan_parallel
5+
RUST_BACKTRACE=1 \
6+
cargo run --release \
7+
--example interface -- ceno_demo/tower_verifier

0 commit comments

Comments
 (0)