Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support conversion for glam 0.29 #1434

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ documented here.

This project adheres to [Semantic Versioning](https://semver.org/).


## Unreleased

### Added

- Add the `glam-0.29` feature to enable conversion from/to types from `glam` v0.29.

## [0.33.0] (23 June 2024)

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ convert-glam024 = ["glam024"]
convert-glam025 = ["glam025"]
convert-glam027 = ["glam027"]
convert-glam028 = ["glam028"]
convert-glam029 = ["glam029"]

# Serialization
## To use serde in a #[no-std] environment, enable the
Expand Down Expand Up @@ -108,6 +109,7 @@ 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 }
glam029 = { package = "glam", version = "0.29", optional = true }
rayon = { version = "1.6", optional = true }

[dev-dependencies]
Expand Down
2 changes: 2 additions & 0 deletions src/third_party/glam/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ mod v025;
mod v027;
#[cfg(feature = "glam028")]
mod v028;
#[cfg(feature = "glam029")]
mod v029;
18 changes: 18 additions & 0 deletions src/third_party/glam/v029/mod.rs
Original file line number Diff line number Diff line change
@@ -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 glam029 as glam;
Loading