Skip to content

Commit 406848b

Browse files
committed
feat(zkvms/risc0): Use unstable feature
1 parent b9a899d commit 406848b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

zkvms/risc0/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ in zkvmLib.buildPackage craneLib (commonArgs // {
2323

2424
guestTarget = "riscv32im-risc0-zkvm-elf";
2525

26+
preBuildGuest = ''
27+
# Should be set only when RISC0 is compiled with unstable feature
28+
# https://github.com/risc0/risc0/blob/b5bf2d4a50cfb954da7f507766ba0f120c716958/risc0/build/src/lib.rs#L430-L435
29+
export RISC0_FEATURE_bigint2=""
30+
'';
31+
2632
postBuildGuest = ''
2733
cd ../guest_elf_patch
2834
cargo run --release

zkvms/risc0/guest/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
[workspace]
88

99
[dependencies]
10-
risc0-zkvm = { path = "/nix/store/jvl62igv3z8yvayhk1c02hw51adjc0d0-risc0-unstable-2025-03-12/risc0/zkvm", default-features = false, features = ['std'] }
10+
risc0-zkvm = { path = "/nix/store/jvl62igv3z8yvayhk1c02hw51adjc0d0-risc0-unstable-2025-03-12/risc0/zkvm", default-features = false, features = ['std', 'unstable'] }
1111

1212
wrapper_macro = { version = "0.1.0", path = "../wrapper_macro" }
1313

zkvms/risc0/host/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
risc0-zkvm = { path = "/nix/store/jvl62igv3z8yvayhk1c02hw51adjc0d0-risc0-unstable-2025-03-12/risc0/zkvm" }
8-
risc0-zkp = { path = "/nix/store/jvl62igv3z8yvayhk1c02hw51adjc0d0-risc0-unstable-2025-03-12/risc0/zkp" }
7+
risc0-zkvm = { path = "/nix/store/jvl62igv3z8yvayhk1c02hw51adjc0d0-risc0-unstable-2025-03-12/risc0/zkvm", features = ['unstable'] }
8+
risc0-zkp = { path = "/nix/store/jvl62igv3z8yvayhk1c02hw51adjc0d0-risc0-unstable-2025-03-12/risc0/zkp", features = ['unstable'] }
99
# https://github.com/risc0/risc0/blob/881e512732eca72849b2d0e263a1242aba3158af/risc0/zkp/Cargo.toml#L23
1010
hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
1111
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

0 commit comments

Comments
 (0)