Cargo Features
[dependencies]
risc0-zkvm = { version = "0.21.0", default-features = false, features = ["client", "cuda", "dual", "metal", "disable-dev-mode", "docker", "getrandom", "std", "prove"] }
- default = client
-
The
client
feature is set by default wheneverrisc0-zkvm
is added without
somewhere in the dependency tree.default-features = false - client default prove? = std
-
Enables bincode, bonsai-sdk, bytes, prost, prost-build, protobuf-src, and tempfile
- cuda = prove
-
Enables cuda of risc0-circuit-recursion, risc0-circuit-rv32im, and risc0-zkp
- dual
- metal = prove
-
Enables metal of risc0-circuit-recursion, risc0-circuit-rv32im, and risc0-zkp
- disable-dev-mode
- docker
-
This flag uses the docker environment to build test guests such as multi-test to ensure accurate cycle and segment counts. Tests that have been gated on this flag measure cycles and segments. Without this flag, the rust build system will generate binaries that not identical across all architectures.
While this is acceptable for most tests, the tests counting cycles and segments will fail intermittently.Enables docker of risc0-groth16
- getrandom
-
The zkVM exposes a getrandom implementation that panics by default. This will expose a getrandom implementation that uses the
sys_random
ecall.Enables getrandom of risc0-zkvm-platform
- std client prove?
-
Enables std of anyhow, hex, optional num-traits, risc0-binfmt, risc0-groth16, risc0-zkp, serde, and sha2
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.Affects
risc0-zkvm::is_dev_mode
… - prove cuda? metal? = client, std
-
Enables rustc-demangle, tempfile, and typetag, addr2line ^0.21, bincode, bytes, crypto-bigint, elf, human-repr, lazy-regex, num-traits, prost, rayon, prost-build, and protobuf-src, prove of risc0-circuit-recursion, risc0-circuit-rv32im, risc0-groth16, and risc0-zkp
Affects
risc0-zkvm::recursion
…