Skip to content

Commit

Permalink
chore: organize workspaces (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam authored Jul 19, 2024
1 parent 8a1d629 commit 5de8269
Show file tree
Hide file tree
Showing 83 changed files with 204 additions and 178 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ permissions:
on:
push:
branches:
- dev
# - main
- main

jobs:
release-plz:
Expand Down
18 changes: 18 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
"recursion/circuit",
"recursion/compiler",
"recursion/core",
"recursion/derive",
"recursion/gnark-cli",
"recursion/gnark-ffi",
"recursion/program",
Expand Down Expand Up @@ -40,6 +41,23 @@ debug = true
debug-assertions = true

[workspace.dependencies]
sp1-build = { path = "build", version = "1.0.0-rc.1" }
sp1-derive = { path = "derive", version = "1.0.0-rc.1" }
sp1-core = { path = "core", version = "1.0.0-rc.1" }
sp1-cli = { path = "cli", version = "1.0.0-rc.1", default-features = false }
sp1-eval = { path = "eval", version = "1.0.0-rc.1", default-features = false }
sp1-helper = { path = "helper", version = "1.0.0-rc.1", default-features = false }
sp1-primitives = { path = "primitives", version = "1.0.0-rc.1" }
sp1-prover = { path = "prover", version = "1.0.0-rc.1" }
sp1-recursion-compiler = { path = "recursion/compiler", version = "1.0.0-rc.1" }
sp1-recursion-core = { path = "recursion/core", version = "1.0.0-rc.1", default-features = false }
sp1-recursion-derive = { path = "recursion/derive", version = "1.0.0-rc.1", default-features = false }
sp1-recursion-gnark-ffi = { path = "recursion/gnark-ffi", version = "1.0.0-rc.1", default-features = false }
sp1-recursion-program = { path = "recursion/program", version = "1.0.0-rc.1", default-features = false }
sp1-recursion-circuit = { path = "recursion/circuit", version = "1.0.0-rc.1", default-features = false }
sp1-sdk = { path = "sdk", version = "1.0.0-rc.1" }
sp1-lib = { path = "zkvm/lib", version = "1.0.0-rc.1", default-features = false }
sp1-zkvm = { path = "zkvm/entrypoint", version = "1.0.0-rc.1", default-features = false }
p3-air = "0.1.3-succinct"
p3-field = "0.1.3-succinct"
p3-commit = "0.1.3-succinct"
Expand Down
8 changes: 4 additions & 4 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ vergen = { version = "8", default-features = false, features = [
anyhow = { version = "1.0.83", features = ["backtrace"] }
cargo_metadata = "0.18.1"
clap = { version = "4.5.9", features = ["derive", "env"] }
sp1-build = { path = "../build", version = "1.0.0-rc.1" }
sp1-prover = { path = "../prover", version = "1.0.0-rc.1" }
sp1-sdk = { path = "../sdk", version = "1.0.0-rc.1" }
sp1-core = { path = "../core", version = "1.0.0-rc.1" }
sp1-build = { workspace = true }
sp1-prover = { workspace = true }
sp1-sdk = { workspace = true }
sp1-core = { workspace = true }
reqwest = { version = "0.12.4", features = [
"stream",
"json",
Expand Down
6 changes: 3 additions & 3 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ p3-symmetric = { workspace = true }
p3-uni-stark = { workspace = true }
p3-util = { workspace = true }
rrs_lib = { package = "rrs-succinct", version = "0.1.0" }
sp1-derive = { path = "../derive", version = "1.0.0-rc.1" }
sp1-primitives = { path = "../primitives", version = "1.0.0-rc.1" }
sp1-derive = { workspace = true }
sp1-primitives = { workspace = true }

anyhow = "1.0.83"
amcl = { package = "snowbridge-amcl", version = "1.0.2", default-features = false, features = [
Expand Down Expand Up @@ -73,7 +73,7 @@ tiny-keccak = { version = "2.0.2", features = ["keccak"] }
criterion = "0.5.1"
num = { version = "0.4.3", features = ["rand"] }
rand = "0.8.5"
sp1-zkvm = { path = "../zkvm/entrypoint", version = "1.0.0-rc.1" }
sp1-zkvm = { workspace = true }

[features]
neon = ["p3-blake3/neon"]
Expand Down
2 changes: 1 addition & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ use stark::StarkGenericConfig;
/// This string should be updated whenever any step in verifying an SP1 proof changes, including
/// core, recursion, and plonk-bn254. This string is used to download SP1 artifacts and the gnark
/// docker image.
pub const SP1_CIRCUIT_VERSION: &str = "1.0.0-rc.1";
pub const SP1_CIRCUIT_VERSION: &str = "v1.0.0-rc.1";
4 changes: 2 additions & 2 deletions eval/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ categories = { workspace = true }
publish = false

[dependencies]
sp1-core = { path = "../core", version = "1.0.0-rc.1" }
sp1-prover = { path = "../prover", version = "1.0.0-rc.1" }
sp1-core = { workspace = true }
sp1-prover = { workspace = true }

clap = { version = "4.5.9", features = ["derive"] }
csv = "1.3.0"
Expand Down
24 changes: 15 additions & 9 deletions examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,26 @@ members = [
"patch-testing/script",
]
resolver = "2"

[workspace.package]
version = "1.0.0-rc.1"
edition = "2021"

[workspace.dependencies]
sp1-build = { path = "../build" }
sp1-derive = { path = "../derive" }
sp1-core = { path = "../core" }
sp1-cli = { path = "../cli", default-features = false }
sp1-eval = { path = "../eval", default-features = false }
sp1-helper = { path = "../helper", default-features = false }
sp1-primitives = { path = "../primitives" }
sp1-prover = { path = "../prover" }
sp1-recursion-compiler = { path = "../recursion/compiler" }
sp1-recursion-core = { path = "../recursion/core", default-features = false }
sp1-recursion-derive = { path = "../recursion/derive", default-features = false }
sp1-recursion-gnark-ffi = { path = "../recursion/gnark-ffi", default-features = false }
sp1-recursion-program = { path = "../recursion/program", default-features = false }
sp1-recursion-circuit = { path = "../recursion/circuit", default-features = false }
sp1-sdk = { path = "../sdk" }
sp1-lib = { path = "../zkvm/lib", default-features = false }
sp1-zkvm = { path = "../zkvm/entrypoint", default-features = false }
4 changes: 1 addition & 3 deletions examples/aggregation/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ publish = false
[dependencies]
hex = "0.4.3"
sha2 = "0.10.8"
sp1-zkvm = { path = "../../../zkvm/entrypoint", features = [
"verify",
], version = "1.0.0-rc.1" }
sp1-zkvm = { path = "../../../zkvm/entrypoint", features = ["verify"] }

[patch.crates-io]
sha2-v0-10-8 = { git = "https://github.com/sp1-patches/RustCrypto-hashes.git", package = "sha2", branch = "patch-v0.10.8" }
Binary file modified examples/aggregation/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
8 changes: 4 additions & 4 deletions examples/aggregation/script/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "aggregation-script"
version = "1.0.0-rc.1"
edition = "2021"
version = { workspace = true }
edition = { workspace = true }
publish = false

[dependencies]
hex = "0.4.3"
sp1-sdk = { path = "../../../sdk", version = "1.0.0-rc.1" }
sp1-sdk = { workspace = true }
tracing = "0.1.40"

[build-dependencies]
sp1-helper = { path = "../../../helper", version = "1.0.0-rc.1" }
sp1-helper = { workspace = true }
2 changes: 1 addition & 1 deletion examples/chess/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
publish = false

[dependencies]
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
chess = "3.2.0"
sp1-zkvm = { path = "../../../zkvm/entrypoint", version = "1.0.0-rc.1" }
Binary file modified examples/chess/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
8 changes: 4 additions & 4 deletions examples/chess/script/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "chess-script"
version = "1.0.0-rc.1"
edition = "2021"
version = { workspace = true }
edition = { workspace = true }
publish = false

[dependencies]
sp1-sdk = { path = "../../../sdk", version = "1.0.0-rc.1" }
sp1-sdk = { workspace = true }

[build-dependencies]
sp1-helper = { path = "../../../helper", version = "1.0.0-rc.1" }
sp1-helper = { workspace = true }
4 changes: 2 additions & 2 deletions examples/cycle-tracking/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
publish = false

[dependencies]
sp1-zkvm = { path = "../../../zkvm/entrypoint", version = "1.0.0-rc.1" }
sp1-derive = { path = "../../../derive", version = "1.0.0-rc.1" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
sp1-derive = { path = "../../../derive" }
Binary file modified examples/cycle-tracking/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
8 changes: 4 additions & 4 deletions examples/cycle-tracking/script/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "cycle-tracking-script"
version = "1.0.0-rc.1"
edition = "2021"
version = { workspace = true }
edition = { workspace = true }
publish = false

[dependencies]
sp1-sdk = { path = "../../../sdk", version = "1.0.0-rc.1" }
sp1-sdk = { workspace = true }

[build-dependencies]
sp1-helper = { path = "../../../helper", version = "1.0.0-rc.1" }
sp1-helper = { workspace = true }
2 changes: 1 addition & 1 deletion examples/fibonacci/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"
publish = false

[dependencies]
sp1-zkvm = { path = "../../../zkvm/entrypoint", version = "1.0.0-rc.1" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
Binary file modified examples/fibonacci/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
8 changes: 4 additions & 4 deletions examples/fibonacci/script/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[package]
name = "fibonacci-script"
version = "1.0.0-rc.1"
edition = "2021"
version = { workspace = true }
edition = { workspace = true }
default-run = "fibonacci-script"
publish = false

[dependencies]
itertools = "0.12.1"
sp1-sdk = { path = "../../../sdk", version = "1.0.0-rc.1" }
sp1-sdk = { workspace = true }
sha2 = "0.10.8"

[build-dependencies]
sp1-helper = { path = "../../../helper", version = "1.0.0-rc.1" }
sp1-helper = { workspace = true }

[[bin]]
name = "plonk_bn254"
Expand Down
2 changes: 1 addition & 1 deletion examples/io/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
publish = false

[dependencies]
sp1-zkvm = { path = "../../../zkvm/entrypoint", version = "1.0.0-rc.1" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
serde = { version = "1.0.195", features = ["derive"] }
Binary file modified examples/io/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
8 changes: 4 additions & 4 deletions examples/io/script/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "io-script"
version = "1.0.0-rc.1"
edition = "2021"
version = { workspace = true }
edition = { workspace = true }
publish = false

[dependencies]
serde = { version = "1.0.196", features = ["derive"] }
sp1-sdk = { path = "../../../sdk", version = "1.0.0-rc.1" }
sp1-sdk = { workspace = true }

[build-dependencies]
sp1-helper = { path = "../../../helper", version = "1.0.0-rc.1" }
sp1-helper = { workspace = true }
2 changes: 1 addition & 1 deletion examples/is-prime/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"
publish = false

[dependencies]
sp1-zkvm = { git = "https://github.com/succinctlabs/sp1.git" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
6 changes: 3 additions & 3 deletions examples/is-prime/script/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "is-prime-script"
version = "1.0.0-rc.1"
edition = "2021"
version = { workspace = true }
edition = { workspace = true }
publish = false

[dependencies]
sp1-sdk = { path = "../../../sdk", version = "1.0.0-rc.1" }
sp1-sdk = { workspace = true }
4 changes: 2 additions & 2 deletions examples/json/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "lib"
version = "1.0.0-rc.1"
edition = "2021"
version = { workspace = true }
edition = { workspace = true }
publish = false

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions examples/json/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
publish = false

[dependencies]
sp1-zkvm = { path = "../../../zkvm/entrypoint", version = "1.0.0-rc.1" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }
serde_json = "1.0.113"
serde = "1.0.197"
lib = { path = "../lib", version = "1.0.0-rc.1" }
lib = { path = "../lib" }
Binary file modified examples/json/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
10 changes: 5 additions & 5 deletions examples/json/script/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "json-script"
version = "1.0.0-rc.1"
edition = "2021"
version = { workspace = true }
edition = { workspace = true }
publish = false

[dependencies]
serde = "1.0.197"
serde_json = "1.0.114"
sp1-sdk = { path = "../../../sdk", version = "1.0.0-rc.1" }
lib = { path = "../lib", version = "1.0.0-rc.1" }
sp1-sdk = { workspace = true }
lib = { path = "../lib" }

[build-dependencies]
sp1-helper = { path = "../../../helper", version = "1.0.0-rc.1" }
sp1-helper = { workspace = true }
2 changes: 1 addition & 1 deletion examples/patch-testing/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
publish = false

[dependencies]
sp1-zkvm = { path = "../../../zkvm/entrypoint", version = "1.0.0-rc.1" }
sp1-zkvm = { path = "../../../zkvm/entrypoint" }

sha2-v0-9-8 = { version = "0.9.8", package = "sha2" }
# Note: Can't have sha2-v0-10-6 and v0-10-8 at the same time due to crate resolution.
Expand Down
Binary file modified examples/patch-testing/program/elf/riscv32im-succinct-zkvm-elf
Binary file not shown.
Loading

0 comments on commit 5de8269

Please sign in to comment.