Skip to content

Commit

Permalink
Use workspace dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0246 committed Oct 29, 2023
1 parent 1964ae7 commit 248c2dd
Show file tree
Hide file tree
Showing 44 changed files with 211 additions and 160 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
target
/Cargo.lock
Cargo.lock
.cargo
examples/dynamic-local-size/mandelbrot.png
examples/msaa-renderpass/triangle.png
Expand Down
36 changes: 35 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
[workspace]
members = [
"examples/*",
"vulkano",
"vulkano-macros",
"vulkano-shaders",
"vulkano-util",
"vulkano-win",
]
resolver = "2"

[workspace.dependencies]
ahash = "0.8"
# When updating Ash, also update vk.xml to the same Vulkan patch version that Ash uses.
# All versions of vk.xml can be found at:
# https://github.com/KhronosGroup/Vulkan-Headers/commits/main/registry/vk.xml
ash = "0.37.3"
bytemuck = "1.9"
cgmath = "0.18"
core-graphics-types = "0.1"
crossbeam-queue = "0.3"
half = "2.0"
heck = "0.4"
indexmap = "2.0"
libloading = "0.8"
objc = "0.2.5"
once_cell = "1.17"
nalgebra = "0.32"
parking_lot = "0.12"
proc-macro2 = "1.0"
proc-macro-crate = "1.2"
quote = "1.0"
raw-window-handle = "0.5"
regex = "1.8"
serde = "1.0"
serde_json = "1.0"
shaderc = "0.8"
smallvec = "1.8"
syn = "1.0"
thread_local = "1.1"
vk-parse = "0.12"
vulkano = { version = "0.34", path = "vulkano", default-features = false }
vulkano-macros = { version = "0.34", path = "vulkano-macros" }
vulkano-shaders = { version = "0.34", path = "vulkano-shaders" }
vulkano-util = { version = "0.34", path = "vulkano-util" }
15 changes: 15 additions & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[workspace]
members = ["*"]
resolver = "2"

[workspace.dependencies]
cgmath = "0.18"
png = "0.17"
rand = "0.8"
ron = "0.8"
serde = "1.0"
vulkano = { path = "../vulkano" }
vulkano-macros = { path = "../vulkano-macros" }
vulkano-shaders = { path = "../vulkano-shaders" }
vulkano-util = { path = "../vulkano-util" }
winit = "0.28"
10 changes: 5 additions & 5 deletions examples/async-update/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ name = "async-update"
path = "main.rs"

[dependencies]
cgmath = "0.18"
rand = "0.8"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
cgmath = { workspace = true }
rand = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
4 changes: 2 additions & 2 deletions examples/basic-compute-shader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "basic-compute-shader"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
6 changes: 3 additions & 3 deletions examples/buffer-allocator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ name = "buffer-allocator"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
4 changes: 2 additions & 2 deletions examples/clear-attachments/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "clear-attachments"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
winit = "0.28"
vulkano = { workspace = true }
winit = { workspace = true }
2 changes: 1 addition & 1 deletion examples/debug/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ name = "debug"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano = { workspace = true }
8 changes: 4 additions & 4 deletions examples/deferred/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "deferred"
path = "main.rs"

[dependencies]
cgmath = "0.18"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
cgmath = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
4 changes: 2 additions & 2 deletions examples/dynamic-buffers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "dynamic-buffers"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
6 changes: 3 additions & 3 deletions examples/dynamic-local-size/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ name = "dynamic-local-size"
path = "main.rs"

[dependencies]
png = "0.17"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
png = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
6 changes: 3 additions & 3 deletions examples/gl-interop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ path = "main.rs"

[dependencies]
glium = "0.32.1"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
# Glium has still not been updated to the latest winit version
winit_glium = { package = "winit", version = "0.27.1" }
8 changes: 4 additions & 4 deletions examples/image-self-copy-blit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "image-self-copy-blit"
path = "main.rs"

[dependencies]
png = "0.17"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
png = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
8 changes: 4 additions & 4 deletions examples/image/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "image"
path = "main.rs"

[dependencies]
png = "0.17"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
png = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
8 changes: 4 additions & 4 deletions examples/immutable-sampler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "immutable-sampler"
path = "main.rs"

[dependencies]
png = "0.17"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
png = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
6 changes: 3 additions & 3 deletions examples/indirect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ name = "indirect"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
6 changes: 3 additions & 3 deletions examples/instancing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ name = "instancing"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
12 changes: 6 additions & 6 deletions examples/interactive-fractal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ name = "interactive-fractal"
path = "main.rs"

[dependencies]
cgmath = "0.18"
rand = "0.8"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
vulkano-util = { path = "../../vulkano-util" }
winit = "0.28"
cgmath = { workspace = true }
rand = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
vulkano-util = { workspace = true }
winit = { workspace = true }
6 changes: 3 additions & 3 deletions examples/msaa-renderpass/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ name = "msaa-renderpass"
path = "main.rs"

[dependencies]
png = "0.17"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
png = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
12 changes: 6 additions & 6 deletions examples/multi-window-game-of-life/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ name = "multi-window-game-of-life"
path = "main.rs"

[dependencies]
cgmath = "0.18"
rand = "0.8"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
vulkano-util = { path = "../../vulkano-util" }
winit = "0.28"
cgmath = { workspace = true }
rand = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
vulkano-util = { workspace = true }
winit = { workspace = true }
6 changes: 3 additions & 3 deletions examples/multi-window/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ name = "multi-window"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
6 changes: 3 additions & 3 deletions examples/multiview/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ name = "multiview"
path = "main.rs"

[dependencies]
png = "0.17"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
png = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
6 changes: 3 additions & 3 deletions examples/occlusion-query/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ name = "occlusion-query"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
4 changes: 2 additions & 2 deletions examples/pipeline-caching/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "pipeline-caching"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
4 changes: 2 additions & 2 deletions examples/push-constants/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "push-constants"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
8 changes: 4 additions & 4 deletions examples/push-descriptors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "push-descriptors"
path = "main.rs"

[dependencies]
png = "0.17"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
png = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
8 changes: 4 additions & 4 deletions examples/runtime-array/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "runtime-array"
path = "main.rs"

[dependencies]
png = "0.17"
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
png = { workspace = true }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
4 changes: 2 additions & 2 deletions examples/runtime-shader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "runtime-shader"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
winit = "0.28"
vulkano = { workspace = true }
winit = { workspace = true }
4 changes: 2 additions & 2 deletions examples/self-copy-buffer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "self-copy-buffer"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
4 changes: 2 additions & 2 deletions examples/shader-include/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "shader-include"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
10 changes: 5 additions & 5 deletions examples/shader-types-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ name = "shader-types-derive"
path = "main.rs"

[dependencies]
ron = "0.8"
serde = { version = "1.0", features = ["derive"] }
vulkano = { path = "../../vulkano", features = ["serde"] }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
ron = { workspace = true }
serde = { workspace = true, features = ["derive"] }
vulkano = { workspace = true, features = ["serde"] }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
4 changes: 2 additions & 2 deletions examples/shader-types-sharing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "shader-types-sharing"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
6 changes: 3 additions & 3 deletions examples/simple-particles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ name = "simple-particles"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
winit = "0.28"
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
winit = { workspace = true }
4 changes: 2 additions & 2 deletions examples/specialization-constants/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ name = "specialization-constants"
path = "main.rs"

[dependencies]
vulkano = { path = "../../vulkano" }
vulkano-shaders = { path = "../../vulkano-shaders" }
vulkano = { workspace = true }
vulkano-shaders = { workspace = true }
Loading

0 comments on commit 248c2dd

Please # to comment.