Skip to content

⬆️ Extend the glam version range to >=0.18, <=0.33 - #62

Open
MarijnS95 wants to merge 4 commits into
mainfrom
glam-0.25
Open

⬆️ Extend the glam version range to >=0.18, <=0.33#62
MarijnS95 wants to merge 4 commits into
mainfrom
glam-0.25

Conversation

@MarijnS95

@MarijnS95 MarijnS95 commented Dec 25, 2023

Copy link
Copy Markdown
Member

Supersedes #61.

Widens the accepted glam range so a downstream consumer can move its workspace to 0.33 without dragging a second glam into the graph - any version this crate does not accept forces one, since a [patch] removes the crates.io copy as a resolution candidate for everyone else.

No code change is needed: 0.33 gates the numeric types behind features, but default still enables all-types and this crate takes glam with default features, so DVec3 and friends stay available. Verified to build at both ends of the range, 0.30.10 and 0.33.3; there are no tests here, so compiling is the only evidence available.

Also drops the bevy-based dev-dependencies, which no longer build.

@MarijnS95

MarijnS95 commented Dec 25, 2023

Copy link
Copy Markdown
Member Author

Looks like we need to bump bevy as well (once they merge and release bevyengine/bevy#11082...) to get the examples to compile... But bevy_aabb_instancing hasn't updated yet.

@MarijnS95 MarijnS95 mentioned this pull request Jul 7, 2024
@MarijnS95 MarijnS95 changed the title Bump glam upper bound to <= 0.25 Bump glam upper bound to <= 0.30\ Oct 30, 2025
@MarijnS95 MarijnS95 changed the title Bump glam upper bound to <= 0.30\ Bump glam upper bound to <= 0.30 Oct 30, 2025
Comment thread src/data_structure.rs
Comment on lines 235 to -240
fn local_coord_to_offset(&self, xyz: LocalCoord) -> Index {
Index(
(((xyz.0[0] & (Self::DIM - 1)) >> Self::TOTAL) << (2 * Self::LOG_2_DIM))
+ (((xyz.0[1] & (Self::DIM - 1)) >> Self::TOTAL) << Self::LOG_2_DIM)
+ ((xyz.0[2] & (Self::DIM - 1)) >> Self::TOTAL),
)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasperdewinther can you double-check this? It seems surprising that going from local coordinates shifts right by Self::TOTAL, but going from offset to local coordinates below does not. That is only performed in offset_to_global_coord(). Perhaps it is in the wrong place?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this code even change?

Comment thread Cargo.toml
Comment on lines -35 to -39
[dev-dependencies]
bevy = { version = "0.11", default-features = false, features = ["bevy_pbr"] }
bevy-aabb-instancing = "0.10"
bevy_egui = "0.22"
smooth-bevy-cameras = "0.9"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried but failed (thus far) to push the dependency updates through to these crates. Will try again but we might just delete the samples as it's preventing us from bumping an entire dependency stack.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying in fslabs/bevy_aabb_instancing#27 again but Bevy internals are incredibly complex, especially when never using it and jumping straight into deep custom rendering implementations and upgrading it from 0.11 to 0.17 with many new/changed abstractions.

A downstream consumer is moving its workspace to 0.33 to line up with a `[patch]`
onto a fork carrying portable archived `rkyv` types. Any version this crate does
not accept forces a second `glam` into that graph.

No code change: 0.33 gates the numeric types behind features, but `default`
still enables `all-types`, and this crate takes `glam` with default features, so
`DVec3` and friends stay available.

Verified to build at both ends of the range, 0.30.10 and 0.33.3. There are no
tests in this crate, so compiling is the only evidence available.
@MarijnS95 MarijnS95 changed the title Bump glam upper bound to <= 0.30 Bump glam upper bound to <= 0.33 Aug 11, 2026
@MarijnS95 MarijnS95 changed the title Bump glam upper bound to <= 0.33 Bump glam upper bound to <= 0.33 and delete bevy examples (😢) Aug 11, 2026
@MarijnS95 MarijnS95 changed the title Bump glam upper bound to <= 0.33 and delete bevy examples (😢) ⬆️ Extend the glam version range to >=0.18, <=0.33 Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants