Skip to content

Commit

Permalink
Changed the workspace to define inherited dependencies and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaveaux committed Nov 25, 2023
1 parent a9fa275 commit 41a4304
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
13 changes: 12 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@ members = [
"examples/*",
"benchmarks",
"ldd",
]
]

[workspace.package]
version = "0.1.0"
rust-version = "1.60.0"

[workspace.dependencies]
criterion = { version = "0.5" }
rand = "0.8"
rustc-hash = "1.1"
ahash = "0.8"
static_assertions = "1.1"
7 changes: 4 additions & 3 deletions benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[package]
name = "benchmarks"
version = "0.1.0"
edition = "2021"
version.workspace = true
rust-version.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
rand = "0.8"
criterion = { workspace = true, features = ["html_reports"] }
rand.workspace = true
ldd = { path="../ldd" }

[[bench]]
Expand Down
3 changes: 2 additions & 1 deletion examples/reach/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[package]
name = "reach"
version = "0.1.0"
edition = "2021"
version.workspace = true
rust-version.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
11 changes: 6 additions & 5 deletions ldd/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[package]
name = "ldd"
version = "0.1.0"
edition = "2021"
version.workspace = true
rust-version.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rand = "0.8.4"
rustc-hash = "1.1.0"
ahash = "0.8.3"
static_assertions = "1.1.0"
rand.workspace = true
rustc-hash.workspace = true
ahash.workspace = true
static_assertions.workspace = true

0 comments on commit 41a4304

Please sign in to comment.