Skip to content

Commit

Permalink
Rust prover/cirgen integration (risc0#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaub authored Aug 2, 2022
1 parent 9a37634 commit 61a16a7
Show file tree
Hide file tree
Showing 47 changed files with 169,248 additions and 218 deletions.
12 changes: 6 additions & 6 deletions Cargo-guest.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ version = 3

[[package]]
name = "anyhow"
version = "1.0.58"
version = "1.0.59"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704"
checksum = "c91f1f46651137be86f3a2b9a8359f9ab421d04d941c62b5982e1ca21113adf9"

[[package]]
name = "array-init"
Expand Down Expand Up @@ -160,18 +160,18 @@ checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"

[[package]]
name = "serde"
version = "1.0.140"
version = "1.0.141"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc855a42c7967b7c369eb5860f7164ef1f6f81c20c7cc1141f2a604e18723b03"
checksum = "7af873f2c95b99fcb0bd0fe622a43e29514658873c8ceba88c4cb88833a22500"
dependencies = [
"serde_derive",
]

[[package]]
name = "serde_derive"
version = "1.0.140"
version = "1.0.141"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f2122636b9fe3b81f1cb25099fcf2d3f542cdb1d45940d56c713158884a05da"
checksum = "75743a150d003dd863b51dc809bcad0d73f2102c53632f1e954e738192a3413f"
dependencies = [
"proc-macro2",
"quote",
Expand Down
79 changes: 55 additions & 24 deletions Cargo-host.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ dependencies = [

[[package]]
name = "anyhow"
version = "1.0.58"
version = "1.0.59"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704"
checksum = "c91f1f46651137be86f3a2b9a8359f9ab421d04d941c62b5982e1ca21113adf9"

[[package]]
name = "array-init"
Expand Down Expand Up @@ -159,9 +159,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"

[[package]]
name = "bytes"
version = "1.2.0"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0b3de4a0c5e67e16066a0715723abd91edc2f9001d09c46e1dca929351e130e"
checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db"

[[package]]
name = "bzip2"
Expand Down Expand Up @@ -258,9 +258,9 @@ dependencies = [

[[package]]
name = "clap"
version = "3.2.15"
version = "3.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44bbe24bbd31a185bc2c4f7c2abe80bea13a20d57ee4e55be70ac512bdc76417"
checksum = "a3dbbb6653e7c55cc8595ad3e1f7be8f32aba4eb7ff7f0fd1163d4f3d137c0a9"
dependencies = [
"atty",
"bitflags",
Expand Down Expand Up @@ -307,9 +307,9 @@ dependencies = [

[[package]]
name = "compiler_builtins"
version = "0.1.75"
version = "0.1.78"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6e3183e88f659a862835db8f4b67dbeed3d93e44dd4927eef78edb1c149d784"
checksum = "413b6b13f725a46cdec40364e0c1d564a22cf0aaac5f1e267a129d956478a6b4"

[[package]]
name = "constant_time_eq"
Expand Down Expand Up @@ -466,9 +466,9 @@ dependencies = [

[[package]]
name = "ctor"
version = "0.1.22"
version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f877be4f7c9f246b183111634f75baa039715e3f46ce860677d3b19a69fb229c"
checksum = "cdffe87e1d521a10f9696f833fe502293ea446d7f256c06128293a4119bdf4cb"
dependencies = [
"quote",
"syn",
Expand Down Expand Up @@ -566,6 +566,19 @@ dependencies = [
"cfg-if",
]

[[package]]
name = "env_logger"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
dependencies = [
"atty",
"humantime",
"log",
"regex",
"termcolor",
]

[[package]]
name = "fastrand"
version = "1.8.0"
Expand Down Expand Up @@ -804,6 +817,12 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"

[[package]]
name = "humantime"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"

[[package]]
name = "hyper"
version = "0.14.20"
Expand Down Expand Up @@ -1054,9 +1073,9 @@ dependencies = [

[[package]]
name = "ndarray"
version = "0.15.4"
version = "0.15.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dec23e6762830658d2b3d385a75aa212af2f67a4586d4442907144f3bb6a1ca8"
checksum = "adb12d4e967ec485a5f71c6311fe28158e9d6f4bc4a447b474184d0f91a8fa32"
dependencies = [
"matrixmultiply",
"num-complex",
Expand Down Expand Up @@ -1522,7 +1541,7 @@ dependencies = [
name = "risc0-make-id"
version = "0.1.0"
dependencies = [
"clap 3.2.15 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 3.2.16 (registry+https://github.com/rust-lang/crates.io-index)",
"risc0-zkvm",
]

Expand All @@ -1534,7 +1553,7 @@ dependencies = [
"assert_cmd",
"assert_fs",
"bytemuck",
"clap 3.2.15 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 3.2.16 (registry+https://github.com/rust-lang/crates.io-index)",
"risc0-zkvm",
"risc0-zkvm-methods",
]
Expand Down Expand Up @@ -1577,9 +1596,11 @@ dependencies = [
"bytemuck",
"ctor",
"cxx",
"env_logger",
"log",
"rand",
"risc0-zkp",
"risc0-zkvm-circuit",
"risc0-zkvm-methods",
"risc0-zkvm-platform",
"risc0-zkvm-sys",
Expand All @@ -1589,6 +1610,15 @@ dependencies = [
"xmas-elf",
]

[[package]]
name = "risc0-zkvm-circuit"
version = "0.10.0"
dependencies = [
"env_logger",
"log",
"risc0-zkp",
]

[[package]]
name = "risc0-zkvm-circuit-gen"
version = "0.10.0"
Expand Down Expand Up @@ -1751,9 +1781,9 @@ dependencies = [

[[package]]
name = "serde"
version = "1.0.140"
version = "1.0.141"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc855a42c7967b7c369eb5860f7164ef1f6f81c20c7cc1141f2a604e18723b03"
checksum = "7af873f2c95b99fcb0bd0fe622a43e29514658873c8ceba88c4cb88833a22500"
dependencies = [
"serde_derive",
]
Expand All @@ -1770,9 +1800,9 @@ dependencies = [

[[package]]
name = "serde_derive"
version = "1.0.140"
version = "1.0.141"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f2122636b9fe3b81f1cb25099fcf2d3f542cdb1d45940d56c713158884a05da"
checksum = "75743a150d003dd863b51dc809bcad0d73f2102c53632f1e954e738192a3413f"
dependencies = [
"proc-macro2",
"quote",
Expand Down Expand Up @@ -1937,11 +1967,12 @@ dependencies = [

[[package]]
name = "time"
version = "0.3.11"
version = "0.3.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72c91f41dcb2f096c05f0873d667dceec1087ce5bcf984ec8ffb19acddbb3217"
checksum = "74b7cc93fc23ba97fde84f7eea56c55d1ba183f495c6715defdfc7b9cb8c870f"
dependencies = [
"itoa 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
"js-sys",
"libc",
"num_threads",
"time-macros",
Expand Down Expand Up @@ -2039,9 +2070,9 @@ checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"

[[package]]
name = "tracing"
version = "0.1.35"
version = "0.1.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a400e31aa60b9d44a52a8ee0343b5b18566b03a8321e0d321f695cf56e940160"
checksum = "2fce9567bd60a67d08a16488756721ba392f24f29006402881e43b19aac64307"
dependencies = [
"cfg-if",
"pin-project-lite",
Expand All @@ -2050,9 +2081,9 @@ dependencies = [

[[package]]
name = "tracing-core"
version = "0.1.28"
version = "0.1.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b7358be39f2f274f322d2aaed611acc57f382e8eb1e5b48cb9ae30933495ce7"
checksum = "5aeea4303076558a00714b823f9ad67d58a3bbda1df83d8827d21193156e22f7"
dependencies = [
"once_cell",
]
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
"risc0/zkvm/r0vm",
"risc0/zkvm/sdk/rust",
"risc0/zkvm/sdk/rust/build",
"risc0/zkvm/sdk/rust/circuit",
]

exclude = [
Expand All @@ -24,5 +25,8 @@ lto = true
[profile.bootstrap]
inherits = "release"

[profile.dev.package.risc0-zkvm-circuit]
debug = false

[workspace.metadata.workspaces]
allow_branch = "main"
7 changes: 4 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,18 @@ crates_repository(
manifests = [
"//:Cargo.toml",
"//risc0/core:Cargo.toml",
"//risc0/zkp:Cargo.toml",
"//risc0/zkp/rust:Cargo.toml",
"//risc0/zkvm:Cargo.toml",
"//risc0/zkvm/circuit/make-circuit:Cargo.toml",
"//risc0/zkvm/circuit:Cargo.toml",
"//risc0/zkvm/platform:Cargo.toml",
"//risc0/zkvm/prove/make-id:Cargo.toml",
"//risc0/zkvm/r0vm:Cargo.toml",
"//risc0/zkvm/sdk/rust:Cargo.toml",
"//risc0/zkvm/sdk/rust/build:Cargo.toml",
"//risc0/zkvm/sdk/rust/circuit:Cargo.toml",
"//risc0/zkvm/sdk/rust/platform:Cargo.toml",
"//risc0/zkp:Cargo.toml",
"//risc0/zkvm:Cargo.toml",
"//risc0/zkvm/r0vm:Cargo.toml",
],
quiet = False,
)
Expand Down
Loading

0 comments on commit 61a16a7

Please sign in to comment.