diff --git a/Cargo.toml b/Cargo.toml index b93a881eb..01605040d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,11 +9,14 @@ members = [ "provers/risc0/driver", "provers/risc0/builder", "provers/sgx/prover", - "provers/sgx/guest", + "provers/sgx/guest", "provers/sgx/setup", "pipeline", ] +[workspace.package] +edition = "2021" + # Always optimize; building and running the guest takes much longer without optimization. [profile.dev] opt-level = 3 @@ -159,4 +162,4 @@ rand = "0.8.5" rand_core = "0.6.4" base64-serde = "0.7.0" base64 = "0.21.7" -dirs = "5.0.1" \ No newline at end of file +dirs = "5.0.1" diff --git a/host/Cargo.toml b/host/Cargo.toml index bda580f8c..1ea810e1b 100644 --- a/host/Cargo.toml +++ b/host/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "raiko-host" version = "0.1.0" -edition = "2021" +edition = { workspace = true } default-run = "raiko-host" [dependencies] diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 371625de0..0cd79d1ff 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "raiko-lib" version = "0.1.0" -edition = "2021" +edition = { workspace = true } [dependencies] raiko-primitives = { workspace = true } diff --git a/pipeline/examples/builder/Cargo.toml b/pipeline/examples/builder/Cargo.toml index f82327f6f..679f202e5 100644 --- a/pipeline/examples/builder/Cargo.toml +++ b/pipeline/examples/builder/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "builder" version = "0.1.0" -edition = "2021" +edition = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -12,4 +12,3 @@ raiko-pipeline = { workspace = true } [features] sp1 = ["raiko-pipeline/sp1"] risc0 = ["raiko-pipeline/risc0"] - diff --git a/pipeline/examples/driver/Cargo.toml b/pipeline/examples/driver/Cargo.toml index 09630f99f..31ab55654 100644 --- a/pipeline/examples/driver/Cargo.toml +++ b/pipeline/examples/driver/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "driver" version = "0.1.0" -edition = "2021" +edition = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -16,4 +16,3 @@ methods = { path = "../risc0/methods", optional = true } # default = ["sp1", "risc0"] sp1 = ["dep:sp1-sdk"] risc0 = ["dep:risc0-zkvm", "dep:methods"] - diff --git a/pipeline/examples/risc0/Cargo.toml b/pipeline/examples/risc0/Cargo.toml index fbc6b85b7..1811f1d1b 100644 --- a/pipeline/examples/risc0/Cargo.toml +++ b/pipeline/examples/risc0/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "example" version = "0.1.0" -edition = "2021" +edition = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -29,4 +29,4 @@ c-kzg-taiko = { git = "https://github.com/smtmfft/c-kzg-4844", branch = "for-alp ] } sha2 = "0.10.8" -[workspace] \ No newline at end of file +[workspace] diff --git a/pipeline/examples/risc0/methods/Cargo.toml b/pipeline/examples/risc0/methods/Cargo.toml index 50aa173e3..d628766b3 100644 --- a/pipeline/examples/risc0/methods/Cargo.toml +++ b/pipeline/examples/risc0/methods/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "methods" version = "0.1.0" -edition = "2021" +edition = { workspace = true } -[workspace] \ No newline at end of file +[workspace] diff --git a/pipeline/examples/sp1/Cargo.toml b/pipeline/examples/sp1/Cargo.toml index b5a6a9a36..b30f8a056 100644 --- a/pipeline/examples/sp1/Cargo.toml +++ b/pipeline/examples/sp1/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "example" version = "0.1.0" -edition = "2021" +edition = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -29,4 +29,4 @@ c-kzg-taiko = { git = "https://github.com/smtmfft/c-kzg-4844", branch = "for-alp ] } sha2 = "0.10.8" -[workspace] \ No newline at end of file +[workspace] diff --git a/pipeline/harness/Cargo.toml b/pipeline/harness/Cargo.toml index 96777eab0..7cd4812e9 100644 --- a/pipeline/harness/Cargo.toml +++ b/pipeline/harness/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "harness" version = "0.1.0" -edition = "2021" +edition = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] once_cell = "1.8.0" -[workspace] \ No newline at end of file +[workspace] diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index 9848c3096..53c7a6200 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "raiko-primitives" version = "0.1.0" -edition = "2021" +edition = { workspace = true } [dependencies] alloy-primitives = { workspace = true } @@ -34,4 +34,4 @@ serde_json = { version = "1.0", default-features = false } [features] std = ["anyhow/std", "rlp/std"] -c-kzg = ["dep:c-kzg", "revm-primitives/c-kzg", "dep:sha2", "dep:tempfile", "dep:once_cell"] \ No newline at end of file +c-kzg = ["dep:c-kzg", "revm-primitives/c-kzg", "dep:sha2", "dep:tempfile", "dep:once_cell"] diff --git a/provers/powdr/Cargo.toml b/provers/powdr/Cargo.toml index e5f6e0525..1f85cb18a 100644 --- a/provers/powdr/Cargo.toml +++ b/provers/powdr/Cargo.toml @@ -21,4 +21,3 @@ powdr-riscv-runtime ={ git = "https://github.com/ceciliaz030/powdr", branch = "+ # cargo build --release -Z build-std=core,alloc --target riscv32imac-unknown-none-elf --lib - diff --git a/provers/risc0/builder/Cargo.toml b/provers/risc0/builder/Cargo.toml index 15f3e49c8..8d8fffde9 100644 --- a/provers/risc0/builder/Cargo.toml +++ b/provers/risc0/builder/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "risc0-builder" version = "0.1.0" -edition = "2021" +edition = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -9,4 +9,4 @@ edition = "2021" raiko-pipeline = { path = "../../../pipeline", features = ["risc0"]} [features] -test = [] \ No newline at end of file +test = [] diff --git a/provers/risc0/driver/Cargo.toml b/provers/risc0/driver/Cargo.toml index 8bab244c9..2dd73044b 100644 --- a/provers/risc0/driver/Cargo.toml +++ b/provers/risc0/driver/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "risc0-driver" version = "0.1.0" -edition = "2021" +edition = { workspace = true } [dependencies] raiko-lib = { workspace = true, optional = true } @@ -57,4 +57,4 @@ enable = [ "hex", ] cuda = ["risc0-zkvm?/cuda"] -metal = ["risc0-zkvm?/metal"] \ No newline at end of file +metal = ["risc0-zkvm?/metal"] diff --git a/provers/sgx/prover/Cargo.toml b/provers/sgx/prover/Cargo.toml index a997fb68c..3999f85f6 100644 --- a/provers/sgx/prover/Cargo.toml +++ b/provers/sgx/prover/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sgx-prover" version = "0.1.0" -edition = "2021" +edition = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/provers/sgx/setup/Cargo.toml b/provers/sgx/setup/Cargo.toml index 69b09414b..ea508d556 100644 --- a/provers/sgx/setup/Cargo.toml +++ b/provers/sgx/setup/Cargo.toml @@ -2,7 +2,7 @@ [package] name = "raiko-setup" version = "0.1.0" -edition = "2021" +edition = { workspace = true } [dependencies] # sp1-driver = { path = "../provers/sp1/driver", optional = true } diff --git a/provers/sp1/builder/Cargo.toml b/provers/sp1/builder/Cargo.toml index 35bc8fd06..c26bdfa56 100644 --- a/provers/sp1/builder/Cargo.toml +++ b/provers/sp1/builder/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "sp1-builder" version = "0.1.0" -edition = "2021" +edition = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -9,4 +9,4 @@ edition = "2021" raiko-pipeline = { path = "../../../pipeline", features = ["sp1"]} [features] -test = [] \ No newline at end of file +test = [] diff --git a/provers/sp1/driver/Cargo.toml b/provers/sp1/driver/Cargo.toml index 5459e517f..e30489d54 100644 --- a/provers/sp1/driver/Cargo.toml +++ b/provers/sp1/driver/Cargo.toml @@ -1,7 +1,7 @@ [package] version = "0.1.0" name = "sp1-driver" -edition = "2021" +edition = { workspace = true } [dependencies] raiko-lib = { workspace = true, optional = true } diff --git a/provers/sp1/guest/Cargo.toml b/provers/sp1/guest/Cargo.toml index 3f67d911a..8fdd424e4 100644 --- a/provers/sp1/guest/Cargo.toml +++ b/provers/sp1/guest/Cargo.toml @@ -21,4 +21,4 @@ sp1-precompiles = { git = "https://www.github.com/succinctlabs/sp1.git", branch [workspace] -# cargo prove build \ No newline at end of file +# cargo prove build