Crate features / glam
Feature flags · glam 0.34.1 · from crates.io 2026-10-24
glam features: what each one does, and the line to copy
Short answerglam 0.34.1 has 33 features. By default it turns on std, all-types; add default-features = false to start from nothing. It needs Rust 1.85.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
all-types | yes | float-types, integer-types, size-types |
approx-05 | dep:approx-05 | |
bytecheck | rkyv-08?/bytecheck | |
core-simd | bytemuck?/nightly_portable_simd | |
cuda | nothing else (a switch the code checks) | |
debug-glam-assert | nothing else (a switch the code checks) | |
encase-012 | dep:encase-012 | |
encase-013 | dep:encase-013 | |
f64 | nothing else (a switch the code checks) | |
float-types | f64 | |
glam-assert | nothing else (a switch the code checks) | |
i16 | nothing else (a switch the code checks) | |
i32 | nothing else (a switch the code checks) | |
i64 | nothing else (a switch the code checks) | |
i8 | nothing else (a switch the code checks) | |
integer-types | i8, u8, i16, u16, i32, u32, i64, u64 | |
isize | nothing else (a switch the code checks) | |
libm | dep:libm | |
mint-05 | dep:mint-05 | |
nostd-libm | dep:libm | |
rand-010 | dep:rand-010 | |
rkyv-08 | dep:rkyv-08 | |
scalar-math | nothing else (a switch the code checks) | |
serde | dep:serde_core | |
size-types | isize, usize | |
speedy-08 | dep:speedy-08 | |
std | yes | nothing else (a switch the code checks) |
u16 | nothing else (a switch the code checks) | |
u32 | nothing else (a switch the code checks) | |
u64 | nothing else (a switch the code checks) | |
u8 | nothing else (a switch the code checks) | |
usize | nothing else (a switch the code checks) | |
zerocopy-08 | dep:zerocopy-08, dep:zerocopy-derive-08 |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version glam declares (rust-version), and the release that changed it:
- 0.21.1 (2022-06-22): Rust 1.58.1
- 0.26.0 (2024-03-18): Rust 1.68.2
- 0.34.0 (2026-10-04): Rust 1.85.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p glam --precise <version>, or use resolver 3, which picks compatible versions for you.
More on glam
Real downloads, dependents and alternatives: glam crate data (614.1K real downloads a day, 1,525 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2024
Up next
Before you depend on itglam crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?