Skip to content

Commit

Permalink
fix versions for determinist sensitive crates (massalabs#3990)
Browse files Browse the repository at this point in the history
  • Loading branch information
modship authored May 31, 2023
1 parent ecc6ea6 commit 279933b
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 31 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion massa-async-pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Massa Labs <[email protected]>"]
edition = "2021"

[dependencies]
nom = "7.1"
nom = "=7.1"
num = "0.4"
serde = { version = "1.0", features = ["derive"] }
rand = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion massa-bootstrap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
[dependencies]
displaydoc = "0.2"
num_enum = "0.5"
nom = "7.1"
nom = "=7.1"
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion massa-consensus-exports/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
[dependencies]
crossbeam-channel = "0.5.6"
displaydoc = "0.2"
nom = "7.1"
nom = "=7.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion massa-executed-ops/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Massa Labs <[email protected]>"]
edition = "2021"

[dependencies]
nom = "7.1"
nom = "=7.1"
massa_models = { path = "../massa-models" }
massa_hash = { path = "../massa-hash" }
massa_serialization = { path = "../massa-serialization" }
2 changes: 1 addition & 1 deletion massa-final-state/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
displaydoc = "0.2"
serde = { version = "1.0", features = ["derive"] }
nom = "7.1"
nom = "=7.1"
bs58 = { version = "0.4", features = ["check"] }
thiserror = "1.0"
tracing = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions massa-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
blake3 = "1.3"
bs58 = { version = "0.4", features = ["check"] }
blake3 = "=1.3"
bs58 = { version = "=0.4", features = ["check"] }
displaydoc = "0.2"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
nom = "7.1"
nom = "=7.1"

# custom modules
massa_serialization = { path = "../massa-serialization" }
Expand Down
2 changes: 1 addition & 1 deletion massa-ledger-exports/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tempfile = { version = "3.3", optional = true } # use with testing feature
thiserror = "1.0"
nom = "7.1"
nom = "=7.1"

# custom modules
massa_proto = { path = "../massa-proto" }
Expand Down
2 changes: 1 addition & 1 deletion massa-ledger-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
serde_json = "1.0"
tempfile = { version = "3.3", optional = true } # use with testing feature
rocksdb = "0.20"
nom = "7.1"
nom = "=7.1"
tracing = "0.1"

# custom modules
Expand Down
9 changes: 5 additions & 4 deletions massa-models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ thiserror = "1.0"
num = { version = "0.4", features = ["serde"] }
directories = "4.0"
config = "0.13"
bs58 = { version = "0.4", features = ["check"] }
bitvec = { version = "1.0", features = ["serde"] }
nom = "7.1"
bs58 = { version = "=0.4", features = ["check"] }
bitvec = { version = "=1.0", features = ["serde"] }
nom = "=7.1"

# custom modules
massa_hash = { path = "../massa-hash" }
massa_serialization = { path = "../massa-serialization" }
massa_signature = { path = "../massa-signature" }
massa_time = { path = "../massa-time" }
massa_proto = { path = "../massa-proto" }
transition = { git = "https://github.com/massalabs/transition.git" }
# TODO tag transition crate with a version number
transition = { git = "https://github.com/massalabs/transition.git", rev = "93fa3bf82f9f5ff421c78536879b7fd1b948ca75" }

[dev-dependencies]
serial_test = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion massa-module-cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rocksdb = "0.20"
serial_test = "1.0.0"
rand = "0.8.5"
num_enum = "0.5"
nom = "7.1"
nom = "=7.1"
displaydoc = "0.2"
thiserror = "1.0"
anyhow = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion massa-pos-exports/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
[dependencies]
bitvec = { version = "1.0", features = ["serde"] }
displaydoc = "0.2"
nom = "7.1"
nom = "=7.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
Expand Down
6 changes: 3 additions & 3 deletions massa-pos-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ edition = "2021"

[dependencies]
parking_lot = { version = "0.12", features = ["deadlock_detection"] }
rand = "0.8.5" # pin exact version for determinism
rand_distr = "0.4.3" # pin exact version for determinism
rand_xoshiro = "0.6"
rand = "=0.8.5"
rand_distr = "=0.4.3"
rand_xoshiro = "=0.6"
tracing = "0.1"
# custom modules
massa_hash = { path = "../massa-hash" }
Expand Down
3 changes: 2 additions & 1 deletion massa-protocol-exports/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ edition = "2021"
[dependencies]
displaydoc = "0.2"
thiserror = "1.0"
nom = "7.1"
nom = "=7.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# TODO tag peernet version
peernet = { git = "https://github.com/massalabs/PeerNet", rev = "bf8adf5" }
tempfile = { version = "3.3", optional = true } # use with testing feature
mockall = "0.11.4"
Expand Down
3 changes: 2 additions & 1 deletion massa-protocol-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ rand = "0.8"
parking_lot = "0.12"
crossbeam = "0.8"
serde_json = "1.0"
nom = "7.1"
nom = "=7.1"
num_enum = "0.5"
# TODO tag peernet version
peernet = { git = "https://github.com/massalabs/PeerNet", rev = "bf8adf5" }
tempfile = { version = "3.3", optional = true } # use with testing feature
rayon = "1.7.0"
Expand Down
2 changes: 1 addition & 1 deletion massa-serialization/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
[dependencies]
displaydoc = "0.2"
thiserror = "1.0"
nom = "7.1"
nom = "=7.1"
unsigned-varint = { version = "0.7.1", features = [
"nom",
], git = "https://github.com/cyphar/unsigned-varint.git", branch = "nom6-errors" }
Expand Down
9 changes: 5 additions & 4 deletions massa-signature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bs58 = { version = "0.4", features = ["check"] }
bs58 = { version = "=0.4", features = ["check"] }
displaydoc = "0.2"
ed25519-dalek = { version = "1.0", features = ["batch"] }
ed25519-dalek = { version = "=1.0", features = ["batch"] }
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
nom = "7.1"
nom = "=7.1"
rand = "0.7"
transition = { git = "https://github.com/massalabs/transition.git" }
# TODO tag transition crate with a version number
transition = { git = "https://github.com/massalabs/transition.git", rev = "93fa3bf82f9f5ff421c78536879b7fd1b948ca75" }

# custom modules
massa_hash = { path = "../massa-hash" }
Expand Down
2 changes: 1 addition & 1 deletion massa-time/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ time = { version = "0.3", features = ["serde", "formatting"] }
displaydoc = "0.2"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
nom = "7.1"
nom = "=7.1"

# Custom dependencies
massa_serialization = { path = "../massa-serialization" }
4 changes: 2 additions & 2 deletions massa-versioning/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ machine = { git = "https://github.com/antifuchs/machine", branch = "fix-workspac
parking_lot = "0.12"
thiserror = "1.0"
num_enum = "0.5"
nom = "7.1"
nom = "=7.1"
tracing = "0.1"

# custom module
Expand All @@ -22,7 +22,7 @@ massa_signature = { path = "../massa-signature" }
massa_proto = { path = "../massa-proto" }

[dev-dependencies]
chrono = "0.4"
chrono = "=0.4"
more-asserts = "0.3"

[features]
Expand Down

0 comments on commit 279933b

Please sign in to comment.