Skip to content

Commit

Permalink
chore: Prepare crates for publishing (#147)
Browse files Browse the repository at this point in the history
## What ❔

- Changes git dependency on `pairing` to the published one.
- Same for `vise` and `vise-exporter`
- Uses `workspace.version` for all the crates.

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->
  • Loading branch information
popzxc authored Jul 6, 2024
1 parent decb988 commit 11bc1d2
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 21 deletions.
14 changes: 9 additions & 5 deletions node/Cargo.lock

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

7 changes: 4 additions & 3 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ edition = "2021"
authors = ["The Matter Labs Team <[email protected]>"]
homepage = "https://matter-labs.io/"
license = "MIT"
version = "0.1.0"

[workspace.dependencies]
# Crates from this repo.
Expand All @@ -38,9 +39,9 @@ zksync_protobuf = { path = "libs/protobuf" }
zksync_protobuf_build = { path = "libs/protobuf_build" }

# Crates from Matter Labs.
pairing = { package = "pairing_ce", git = "https://github.com/matter-labs/pairing.git", rev = "d24f2c5871089c4cd4f54c0ca266bb9fef6115eb" }
vise = { version = "0.1.0", git = "https://github.com/matter-labs/vise.git", rev = "a5bb80c9ce7168663114ee30e794d6dc32159ee4" }
vise-exporter = { version = "0.1.0", git = "https://github.com/matter-labs/vise.git", rev = "a5bb80c9ce7168663114ee30e794d6dc32159ee4" }
pairing = { package = "pairing_ce", version = "=0.28.6" }
vise = "0.1.0"
vise-exporter = "0.1.0"

# Crates from third-parties.
anyhow = "1"
Expand Down
2 changes: 1 addition & 1 deletion node/actors/bft/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_consensus_bft"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion node/actors/executor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_consensus_executor"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion node/actors/network/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_consensus_network"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion node/libs/concurrency/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_concurrency"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion node/libs/crypto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_consensus_crypto"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion node/libs/protobuf/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_protobuf"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions node/libs/protobuf_build/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_protobuf_build"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand All @@ -18,4 +18,4 @@ quote.workspace = true
syn.workspace = true

[lints]
workspace = true
workspace = true
2 changes: 1 addition & 1 deletion node/libs/roles/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_consensus_roles"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion node/libs/storage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_consensus_storage"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion node/libs/utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_consensus_utils"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion node/tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tester"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion node/tools/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zksync_consensus_tools"
version = "0.1.0"
version.workspace = true
edition.workspace = true
authors.workspace = true
homepage.workspace = true
Expand Down

0 comments on commit 11bc1d2

Please sign in to comment.