Skip to content

Commit

Permalink
Format and cleanup all Cargo.toml files
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Dec 18, 2024
1 parent f3cde9d commit 3f7ed7e
Show file tree
Hide file tree
Showing 20 changed files with 180 additions and 170 deletions.
24 changes: 12 additions & 12 deletions code/crates/config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
[package]
name = "informalsystems-malachitebft-config"
name = "informalsystems-malachitebft-config"
description = "Node for running the Malachite consensus engine"

version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
rust-version.workspace = true

[lints]
workspace = true

[dependencies]
malachitebft-core-types.workspace = true
malachitebft-core-types.workspace = true

bytesize = { workspace = true, features = ["serde"] }
config = { workspace = true }
humantime-serde = { workspace = true }
multiaddr = { workspace = true }
serde = { workspace = true, features = ["derive"] }
bytesize = { workspace = true, features = ["serde"] }
config = { workspace = true }
humantime-serde = { workspace = true }
multiaddr = { workspace = true }
serde = { workspace = true, features = ["derive"] }

[dev-dependencies]
toml.workspace = true
28 changes: 14 additions & 14 deletions code/crates/core-consensus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
[package]
name = "informalsystems-malachitebft-core-consensus"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
name = "informalsystems-malachitebft-core-consensus"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
rust-version.workspace = true

[features]
std = []
debug = ["std", "malachitebft-core-driver/debug"]

[dependencies]
malachitebft-core-types.workspace = true
malachitebft-core-driver.workspace = true
malachitebft-core-types.workspace = true
malachitebft-core-driver.workspace = true
malachitebft-metrics.workspace = true
malachitebft-peer.workspace = true
malachitebft-peer.workspace = true

async-recursion = { workspace = true }
genawaiter = { workspace = true }
derive-where = { workspace = true }
multiaddr = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
genawaiter = { workspace = true }
derive-where = { workspace = true }
multiaddr = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }

[lints]
workspace = true
Expand Down
20 changes: 10 additions & 10 deletions code/crates/core-driver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "informalsystems-malachitebft-core-driver"
name = "informalsystems-malachitebft-core-driver"
description = "Driver for the state machine of Malachite consensus engine"

version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
rust-version.workspace = true

[features]
Expand All @@ -17,13 +17,13 @@ debug = ["std", "malachitebft-core-state-machine/debug"]
workspace = true

[dependencies]
malachitebft-core-types = { workspace = true }
malachitebft-core-types = { workspace = true }
malachitebft-core-state-machine = { workspace = true }
malachitebft-core-votekeeper = { workspace = true }
malachitebft-core-votekeeper = { workspace = true }

derive-where = { workspace = true }
thiserror = { workspace = true, default-features = false }
thiserror = { workspace = true, default-features = false }

[dev-dependencies]
malachitebft-test = { workspace = true }
malachitebft-test = { workspace = true }
malachitebft-core-driver-test-utils = { workspace = true }
16 changes: 8 additions & 8 deletions code/crates/core-state-machine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[package]
name = "informalsystems-malachitebft-core-state-machine"
name = "informalsystems-malachitebft-core-state-machine"
description = "Core state-machine for the Malachite consensus engine"

version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
rust-version.workspace = true

[dependencies]
malachitebft-core-types = { workspace = true }

derive-where = { workspace = true }
displaydoc = { workspace = true }
time = { workspace = true, optional = true }
displaydoc = { workspace = true }
time = { workspace = true, optional = true }

[features]
std = []
Expand Down
12 changes: 6 additions & 6 deletions code/crates/core-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "informalsystems-malachitebft-core-types"
name = "informalsystems-malachitebft-core-types"
description = "Common datatypes and interfaces for the Malachite consensus engine"

version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
rust-version.workspace = true

[lints]
Expand Down
14 changes: 7 additions & 7 deletions code/crates/core-votekeeper/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[package]
name = "informalsystems-malachitebft-core-votekeeper"
name = "informalsystems-malachitebft-core-votekeeper"
description = "Voting system for the Malachite consensus engine"

version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
rust-version.workspace = true

[dependencies]
malachitebft-core-types = { workspace = true }

derive-where = { workspace = true }
thiserror = { workspace = true, default-features = false }
thiserror = { workspace = true, default-features = false }

[dev-dependencies]
malachitebft-test = { workspace = true }
24 changes: 12 additions & 12 deletions code/crates/discovery/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[package]
name = "informalsystems-malachitebft-discovery"
version.workspace = true
edition.workspace = true
name = "informalsystems-malachitebft-discovery"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
license.workspace = true
publish.workspace = true

[lints]
workspace = true

[dependencies]
malachitebft-metrics = { workspace = true }
libp2p = { workspace = true }
serde = { workspace = true }
tracing = { workspace = true }
tokio = { workspace = true }
either = { workspace = true }
rand = { workspace = true }
malachitebft-metrics = { workspace = true }
libp2p = { workspace = true }
serde = { workspace = true }
tracing = { workspace = true }
tokio = { workspace = true }
either = { workspace = true }
rand = { workspace = true }
14 changes: 7 additions & 7 deletions code/crates/metrics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "informalsystems-malachitebft-metrics"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
name = "informalsystems-malachitebft-metrics"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
rust-version.workspace = true

[dependencies]
malachitebft-core-state-machine.workspace = true
malachitebft-core-state-machine.workspace = true
prometheus-client.workspace = true

[lints]
Expand Down
4 changes: 2 additions & 2 deletions code/crates/proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ license.workspace = true
publish.workspace = true

[dependencies]
prost.workspace = true
prost.workspace = true
prost-types.workspace = true
thiserror.workspace = true
thiserror.workspace = true
26 changes: 13 additions & 13 deletions code/crates/signing-ed25519/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
[package]
name = "informalsystems-malachitebft-signing-ed25519"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
name = "informalsystems-malachitebft-signing-ed25519"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
rust-version.workspace = true

[features]
std = []
std = []
serde = ["dep:serde", "dep:base64"]
rand = ["dep:rand"]
rand = ["dep:rand"]

[dependencies]
malachitebft-core-types = { workspace = true }
malachitebft-core-types = { workspace = true }

signature = { workspace = true }
signature = { workspace = true }
ed25519-consensus = { workspace = true }

# Optional dependencies
rand = { workspace = true, optional = true } # rand
serde = { workspace = true, optional = true } # serde
base64 = { workspace = true, optional = true } # serde
rand = { workspace = true, optional = true } # rand
serde = { workspace = true, optional = true } # serde
base64 = { workspace = true, optional = true } # serde

[lints]
workspace = true
12 changes: 6 additions & 6 deletions code/crates/starknet/app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "informalsystems-malachitebft-starknet-app"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
name = "informalsystems-malachitebft-starknet-app"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
rust-version.workspace = true
publish = false
publish = false

[lints]
workspace = true
Expand Down
12 changes: 6 additions & 6 deletions code/crates/starknet/p2p-proto/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "informalsystems-malachitebft-starknet-p2p-proto"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
name = "informalsystems-malachitebft-starknet-p2p-proto"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
rust-version.workspace = true
publish = false
publish = false

[dependencies]
prost.workspace = true
Expand Down
12 changes: 6 additions & 6 deletions code/crates/starknet/p2p-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "informalsystems-malachitebft-starknet-p2p-types"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
name = "informalsystems-malachitebft-starknet-p2p-types"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
rust-version.workspace = true
publish = false
publish = false

[dependencies]
malachitebft-core-types.workspace = true
Expand Down
38 changes: 19 additions & 19 deletions code/crates/sync/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
[package]
name = "informalsystems-malachitebft-sync"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
name = "informalsystems-malachitebft-sync"
version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true
publish.workspace = true
rust-version.workspace = true

[dependencies]
malachitebft-core-types = { workspace = true }
malachitebft-core-types = { workspace = true }
malachitebft-metrics = { workspace = true }
malachitebft-peer = { workspace = true }
malachitebft-peer = { workspace = true }

async-trait = { workspace = true }
bytes = { workspace = true, features = ["serde"] }
dashmap = { workspace = true }
derive-where = { workspace = true }
displaydoc = { workspace = true }
genawaiter = { workspace = true }
libp2p = { workspace = true, features = ["request-response", "cbor"] }
rand = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
async-trait = { workspace = true }
bytes = { workspace = true, features = ["serde"] }
dashmap = { workspace = true }
derive-where = { workspace = true }
displaydoc = { workspace = true }
genawaiter = { workspace = true }
libp2p = { workspace = true, features = ["request-response", "cbor"] }
rand = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }

[lints]
workspace = true
Loading

0 comments on commit 3f7ed7e

Please sign in to comment.