Skip to content

Commit

Permalink
Use workspace depdencies and common settings
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Nov 7, 2023
1 parent d79ecec commit 4e8edda
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 28 deletions.
14 changes: 14 additions & 0 deletions Code/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,17 @@ members = [
"vote",
"test",
]

[workspace.package]
version = "0.1.0"
edition = "2021"
repository = "https://github.com/informalsystems/malachite"
license = "Apache-2.0"
publish = false

[workspace.dependencies]
ed25519-consensus = "2.1.0"
rand = { version = "0.8.5", features = ["std_rng"] }
secrecy = "0.8.0"
sha2 = "0.10.8"
signature = "2.1.0"
16 changes: 10 additions & 6 deletions Code/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[package]
name = "malachite-common"
version = "0.1.0"
edition = "2021"
publish = false
name = "malachite-common"
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

[dependencies]
secrecy = "0.8.0"
signature = "2.1.0"
secrecy.workspace = true
signature.workspace = true
14 changes: 9 additions & 5 deletions Code/consensus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
[package]
name = "malachite-consensus"
version = "0.1.0"
edition = "2021"
publish = false
name = "malachite-consensus"
description = "Malachite consensus engine"

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

[dependencies]
malachite-common = { version = "0.1.0", path = "../common" }
malachite-round = { version = "0.1.0", path = "../round" }
malachite-vote = { version = "0.1.0", path = "../vote" }

secrecy = "0.8.0"
secrecy.workspace = true
12 changes: 8 additions & 4 deletions Code/round/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[package]
name = "malachite-round"
version = "0.1.0"
edition = "2021"
publish = false
name = "malachite-round"
description = "Per-round state-machine for the Malachite consenss engine"

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

[dependencies]
malachite-common = { version = "0.1.0", path = "../common" }
22 changes: 13 additions & 9 deletions Code/test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
[package]
name = "malachite-test"
version = "0.1.0"
edition = "2021"
publish = false
name = "malachite-test"
description = "Testing framework for the Malachite consensus engine"
publish = false

version.workspace = true
edition.workspace = true
repository.workspace = true
license.workspace = true

[dependencies]
malachite-common = { version = "0.1.0", path = "../common" }
malachite-consensus = { version = "0.1.0", path = "../consensus" }
malachite-round = { version = "0.1.0", path = "../round" }
malachite-vote = { version = "0.1.0", path = "../vote" }

ed25519-consensus = "2.1.0"
signature = "2.1.0"
rand = { version = "0.8.5", features = ["std_rng"] }
sha2 = "0.10.8"
secrecy = "0.8.0"
ed25519-consensus.workspace = true
signature.workspace = true
rand.workspace = true
sha2.workspace = true
secrecy.workspace = true
12 changes: 8 additions & 4 deletions Code/vote/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[package]
name = "malachite-vote"
version = "0.1.0"
edition = "2021"
publish = false
name = "malachite-vote"
description = "Voting system for the Malachite consensus engine"

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

[dependencies]
malachite-common = { version = "0.1.0", path = "../common" }

0 comments on commit 4e8edda

Please sign in to comment.