Skip to content

Commit

Permalink
refactor(deps): consolidate workspace dependencies
Browse files Browse the repository at this point in the history
- Move common dependencies to workspace-level declarations
- Remove duplicate version specifications
- Standardize dependency management across crates using `.workspace = true`
- Remove outdated/unused dependencies (`block-buffer`, `const-oid`, `hybrid-array`)
- Update `rand` and related dependencies to use consistent versions
  • Loading branch information
andrewgazelka committed Nov 11, 2024
1 parent 4bd6b4c commit 6b26afd
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 131 deletions.
122 changes: 17 additions & 105 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ members = [
resolver = '2'

[workspace.dependencies]

anyhow = '1.0.86'
approx = '0.5.1'
arrayvec = '0.7.4'
Expand All @@ -44,12 +43,16 @@ bitvec = '1.0.1'
bumpalo = '3.16'
byteorder = '1.5.0'
bytes = '1.8.0'
colored = "2.1.0"
compact_str = '0.8.0'
convert_case = "0.6.0"
criterion = '0.5.1'
derive-build = '0.1.1'
directories = "5.0.1"
dirs-next = '2.0.0'
enumset = '1.1.5'
fastrand = '2.1.0'
futures-util = "0.3.31"
glam = '0.29.0'
gxhash = { version = "3.4.1" }
heapless = '0.8.0'
Expand All @@ -68,24 +71,32 @@ num-traits = "0.2.19"
once_cell = '1.19.0'
ordered-float = '4.2.0'
ouroboros = '0.18.4'
papaya = "0.1.4"
parking_lot = '0.12.3'
plotters-bitmap = '0.3.6'
pretty-hex = '0.4.1'
proc-macro2 = "1.0.89"
quote = "1.0.37"
rand = '0.8.5'
rayon = '1.10.0'
replace_with = "0.1.7"
rkyv = "0.8.8"
rustc-hash = '2.0.0'
rustc_version = '0.4.0'
serde = '1.0.214'
serde_json = '1.0.117'
slotmap = '1.0.7'
snafu = '0.8.5'
syn = "2.0.87"
tango-bench = '0.6.0'
tar = '0.4.41'
thiserror = "2.0.1"
tikv-jemallocator = '0.6.0'
tokio = '1.40.0'
toml = '0.8.14'
trybuild = "1.0.101"
uuid = '1.8.0'

[workspace.dependencies.bvh]
git = 'https://github.com/andrewgazelka/bvh-data'

Expand Down
10 changes: 5 additions & 5 deletions crates/hyperion-event-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
cargo-features = ["edition2024"]

[dependencies]
convert_case = "0.6.0"
proc-macro2 = "1.0.88"
quote = "1.0.37"
syn = "2.0.79"
convert_case.workspace = true
proc-macro2.workspace = true
quote.workspace = true
syn.workspace = true

[dev-dependencies]
trybuild = "1.0.100"
trybuild.workspace = true
hyperion.workspace = true

[lib]
Expand Down
2 changes: 1 addition & 1 deletion crates/hyperion-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cargo-features = ["edition2024"]
[build-dependencies]

[dependencies]
rkyv = {version = "0.8.8"}
rkyv.workspace = true

[lints]
workspace = true
Expand Down
13 changes: 6 additions & 7 deletions crates/hyperion-proxy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
cargo-features = ["edition2024"]

[dependencies]
colored = "2.1.0"
kanal = "0.1.0-pre8"
# integer-encoding = "4.0.2"
papaya = "0.1.4"
rkyv = "0.8.8"
rustc-hash = "2.0.0"
colored.workspace = true
kanal.workspace = true
papaya.workspace = true
rkyv.workspace = true
rustc-hash.workspace = true
tokio = {workspace = true, features = ["full", "tracing"]}
tokio-util = {version = "0.7.12", features = ["full"]}
tokio-util = {workspace = true, features = ["full"]}
anyhow.workspace = true
bvh.workspace = true
bytes.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/hyperion-stats/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "parallel_stats"
[dependencies]

[dev-dependencies]
rand = "0.9.0-alpha.2"
rand.workspace = true
approx.workspace = true
divan.workspace = true

Expand Down
8 changes: 4 additions & 4 deletions crates/hyperion-text/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
cargo-features = ["edition2024"]

[dependencies]
serde = {version = "1.0.214", features = ["derive"]}
serde_json = "1.0.128"
thiserror = "1.0.64"
uuid = {version = "1.10.0", features = ["v4", "serde"]}
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
uuid.workspace = true
valence_protocol.workspace = true

[lints]
Expand Down
Loading

0 comments on commit 6b26afd

Please sign in to comment.