From 9712aebd1f7fc1cfdaf8d9829faf8b1a40b438f6 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 22 Jun 2024 23:49:46 +0700 Subject: [PATCH] Support conversion for glam 0.28 (#1409) --- CHANGELOG.md | 8 +++++++- Cargo.toml | 2 ++ src/third_party/glam/mod.rs | 2 ++ src/third_party/glam/v028/mod.rs | 18 ++++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/third_party/glam/v028/mod.rs diff --git a/CHANGELOG.md b/CHANGELOG.md index b7653bf5..89556130 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,13 +9,19 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Added -- Add the `glam-0.27` feature to enable conversion from/to types from `glam` v0.27. +- Add the `glam-0.28` feature to enable conversion from/to types from `glam` v0.28. ### Removed - The `cuda` feature has been removed, as the toolchain it depends on is long abandoned. +## [0.32.6] (12 June 2024) + +### Added + +- Add the `glam-0.27` feature to enable conversion from/to types from `glam` v0.27. + ## [0.32.5] (28 March 2024) ## Fixed diff --git a/Cargo.toml b/Cargo.toml index 6dda5f32..96cefa18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,6 +50,7 @@ convert-glam023 = [ "glam023" ] convert-glam024 = [ "glam024" ] convert-glam025 = [ "glam025" ] convert-glam027 = [ "glam027" ] +convert-glam028 = [ "glam028" ] # Serialization ## To use serde in a #[no-std] environment, enable the @@ -107,6 +108,7 @@ glam023 = { package = "glam", version = "0.23", optional = true } glam024 = { package = "glam", version = "0.24", optional = true } glam025 = { package = "glam", version = "0.25", optional = true } glam027 = { package = "glam", version = "0.27", optional = true } +glam028 = { package = "glam", version = "0.28", optional = true } rayon = { version = "1.6", optional = true } [dev-dependencies] diff --git a/src/third_party/glam/mod.rs b/src/third_party/glam/mod.rs index 1abe7cda..f404df69 100644 --- a/src/third_party/glam/mod.rs +++ b/src/third_party/glam/mod.rs @@ -24,3 +24,5 @@ mod v024; mod v025; #[cfg(feature = "glam027")] mod v027; +#[cfg(feature = "glam028")] +mod v028; diff --git a/src/third_party/glam/v028/mod.rs b/src/third_party/glam/v028/mod.rs new file mode 100644 index 00000000..df3f9f6b --- /dev/null +++ b/src/third_party/glam/v028/mod.rs @@ -0,0 +1,18 @@ +#[path = "../common/glam_isometry.rs"] +mod glam_isometry; +#[path = "../common/glam_matrix.rs"] +mod glam_matrix; +#[path = "../common/glam_point.rs"] +mod glam_point; +#[path = "../common/glam_quaternion.rs"] +mod glam_quaternion; +#[path = "../common/glam_rotation.rs"] +mod glam_rotation; +#[path = "../common/glam_similarity.rs"] +mod glam_similarity; +#[path = "../common/glam_translation.rs"] +mod glam_translation; +#[path = "../common/glam_unit_complex.rs"] +mod glam_unit_complex; + +pub(self) use glam028 as glam;