Email me

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

0.34.1latest version
33features
11optional dependencies
1.85.0MSRV (rust-version)

Every feature

FeatureIn defaultTurns on
all-typesyesfloat-types, integer-types, size-types
approx-05dep:approx-05
bytecheckrkyv-08?/bytecheck
core-simdbytemuck?/nightly_portable_simd
cudanothing else (a switch the code checks)
debug-glam-assertnothing else (a switch the code checks)
encase-012dep:encase-012
encase-013dep:encase-013
f64nothing else (a switch the code checks)
float-typesf64
glam-assertnothing else (a switch the code checks)
i16nothing else (a switch the code checks)
i32nothing else (a switch the code checks)
i64nothing else (a switch the code checks)
i8nothing else (a switch the code checks)
integer-typesi8, u8, i16, u16, i32, u32, i64, u64
isizenothing else (a switch the code checks)
libmdep:libm
mint-05dep:mint-05
nostd-libmdep:libm
rand-010dep:rand-010
rkyv-08dep:rkyv-08
scalar-mathnothing else (a switch the code checks)
serdedep:serde_core
size-typesisize, usize
speedy-08dep:speedy-08
stdyesnothing else (a switch the code checks)
u16nothing else (a switch the code checks)
u32nothing else (a switch the code checks)
u64nothing else (a switch the code checks)
u8nothing else (a switch the code checks)
usizenothing else (a switch the code checks)
zerocopy-08dep: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?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ