From a3663a7847ed318e583b77f93ab470ed6562f1f0 Mon Sep 17 00:00:00 2001 From: Cameron Hart Date: Sun, 28 Jun 2026 19:23:55 +1200 Subject: [PATCH 1/4] Prepare 0.33.2 release --- CHANGELOG.md | 5 ++++- Cargo.toml | 2 +- README.md | 6 +++--- src/lib.rs | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0abdf227..4c7b6955 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The format is based on [Keep a Changelog], and this project adheres to ## [Unreleased] +## [0.33.2] - 2026-06-28 + ### Added * Added the `camera` and `dcamera` modules containing view and projection @@ -1451,7 +1453,8 @@ The format is based on [Keep a Changelog], and this project adheres to [Keep a Changelog]: https://keepachangelog.com/ [Semantic Versioning]: https://semver.org/spec/v2.0.0.html -[Unreleased]: https://github.com/bitshifter/glam-rs/compare/0.33.1...HEAD +[Unreleased]: https://github.com/bitshifter/glam-rs/compare/0.33.2...HEAD +[0.33.2]: https://github.com/bitshifter/glam-rs/compare/0.33.1...0.33.2 [0.33.1]: https://github.com/bitshifter/glam-rs/compare/0.33.0...0.33.1 [0.33.0]: https://github.com/bitshifter/glam-rs/compare/0.32.1...0.33.0 [0.32.1]: https://github.com/bitshifter/glam-rs/compare/0.32.0...0.32.1 diff --git a/Cargo.toml b/Cargo.toml index 37739f9f..a93182e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "glam" -version = "0.33.1" # remember to update html_root_url +version = "0.33.2" # remember to update html_root_url edition = "2021" description = "A simple and fast 3D math library for games and graphics" repository = "https://github.com/bitshifter/glam-rs" diff --git a/README.md b/README.md index 47958c1b..9d64fb9f 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ defined in `std`. For example: ```toml [dependencies] -glam = { version = "0.33.1", default-features = false, features = ["libm"] } +glam = { version = "0.33.2", default-features = false, features = ["libm"] } ``` To support both `std` and `no_std` builds in project, you can use the following @@ -102,7 +102,7 @@ std = ["glam/std"] libm = ["glam/libm"] [dependencies] -glam = { version = "0.33.1", default-features = false } +glam = { version = "0.33.2", default-features = false } ``` Alternatively, you can use the `nostd-libm` feature. This will always include a @@ -118,7 +118,7 @@ std = ["glam/std"] libm = ["glam/libm"] [dependencies] -glam = { version = "0.33.1", default-features = false, features = ["nostd-libm"] } +glam = { version = "0.33.2", default-features = false, features = ["nostd-libm"] } ``` ### Feature gates diff --git a/src/lib.rs b/src/lib.rs index 668667fa..64d4adc7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -294,7 +294,7 @@ and benchmarks. The minimum supported Rust version is `1.68.2`. */ -#![doc(html_root_url = "https://docs.rs/glam/0.33.1")] +#![doc(html_root_url = "https://docs.rs/glam/0.33.2")] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(target_arch = "spirv", feature(repr_simd))] #![cfg_attr(target_arch = "wasm64", feature(simd_wasm64))] From 7c1e3665c9a825461647a922f4fd6fac44ac4e25 Mon Sep 17 00:00:00 2001 From: Cameron Hart Date: Sun, 28 Jun 2026 20:08:44 +1200 Subject: [PATCH 2/4] Added some doc aliases. --- src/camera/lh/proj.rs | 2 ++ src/camera/rh/proj.rs | 2 ++ src/dcamera/lh/proj.rs | 2 ++ src/dcamera/rh/proj.rs | 2 ++ templates/camera_proj.rs.tera | 4 ++++ 5 files changed, 12 insertions(+) diff --git a/src/camera/lh/proj.rs b/src/camera/lh/proj.rs index 2c24be03..c8e683f4 100644 --- a/src/camera/lh/proj.rs +++ b/src/camera/lh/proj.rs @@ -10,6 +10,7 @@ //! * [`directx`] - NDC Z range **[0, 1]**, Y-up //! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down +#[doc(alias = "webgl")] pub mod opengl { //! OpenGL NDC convention: Z range **[-1, 1]**, Y-up. //! @@ -140,6 +141,7 @@ pub mod vulkan { } } +#[doc(alias = "webgpu")] pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/camera/rh/proj.rs b/src/camera/rh/proj.rs index 690271dd..b1942181 100644 --- a/src/camera/rh/proj.rs +++ b/src/camera/rh/proj.rs @@ -10,6 +10,7 @@ //! * [`directx`] - NDC Z range **[0, 1]**, Y-up //! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down +#[doc(alias = "webgl")] pub mod opengl { //! OpenGL NDC convention: Z range **[-1, 1]**, Y-up. //! @@ -147,6 +148,7 @@ pub mod vulkan { } } +#[doc(alias = "webgpu")] pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/dcamera/lh/proj.rs b/src/dcamera/lh/proj.rs index e16a5a60..eda28ef7 100644 --- a/src/dcamera/lh/proj.rs +++ b/src/dcamera/lh/proj.rs @@ -10,6 +10,7 @@ //! * [`directx`] - NDC Z range **[0, 1]**, Y-up //! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down +#[doc(alias = "webgl")] pub mod opengl { //! OpenGL NDC convention: Z range **[-1, 1]**, Y-up. //! @@ -154,6 +155,7 @@ pub mod vulkan { } } +#[doc(alias = "webgpu")] pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/dcamera/rh/proj.rs b/src/dcamera/rh/proj.rs index cc5f8af4..716d4948 100644 --- a/src/dcamera/rh/proj.rs +++ b/src/dcamera/rh/proj.rs @@ -10,6 +10,7 @@ //! * [`directx`] - NDC Z range **[0, 1]**, Y-up //! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down +#[doc(alias = "webgl")] pub mod opengl { //! OpenGL NDC convention: Z range **[-1, 1]**, Y-up. //! @@ -161,6 +162,7 @@ pub mod vulkan { } } +#[doc(alias = "webgpu")] pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/templates/camera_proj.rs.tera b/templates/camera_proj.rs.tera index ff383e3f..8374e75c 100644 --- a/templates/camera_proj.rs.tera +++ b/templates/camera_proj.rs.tera @@ -24,6 +24,7 @@ //! * [`directx`] - NDC Z range **[0, 1]**, Y-up //! * [`vulkan`] - NDC Z range **[0, 1]**, Y-down +#[doc(alias = "webgl")] pub mod opengl { //! OpenGL NDC convention: Z range **[-1, 1]**, Y-up. //! @@ -99,6 +100,9 @@ pub mod opengl { {% set yflip = false %} {% endif %} +{% if api == "directx" %} +#[doc(alias = "webgpu")] +{% endif %} pub mod {{ api }} { //! {{ api_desc }} NDC convention: Z range **{{ api_z }}**, {{ api_y }}. //! From 4b796fc4ba60c630503a660663a3b916e841ba2d Mon Sep 17 00:00:00 2001 From: Cameron Hart Date: Sun, 28 Jun 2026 20:16:23 +1200 Subject: [PATCH 3/4] fmt --- src/camera/lh/proj.rs | 1 + src/camera/rh/proj.rs | 1 + src/dcamera/lh/proj.rs | 1 + src/dcamera/rh/proj.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/src/camera/lh/proj.rs b/src/camera/lh/proj.rs index c8e683f4..40543507 100644 --- a/src/camera/lh/proj.rs +++ b/src/camera/lh/proj.rs @@ -142,6 +142,7 @@ pub mod vulkan { } #[doc(alias = "webgpu")] + pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/camera/rh/proj.rs b/src/camera/rh/proj.rs index b1942181..7d9b6dbc 100644 --- a/src/camera/rh/proj.rs +++ b/src/camera/rh/proj.rs @@ -149,6 +149,7 @@ pub mod vulkan { } #[doc(alias = "webgpu")] + pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/dcamera/lh/proj.rs b/src/dcamera/lh/proj.rs index eda28ef7..17bcbce5 100644 --- a/src/dcamera/lh/proj.rs +++ b/src/dcamera/lh/proj.rs @@ -156,6 +156,7 @@ pub mod vulkan { } #[doc(alias = "webgpu")] + pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/dcamera/rh/proj.rs b/src/dcamera/rh/proj.rs index 716d4948..6dc295a4 100644 --- a/src/dcamera/rh/proj.rs +++ b/src/dcamera/rh/proj.rs @@ -163,6 +163,7 @@ pub mod vulkan { } #[doc(alias = "webgpu")] + pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! From 4d5196c0fbbf3c9c8049716b5d42413a6b533c7f Mon Sep 17 00:00:00 2001 From: Cameron Hart Date: Sun, 28 Jun 2026 20:24:36 +1200 Subject: [PATCH 4/4] this time! --- src/camera/lh/proj.rs | 1 - src/camera/rh/proj.rs | 1 - src/dcamera/lh/proj.rs | 1 - src/dcamera/rh/proj.rs | 1 - templates/camera_proj.rs.tera | 2 +- 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/camera/lh/proj.rs b/src/camera/lh/proj.rs index 40543507..c8e683f4 100644 --- a/src/camera/lh/proj.rs +++ b/src/camera/lh/proj.rs @@ -142,7 +142,6 @@ pub mod vulkan { } #[doc(alias = "webgpu")] - pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/camera/rh/proj.rs b/src/camera/rh/proj.rs index 7d9b6dbc..b1942181 100644 --- a/src/camera/rh/proj.rs +++ b/src/camera/rh/proj.rs @@ -149,7 +149,6 @@ pub mod vulkan { } #[doc(alias = "webgpu")] - pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/dcamera/lh/proj.rs b/src/dcamera/lh/proj.rs index 17bcbce5..eda28ef7 100644 --- a/src/dcamera/lh/proj.rs +++ b/src/dcamera/lh/proj.rs @@ -156,7 +156,6 @@ pub mod vulkan { } #[doc(alias = "webgpu")] - pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/src/dcamera/rh/proj.rs b/src/dcamera/rh/proj.rs index 6dc295a4..716d4948 100644 --- a/src/dcamera/rh/proj.rs +++ b/src/dcamera/rh/proj.rs @@ -163,7 +163,6 @@ pub mod vulkan { } #[doc(alias = "webgpu")] - pub mod directx { //! DirectX and WebGPU NDC convention: Z range **[0, 1]**, Y-up. //! diff --git a/templates/camera_proj.rs.tera b/templates/camera_proj.rs.tera index 8374e75c..4aa22471 100644 --- a/templates/camera_proj.rs.tera +++ b/templates/camera_proj.rs.tera @@ -102,7 +102,7 @@ pub mod opengl { {% if api == "directx" %} #[doc(alias = "webgpu")] -{% endif %} +{%- endif %} pub mod {{ api }} { //! {{ api_desc }} NDC convention: Z range **{{ api_z }}**, {{ api_y }}. //!