use workspace.dependencies for common dependency versions

This commit is contained in:
Gered 2024-07-21 16:07:33 -04:00
parent 389e27afe0
commit 74d7f2b22c
10 changed files with 25 additions and 18 deletions

View file

@ -6,6 +6,13 @@ members = [
] ]
resolver = "2" resolver = "2"
[workspace.dependencies]
anyhow = "=1.0.75"
imgui = { version = "0.11.0", features = ["docking"] }
serde = { version = "1.0.192", features = ["derive"] }
serde_json = "1.0.108"
thiserror = "=1.0.50"
# some stuff is becoming noticably slow with default dev profile settings (opt-level = 0). especially any of the # some stuff is becoming noticably slow with default dev profile settings (opt-level = 0). especially any of the
# fancier triangle_2d drawing stuff. while there are many optimizations still left to be made, it seems like a good # fancier triangle_2d drawing stuff. while there are many optimizations still left to be made, it seems like a good
# compromise on build time vs optimizations to keep opt-level at 1 while actively developing. # compromise on build time vs optimizations to keep opt-level at 1 while actively developing.

View file

@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = "=1.0.75" anyhow.workspace = true
ggdt = { path = "../../ggdt" } ggdt = { path = "../../ggdt" }

View file

@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = "=1.0.75" anyhow.workspace = true
ggdt = { path = "../../ggdt" } ggdt = { path = "../../ggdt" }

View file

@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = "=1.0.75" anyhow.workspace = true
ggdt = { path = "../../ggdt", features = [] } ggdt = { path = "../../ggdt", features = [] }

View file

@ -4,9 +4,9 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = "=1.0.75" anyhow.workspace = true
ggdt = { path = "../../ggdt" } ggdt = { path = "../../ggdt" }
ggdt_imgui = { path = "../../ggdt_imgui" } ggdt_imgui = { path = "../../ggdt_imgui" }
imgui = "0.11.0" imgui.workspace = true
serde = { version = "1.0.136", features = ["derive"] } serde.workspace = true
serde_json = "1.0.79" serde_json.workspace = true

View file

@ -4,8 +4,8 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = "=1.0.75" anyhow.workspace = true
ggdt = { path = "../../ggdt", features = [] } ggdt = { path = "../../ggdt", features = [] }
serde = { version = "1.0.136", features = ["derive"] } serde.workspace = true
serde_json = "1.0.79" serde_json.workspace = true

View file

@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = "=1.0.75" anyhow.workspace = true
ggdt = { path = "../../ggdt" } ggdt = { path = "../../ggdt" }

View file

@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = "=1.0.75" anyhow.workspace = true
ggdt = { path = "../../ggdt" } ggdt = { path = "../../ggdt" }

View file

@ -8,7 +8,7 @@ edition = "2021"
[dependencies] [dependencies]
byte-slice-cast = "1.2.2" byte-slice-cast = "1.2.2"
byteorder = "1.5.0" byteorder = "1.5.0"
thiserror = "=1.0.50" thiserror.workspace = true
rand = "0.8.5" rand = "0.8.5"
num = "0.4.1" num = "0.4.1"
num-derive = "0.4.1" num-derive = "0.4.1"
@ -16,8 +16,8 @@ num-traits = "0.2.17"
bitflags = "2.4.1" bitflags = "2.4.1"
flate2 = "=1.0.27" flate2 = "=1.0.27"
crc32fast = "1.3.2" crc32fast = "1.3.2"
serde = { version = "1.0.192", features = ["derive"] } serde.workspace = true
serde_json = "1.0.108" serde_json.workspace = true
[target.'cfg(not(windows))'.dependencies] [target.'cfg(not(windows))'.dependencies]
sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["static-link", "bundled", "use-pkgconfig", "unsafe_textures"] } sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a922d6ee1da558822002d343b4e", features = ["static-link", "bundled", "use-pkgconfig", "unsafe_textures"] }
@ -28,7 +28,7 @@ sdl2 = { git = "https://github.com/Rust-SDL2/rust-sdl2/", rev = "819ab438ac971a9
[dev-dependencies] [dev-dependencies]
claim = "0.5.0" claim = "0.5.0"
criterion = "0.5.1" criterion = "0.5.1"
anyhow = "=1.0.75" anyhow.workspace = true
tempfile = "3.8.1" tempfile = "3.8.1"
[[bench]] [[bench]]

View file

@ -9,5 +9,5 @@ edition = "2021"
[dependencies] [dependencies]
ggdt = { path = "../ggdt" } ggdt = { path = "../ggdt" }
imgui = { version = "0.11.0", features = ["docking"] } imgui.workspace = true
thiserror = "=1.0.50" thiserror.workspace = true