# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "risc0-zkvm" version = "1.2.1-rc.0" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "RISC Zero zero-knowledge VM" homepage = "https://risczero.com/" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/risc0/risc0/" [package.metadata.docs.rs] features = [ "client", "prove", "getrandom", "std", "unstable", ] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "risc0_zkvm" path = "src/lib.rs" [[example]] name = "datasheet" path = "examples/datasheet.rs" required-features = ["prove"] [[example]] name = "fib" path = "examples/fib.rs" required-features = ["prove"] [[example]] name = "recursion" path = "examples/recursion.rs" required-features = ["prove"] [[test]] name = "keccak" path = "tests/keccak.rs" [[bench]] name = "fib" path = "benches/fib.rs" harness = false required-features = ["prove"] [[bench]] name = "guest_run" path = "benches/guest_run.rs" harness = false [dependencies.anyhow] version = "1.0" default-features = false [dependencies.borsh] version = "1.5" features = ["derive"] default-features = false [dependencies.bytemuck] version = "1.13" features = ["extern_crate_alloc"] [dependencies.getrandom] version = "0.2" features = ["custom"] [dependencies.hex] version = "0.4.3" features = ["alloc"] default-features = false [dependencies.risc0-binfmt] version = "1.2.1-rc.0" default-features = false [dependencies.risc0-circuit-keccak] version = "1.2.1-rc.0" default-features = false [dependencies.risc0-circuit-recursion] version = "1.2.1-rc.0" default-features = false [dependencies.risc0-circuit-rv32im] version = "1.2.1-rc.0" default-features = false [dependencies.risc0-core] version = "1.2.1-rc.0" default-features = false [dependencies.risc0-groth16] version = "1.2.1-rc.0" default-features = false [dependencies.risc0-zkp] version = "1.2.1-rc.0" default-features = false [dependencies.risc0-zkvm-platform] version = "1.2.1-rc.0" features = [ "rust-runtime", "export-getrandom", ] default-features = false [dependencies.rrs-lib] version = "0.1" [dependencies.semver] version = "1.0" default-features = false [dependencies.serde] version = "1.0" features = [ "alloc", "derive", ] default-features = false [dependencies.stability] version = "0.2" [dependencies.tracing] version = "0.1" features = ["attributes"] default-features = false [dev-dependencies.bincode] version = "1.3" [dev-dependencies.chrono] version = "0.4" features = ["serde"] default-features = false [dev-dependencies.ciborium] version = "0.2" [dev-dependencies.clap] version = "4.5" features = ["derive"] [dev-dependencies.mini-redis] version = "0.4.1" default-features = false [dev-dependencies.postcard] version = "1.1" features = ["alloc"] [dev-dependencies.rand] version = "0.8" [dev-dependencies.rmp-serde] version = "1.3" [dev-dependencies.tokio] version = "1.42.0" features = ["macros"] default-features = false [dev-dependencies.tracing-forest] version = "0.1" [dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [features] bonsai = ["dep:bonsai-sdk"] client = [ "dep:bincode", "dep:bytes", "dep:lazy-regex", "dep:risc0-build", "dep:prost", "dep:tempfile", "std", ] cuda = [ "prove", "risc0-circuit-keccak/cuda", "risc0-circuit-recursion/cuda", "risc0-circuit-rv32im/cuda", "risc0-zkp/cuda", ] default = [ "client", "bonsai", ] disable-dev-mode = [] docker = [] dual = [] getrandom = ["risc0-zkvm-platform/getrandom"] heap-embedded-alloc = ["risc0-zkvm-platform/heap-embedded-alloc"] metal = ["prove"] prove = [ "client", "dep:addr2line", "dep:bincode", "dep:elf", "dep:keccak", "dep:lazy-regex", "dep:num-bigint", "dep:num-traits", "dep:prost", "dep:rand", "dep:rayon", "dep:rustc-demangle", "dep:tempfile", "dep:typetag", "risc0-circuit-keccak/prove", "risc0-circuit-recursion/prove", "risc0-circuit-rv32im/prove", "risc0-core/perf", "risc0-groth16/prove", "risc0-zkp/prove", "std", ] r0vm-ver-compat = [] redis = ["dep:redis"] std = [ "anyhow/std", "hex/std", "risc0-binfmt/std", "risc0-groth16/std", "risc0-zkp/std", "serde/std", "sha2/std", ] unstable = ["risc0-zkvm-platform/unstable"] [target.'cfg(not(target_os = "zkvm"))'.dependencies.addr2line] version = "0.22" features = ["rustc-demangle"] optional = true [target.'cfg(not(target_os = "zkvm"))'.dependencies.bincode] version = "1.3" optional = true [target.'cfg(not(target_os = "zkvm"))'.dependencies.bonsai-sdk] version = "1.2.1-rc.0" optional = true default-features = false [target.'cfg(not(target_os = "zkvm"))'.dependencies.bytes] version = "1.7" features = ["serde"] optional = true [target.'cfg(not(target_os = "zkvm"))'.dependencies.elf] version = "0.7" optional = true default-features = false [target.'cfg(not(target_os = "zkvm"))'.dependencies.keccak] version = "0.1.5" optional = true [target.'cfg(not(target_os = "zkvm"))'.dependencies.lazy-regex] version = "3.3" optional = true [target.'cfg(not(target_os = "zkvm"))'.dependencies.num-bigint] version = "0.4" optional = true default-features = false [target.'cfg(not(target_os = "zkvm"))'.dependencies.num-traits] version = "0.2" optional = true default-features = false [target.'cfg(not(target_os = "zkvm"))'.dependencies.prost] version = "0.13" optional = true [target.'cfg(not(target_os = "zkvm"))'.dependencies.rand] version = "0.8" optional = true [target.'cfg(not(target_os = "zkvm"))'.dependencies.rayon] version = "1.5" optional = true [target.'cfg(not(target_os = "zkvm"))'.dependencies.redis] version = "0.27.2" features = ["tls-native-tls"] optional = true default-features = false [target.'cfg(not(target_os = "zkvm"))'.dependencies.risc0-build] version = "1.2.1-rc.0" optional = true default-features = false [target.'cfg(not(target_os = "zkvm"))'.dependencies.rustc-demangle] version = "0.1" optional = true [target.'cfg(not(target_os = "zkvm"))'.dependencies.sha2] version = "0.10" default-features = false [target.'cfg(not(target_os = "zkvm"))'.dependencies.sha3] version = "0.10" default-features = false [target.'cfg(not(target_os = "zkvm"))'.dependencies.tempfile] version = "3" optional = true [target.'cfg(not(target_os = "zkvm"))'.dependencies.typetag] version = "0.2" optional = true [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.crypto-bigint] version = "0.5" features = ["rand"] default-features = false [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.enum-iterator] version = "2.1" [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.flate2] version = "1.0" [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.human-repr] version = "1.0" features = ["1024"] [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.puffin] version = "0.19" [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.puffin_http] version = "0.16" [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.serde_json] version = "1.0" [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.serde_with] version = "3.11" [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.tabled] version = "0.16" [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.tar] version = "0.4" [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.tempfile] version = "3" [target.'cfg(not(target_os = "zkvm"))'.dev-dependencies.test-log] version = "0.2" features = ["trace"] default-features = false