Skip to content

Commit

Permalink
Use common workspace package stanza & workspace dependencies.
Browse files Browse the repository at this point in the history
This requires us to upgrade our MSRV to 1.64
  • Loading branch information
nuttycom committed Sep 25, 2024
1 parent 8aa12e4 commit 6f6699d
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 31 deletions.
15 changes: 15 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,18 @@ members = [
"bridgetree",
"shardtree",
]

[workspace.package]
edition = "2021"
rust-version = "1.64"
repository = "https://github.com/zcash/incrementalmerkletree"
homepage = "https://github.com/zcash/incrementalmerkletree"
license = "MIT OR Apache-2.0"
categories = ["algorithms", "data-structures"]

[workspace.dependencies]
# Intra-workspace dependencies
incrementalmerkletree = { version = "0.6", path = "incrementalmerkletree" }

# Testing
proptest = "1"
3 changes: 3 additions & 0 deletions bridgetree/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to Rust's notion of

## [Unreleased]

### Changed
- MSRV is now 1.64

## [0.5.0] - 2024-08-12

### Changed
Expand Down
22 changes: 11 additions & 11 deletions bridgetree/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
[package]
name = "bridgetree"
description = "A space-efficient Merkle tree designed for linear appends with witnessing of marked leaves, checkpointing & state restoration."
version = "0.5.0"
authors = [
"Kris Nuttycombe <kris@nutty.land>",
"Sean Bowe <ewillbefull@gmail.com>",
]
edition = "2021"
license = "MIT OR Apache-2.0"
description = "A space-efficient Merkle tree designed for linear appends with witnessing of marked leaves, checkpointing & state restoration."
homepage = "https://github.com/zcash/incrementalmerkletree"
repository = "https://github.com/zcash/incrementalmerkletree"
categories = ["algorithms", "data-structures"]
rust-version = "1.60"
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
categories.workspace = true
rust-version.workspace = true

[dependencies]
incrementalmerkletree = { version = "0.6", path = "../incrementalmerkletree" }
proptest = { version = "1.0.0", optional = true }
incrementalmerkletree.workspace = true
proptest = { workspace = true, optional = true }

[dev-dependencies]
incrementalmerkletree = { version = "0.6", path = "../incrementalmerkletree", features = ["test-dependencies"] }
proptest = "1.0.0"
incrementalmerkletree = { workspace = true, features = ["test-dependencies"] }
proptest.workspace = true

[features]
test-dependencies = ["proptest"]
3 changes: 3 additions & 0 deletions incrementalmerkletree/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to Rust's notion of

## Unreleased

### Changed
- MSRV is now 1.64

## [0.6.0] - 2024-08-12

### Added
Expand Down
16 changes: 8 additions & 8 deletions incrementalmerkletree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ authors = [
"Sean Bowe <ewillbefull@gmail.com>",
"Kris Nuttycombe <kris@nutty.land>",
]
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/zcash/incrementalmerkletree"
repository = "https://github.com/zcash/incrementalmerkletree"
categories = ["algorithms", "data-structures"]
rust-version = "1.60"
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
categories.workspace = true
rust-version.workspace = true

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
either = "1.8"
proptest = { version = "1.0.0", optional = true }
proptest = { workspace = true, optional = true }
rand = { version = "0.8", optional = true }
rand_core = { version = "0.6", optional = true }

[dev-dependencies]
proptest = "1.0.0"
proptest.workspace = true
rand = "0.8"
rand_core = "0.6"
rand_chacha = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.60.0"
channel = "1.64.0"
components = [ "clippy", "rustfmt" ]
3 changes: 3 additions & 0 deletions shardtree/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to Rust's notion of

## Unreleased

### Changed
- MSRV is now 1.64

### Added
- `shardtree::store::ShardStore::for_each_checkpoint`

Expand Down
22 changes: 11 additions & 11 deletions shardtree/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[package]
name = "shardtree"
description = "A space-efficient Merkle tree with witnessing of marked leaves, checkpointing & state restoration."
version = "0.4.0"
authors = [
"Kris Nuttycombe <kris@nutty.land>",
]
edition = "2021"
rust-version = "1.60"
license = "MIT OR Apache-2.0"
description = "A space-efficient Merkle tree with witnessing of marked leaves, checkpointing & state restoration."
homepage = "https://github.com/zcash/incrementalmerkletree"
repository = "https://github.com/zcash/incrementalmerkletree"
categories = ["algorithms", "data-structures"]
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
categories.workspace = true

[package.metadata.docs.rs]
all-features = true
Expand All @@ -20,14 +20,14 @@ rustdoc-args = ["--cfg", "docsrs"]
assert_matches = { version = "1.5", optional = true }
bitflags = "2"
either = "1.8"
incrementalmerkletree = { version = "0.6", path = "../incrementalmerkletree" }
proptest = { version = "1.0.0", optional = true }
incrementalmerkletree.workspace = true
proptest = { workspace = true, optional = true }
tracing = "0.1"

[dev-dependencies]
assert_matches = "1.5"
incrementalmerkletree = { version = "0.6", path = "../incrementalmerkletree", features = ["test-dependencies"] }
proptest = "1.0.0"
incrementalmerkletree = { workspace = true, features = ["test-dependencies"] }
proptest.workspace = true

[features]
# The legacy-api feature guards types and functions that are useful for
Expand Down

0 comments on commit 6f6699d

Please sign in to comment.