Skip to content

Commit

Permalink
Set MSRV to 1.72.0 (#2516)
Browse files Browse the repository at this point in the history
* Set MSRV to 1.72.0

* Use workspace inheritance for some package fields

* Authors seem to differ, so don't inherit that

* Consistency
  • Loading branch information
Rua authored Apr 19, 2024
1 parent 3fb4a30 commit 87993aa
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 31 deletions.
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ members = [
]
resolver = "2"

[workspace.package]
edition = "2021"
rust-version = "1.72.0"
license = "MIT OR Apache-2.0"
homepage = "https://vulkano.rs"
keywords = ["vulkan", "bindings", "graphics", "gpu", "rendering"]
categories = ["rendering::graphics-api"]

[workspace.dependencies.vulkano]
version = "0.34"
path = "vulkano"
Expand Down
11 changes: 6 additions & 5 deletions vulkano-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[package]
name = "vulkano-macros"
version = "0.34.0"
edition = "2021"
authors = ["The vulkano contributors"]
repository = "https://github.com/vulkano-rs/vulkano/tree/master/vulkano-macros"
description = "Macros used by vulkano"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/vulkano-macros"
homepage = "https://vulkano.rs"
keywords = ["vulkan", "bindings", "graphics", "gpu", "rendering"]
categories = ["rendering::graphics-api"]
readme = "../README.md"
edition = { workspace = true }
rust-version = { workspace = true }
license = { workspace = true }
homepage = { workspace = true }
keywords = { workspace = true }
categories = { workspace = true }

[lib]
proc-macro = true
Expand Down
11 changes: 6 additions & 5 deletions vulkano-shaders/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[package]
name = "vulkano-shaders"
version = "0.34.0"
edition = "2021"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>", "The vulkano contributors"]
repository = "https://github.com/vulkano-rs/vulkano/tree/master/vulkano-shaders"
description = "Macro for generating Rust code from shaders"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/vulkano-shaders"
homepage = "https://vulkano.rs"
keywords = ["vulkan", "bindings", "graphics", "gpu", "rendering"]
categories = ["rendering::graphics-api"]
readme = "../README.md"
edition = { workspace = true }
rust-version = { workspace = true }
license = { workspace = true }
homepage = { workspace = true }
keywords = { workspace = true }
categories = { workspace = true }

[lib]
proc-macro = true
Expand Down
11 changes: 6 additions & 5 deletions vulkano-util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[package]
name = "vulkano-util"
version = "0.34.0"
edition = "2021"
authors = ["The vulkano contributors"]
repository = "https://github.com/vulkano-rs/vulkano/tree/master/vulkano-util"
description = "Utility functionality to make usage of vulkano easier"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/vulkano-util"
homepage = "https://vulkano.rs"
keywords = ["vulkan", "bindings", "graphics", "gpu", "rendering"]
categories = ["rendering::graphics-api"]
readme = "../README.md"
edition = { workspace = true }
rust-version = { workspace = true }
license = { workspace = true }
homepage = { workspace = true }
keywords = { workspace = true }
categories = { workspace = true }

[dependencies]
ahash = { workspace = true }
Expand Down
11 changes: 6 additions & 5 deletions vulkano/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
[package]
name = "vulkano"
version = "0.34.0"
edition = "2021"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>", "The vulkano contributors"]
repository = "https://github.com/vulkano-rs/vulkano/tree/master/vulkano"
description = "Safe wrapper for the Vulkan graphics API"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/vulkano"
homepage = "https://vulkano.rs"
keywords = ["vulkan", "bindings", "graphics", "gpu", "rendering"]
categories = ["rendering::graphics-api"]
readme = "../README.md"
build = "build.rs"
edition = { workspace = true }
rust-version = { workspace = true }
license = { workspace = true }
homepage = { workspace = true }
keywords = { workspace = true }
categories = { workspace = true }

[dependencies]
ahash = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions vulkano/src/command_buffer/commands/acceleration_structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use crate::{
DeviceSize, Requires, RequiresAllOf, RequiresOneOf, ValidationError, VulkanObject,
};
use smallvec::SmallVec;
use std::{mem::size_of, ptr, sync::Arc};
use std::{mem::size_of, sync::Arc};

/// # Commands to do operations on acceleration structures.
impl RecordingCommandBuffer {
Expand Down Expand Up @@ -1568,7 +1568,7 @@ impl RawRecordingCommandBuffer {
.collect();
let build_range_info_pointers_vk: SmallVec<[_; 8]> = build_range_info_elements_vk
.iter()
.map(ptr::from_ref)
.map(|p| -> *const _ { p })
.collect();

let fns = self.device().fns();
Expand Down
18 changes: 9 additions & 9 deletions vulkano/src/pipeline/graphics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -855,39 +855,39 @@ impl GraphicsPipeline {
p_stages: stages_vk.as_ptr(),
p_vertex_input_state: vertex_input_state_vk
.as_ref()
.map(ptr::from_ref)
.map(|p| -> *const _ { p })
.unwrap_or(ptr::null()),
p_input_assembly_state: input_assembly_state_vk
.as_ref()
.map(ptr::from_ref)
.map(|p| -> *const _ { p })
.unwrap_or(ptr::null()),
p_tessellation_state: tessellation_state_vk
.as_ref()
.map(ptr::from_ref)
.map(|p| -> *const _ { p })
.unwrap_or(ptr::null()),
p_viewport_state: viewport_state_vk
.as_ref()
.map(ptr::from_ref)
.map(|p| -> *const _ { p })
.unwrap_or(ptr::null()),
p_rasterization_state: rasterization_state_vk
.as_ref()
.map(ptr::from_ref)
.map(|p| -> *const _ { p })
.unwrap_or(ptr::null()),
p_multisample_state: multisample_state_vk
.as_ref()
.map(ptr::from_ref)
.map(|p| -> *const _ { p })
.unwrap_or(ptr::null()),
p_depth_stencil_state: depth_stencil_state_vk
.as_ref()
.map(ptr::from_ref)
.map(|p| -> *const _ { p })
.unwrap_or(ptr::null()),
p_color_blend_state: color_blend_state_vk
.as_ref()
.map(ptr::from_ref)
.map(|p| -> *const _ { p })
.unwrap_or(ptr::null()),
p_dynamic_state: dynamic_state_vk
.as_ref()
.map(ptr::from_ref)
.map(|p| -> *const _ { p })
.unwrap_or(ptr::null()),
layout: layout.handle(),
render_pass: render_pass_vk,
Expand Down

0 comments on commit 87993aa

Please sign in to comment.