Skip to content

Commit

Permalink
feat: Bump crypto dependencies (#40)
Browse files Browse the repository at this point in the history
- Switches to recently published crypto packages (including the new
ones)
- Uses workspace deps for crypto packages
- Some minor cleanup in `Cargo.toml` files.
  • Loading branch information
popzxc authored Sep 6, 2024
1 parent 83f5084 commit 407645f
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 15 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ zkevm_opcode_defs = { version = "=0.150.4", path = "crates/zkevm_opcode_defs" }
zkevm_test_harness = { version = "=0.150.4", path = "crates/zkevm_test_harness" }
zkevm-assembly = { version = "=0.150.4", path = "crates/zkEVM-assembly" }

# `zksync-crypto` repository
snark_wrapper = "=0.30.1"
bellman = { package = "zksync_bellman", version = "=0.30.1" }
boojum = "=0.30.1"
cs_derive = { package = "zksync_cs_derive", version = "=0.30.1" }

4 changes: 3 additions & 1 deletion crates/circuit_definitions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ categories.workspace = true
description = "ZKsync Era circuits definitions"

[dependencies]
# "Owned" dependencies
circuit_encodings.workspace = true
snark_wrapper = "=0.1.2"
snark_wrapper.workspace = true

# "External" dependencies
derivative = "2.2"
serde = {version = "1", features = ["derive"]}
crossbeam = "0.8"
Expand Down
2 changes: 2 additions & 0 deletions crates/circuit_encodings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ categories.workspace = true
description = "ZKsync Era circuits encodings"

[dependencies]
# "Owned" dependencies
zkevm_circuits.workspace = true
zk_evm.workspace = true

# "External" dependencies
derivative = "2.2"
serde = {version = "1", features = ["derive"]}

Expand Down
2 changes: 1 addition & 1 deletion crates/circuit_sequencer_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description = "ZKsync Era circuit API for sequencer"
[dependencies]

circuit_encodings.workspace = true
bellman = { package = "bellman_ce", version = "=0.7.0" }
bellman.workspace = true


derivative = "2.2"
Expand Down
7 changes: 4 additions & 3 deletions crates/kzg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ description = "ZKsync Era KZG implementation"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
# "Owned" dependencies
boojum.workspace = true
zkevm_circuits.workspace = true

# "External" dependencies
derivative = "2.2"
serde = {version = "1", features = ["derive"]}
serde_json = "1.0"
Expand All @@ -22,9 +26,6 @@ hex = "0.4"
once_cell = "1"
serde_with = {version = "1", features = ["hex"]}

boojum = "=0.2.2"
zkevm_circuits.workspace = true

[dev-dependencies]
rand = "0.4"

Expand Down
5 changes: 4 additions & 1 deletion crates/zkEVM-assembly/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ name = "reader"
path = "src/reader/main.rs"

[dependencies]
# "Owned" dependencies
zkevm_opcode_defs.workspace = true

# "External" dependencies
log = "0.4"
env_logger = "0.9"
structopt = { version = "0.3", default-features = false }
Expand All @@ -25,5 +29,4 @@ sha3 = "0.10.8"
num-bigint = "0.4"
num-traits = "0.2"
lazy_static = "1.4"
zkevm_opcode_defs.workspace = true
smallvec = "1.13"
5 changes: 4 additions & 1 deletion crates/zk_evm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ categories.workspace = true
description = "ZKsync out-of-circuit EraEVM implementation"

[dependencies]
# "Owned" dependencies
zk_evm_abstractions.workspace = true

# "External" dependencies
serde = { version = "1", features = ["derive"] }
serde_json = "1.0"
anyhow = "1.0"
num = { version = "0.4"}
static_assertions = "1"
zk_evm_abstractions.workspace = true
lazy_static = "1.4"

[dev-dependencies]
Expand Down
7 changes: 4 additions & 3 deletions crates/zk_evm_abstractions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ categories.workspace = true
description = "ZKsync EraVM abstractions"

[dependencies]
# "Owned" dependencies
zkevm_opcode_defs.workspace = true

# "External" dependencies
anyhow = "1.0"
serde = { version = "1", features = ["derive"] }
static_assertions = "1"
num_enum = "0.6"

zkevm_opcode_defs.workspace = true


[dev-dependencies]
hex = "0.4"
10 changes: 6 additions & 4 deletions crates/zkevm_circuits/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ categories.workspace = true
description = "ZKsync Era circuits for EraVM"

[dependencies]
# "Owned" dependencies
zkevm_opcode_defs.workspace = true
cs_derive.workspace = true
boojum.workspace = true

# "External" dependencies
derivative = "2"
serde = { version = "1", features = ["derive"] }
rand = "0.4"
Expand All @@ -25,10 +31,6 @@ rand_new = { package = "rand", version = "0.8" }
hex = "0.4"
seq-macro = "0.3"

zkevm_opcode_defs.workspace = true
cs_derive = "=0.2.2"
boojum = "=0.2.2"

[features]
default = []
log_tracing = ["boojum/log_tracing"]
Expand Down
1 change: 1 addition & 0 deletions crates/zkevm_opcode_defs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ name = "circuit_pricing_generator"
path = "src/circuit_pricing_generator/main.rs"

[dependencies]
# "External" dependencies
bitflags = "2"
lazy_static = "1.4"
ethereum-types = "=0.14.1"
Expand Down
3 changes: 2 additions & 1 deletion crates/zkevm_test_harness/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ name = "geometry_config_generator"
path = "src/geometry_config_generator/main.rs"

[dependencies]
# "Owned" dependencies
circuit_definitions.workspace = true
circuit_sequencer_api.workspace = true
kzg.workspace = true

zkevm-assembly.workspace = true

# "External" dependencies
rand = "0.4"
rayon = "1.10"
derivative = "2.2"
Expand Down

0 comments on commit 407645f

Please sign in to comment.