Cargo Features

[dependencies]
glamx = { version = "0.2.0", default-features = false, features = ["std", "serde", "glamx-serde", "bytemuck", "nalgebra", "libm", "nostd-libm", "approx", "cuda", "scalar-math", "debug-glam-assert", "glam-assert", "fast-math", "rkyv", "mint", "rand", "encase"] }
default = std

The std feature is set by default whenever glamx is added without default-features = false somewhere in the dependency tree.

std default

Standard library support

Enables std of optional approx, glam, and simba

serde = glamx-serde

Serialization features

Enables serde, serde of glam

glamx-serde serde?

Internal flag to enable serde derives on glamx types

bytemuck

Bytemuck support

Enables bytemuck, bytemuck of glam

nalgebra

Nalgebra interop

Enables nalgebra

libm

Math library features

Enables num-traits, libm of glam, libm_force of simba

nostd-libm

Enables libm of simba and nostd-libm of glam

glam:

enables libm but will prefer std if available

approx

Approx is always available via re-export

Enables approx, approx of glam

cuda

CUDA support (glam feature)

Enables cuda of glam

scalar-math

Scalar math (glam feature) - enabled by default in glam

Enables scalar-math of glam

debug-glam-assert

Debug assertions for glam

Enables debug-glam-assert of glam

glam-assert

Enables glam-assert of glam

glam:

always enable additional glam checks

fast-math

Fast math approximations

Enables fast-math of glam

rkyv

Rkyv serialization

Enables rkyv, rkyv of glam

mint

Mint interop

Enables mint of glam

rand

Rand support

Enables rand of glam

encase

Enables encase of glam