Use common workspace package stanza & workspace dependencies.

This requires us to upgrade our MSRV to 1.64
This commit is contained in:
Kris Nuttycombe 2024-09-25 12:03:27 -06:00
parent 8aa12e4fe3
commit 6f6699da21
8 changed files with 55 additions and 31 deletions

View File

@ -4,3 +4,18 @@ members = [
"bridgetree", "bridgetree",
"shardtree", "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"

View File

@ -7,6 +7,9 @@ and this project adheres to Rust's notion of
## [Unreleased] ## [Unreleased]
### Changed
- MSRV is now 1.64
## [0.5.0] - 2024-08-12 ## [0.5.0] - 2024-08-12
### Changed ### Changed

View File

@ -1,25 +1,25 @@
[package] [package]
name = "bridgetree" name = "bridgetree"
description = "A space-efficient Merkle tree designed for linear appends with witnessing of marked leaves, checkpointing & state restoration."
version = "0.5.0" version = "0.5.0"
authors = [ authors = [
"Kris Nuttycombe <kris@nutty.land>", "Kris Nuttycombe <kris@nutty.land>",
"Sean Bowe <ewillbefull@gmail.com>", "Sean Bowe <ewillbefull@gmail.com>",
] ]
edition = "2021" edition.workspace = true
license = "MIT OR Apache-2.0" license.workspace = true
description = "A space-efficient Merkle tree designed for linear appends with witnessing of marked leaves, checkpointing & state restoration." homepage.workspace = true
homepage = "https://github.com/zcash/incrementalmerkletree" repository.workspace = true
repository = "https://github.com/zcash/incrementalmerkletree" categories.workspace = true
categories = ["algorithms", "data-structures"] rust-version.workspace = true
rust-version = "1.60"
[dependencies] [dependencies]
incrementalmerkletree = { version = "0.6", path = "../incrementalmerkletree" } incrementalmerkletree.workspace = true
proptest = { version = "1.0.0", optional = true } proptest = { workspace = true, optional = true }
[dev-dependencies] [dev-dependencies]
incrementalmerkletree = { version = "0.6", path = "../incrementalmerkletree", features = ["test-dependencies"] } incrementalmerkletree = { workspace = true, features = ["test-dependencies"] }
proptest = "1.0.0" proptest.workspace = true
[features] [features]
test-dependencies = ["proptest"] test-dependencies = ["proptest"]

View File

@ -7,6 +7,9 @@ and this project adheres to Rust's notion of
## Unreleased ## Unreleased
### Changed
- MSRV is now 1.64
## [0.6.0] - 2024-08-12 ## [0.6.0] - 2024-08-12
### Added ### Added

View File

@ -6,12 +6,12 @@ authors = [
"Sean Bowe <ewillbefull@gmail.com>", "Sean Bowe <ewillbefull@gmail.com>",
"Kris Nuttycombe <kris@nutty.land>", "Kris Nuttycombe <kris@nutty.land>",
] ]
edition = "2021" edition.workspace = true
license = "MIT OR Apache-2.0" license.workspace = true
homepage = "https://github.com/zcash/incrementalmerkletree" homepage.workspace = true
repository = "https://github.com/zcash/incrementalmerkletree" repository.workspace = true
categories = ["algorithms", "data-structures"] categories.workspace = true
rust-version = "1.60" rust-version.workspace = true
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
@ -19,12 +19,12 @@ rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
either = "1.8" either = "1.8"
proptest = { version = "1.0.0", optional = true } proptest = { workspace = true, optional = true }
rand = { version = "0.8", optional = true } rand = { version = "0.8", optional = true }
rand_core = { version = "0.6", optional = true } rand_core = { version = "0.6", optional = true }
[dev-dependencies] [dev-dependencies]
proptest = "1.0.0" proptest.workspace = true
rand = "0.8" rand = "0.8"
rand_core = "0.6" rand_core = "0.6"
rand_chacha = "0.3" rand_chacha = "0.3"

View File

@ -1,3 +1,3 @@
[toolchain] [toolchain]
channel = "1.60.0" channel = "1.64.0"
components = [ "clippy", "rustfmt" ] components = [ "clippy", "rustfmt" ]

View File

@ -7,6 +7,9 @@ and this project adheres to Rust's notion of
## Unreleased ## Unreleased
### Changed
- MSRV is now 1.64
### Added ### Added
- `shardtree::store::ShardStore::for_each_checkpoint` - `shardtree::store::ShardStore::for_each_checkpoint`

View File

@ -1,16 +1,16 @@
[package] [package]
name = "shardtree" name = "shardtree"
description = "A space-efficient Merkle tree with witnessing of marked leaves, checkpointing & state restoration."
version = "0.4.0" version = "0.4.0"
authors = [ authors = [
"Kris Nuttycombe <kris@nutty.land>", "Kris Nuttycombe <kris@nutty.land>",
] ]
edition = "2021" edition.workspace = true
rust-version = "1.60" rust-version.workspace = true
license = "MIT OR Apache-2.0" license.workspace = true
description = "A space-efficient Merkle tree with witnessing of marked leaves, checkpointing & state restoration." homepage.workspace = true
homepage = "https://github.com/zcash/incrementalmerkletree" repository.workspace = true
repository = "https://github.com/zcash/incrementalmerkletree" categories.workspace = true
categories = ["algorithms", "data-structures"]
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true all-features = true
@ -20,14 +20,14 @@ rustdoc-args = ["--cfg", "docsrs"]
assert_matches = { version = "1.5", optional = true } assert_matches = { version = "1.5", optional = true }
bitflags = "2" bitflags = "2"
either = "1.8" either = "1.8"
incrementalmerkletree = { version = "0.6", path = "../incrementalmerkletree" } incrementalmerkletree.workspace = true
proptest = { version = "1.0.0", optional = true } proptest = { workspace = true, optional = true }
tracing = "0.1" tracing = "0.1"
[dev-dependencies] [dev-dependencies]
assert_matches = "1.5" assert_matches = "1.5"
incrementalmerkletree = { version = "0.6", path = "../incrementalmerkletree", features = ["test-dependencies"] } incrementalmerkletree = { workspace = true, features = ["test-dependencies"] }
proptest = "1.0.0" proptest.workspace = true
[features] [features]
# The legacy-api feature guards types and functions that are useful for # The legacy-api feature guards types and functions that are useful for