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
stdfeature is set by default wheneverglamxis added withoutsomewhere in the dependency tree.default-features = false - std default
-
Standard library support
- serde = glamx-serde
-
Serialization features
- glamx-serde serde?
-
Internal flag to enable serde derives on glamx types
- bytemuck
-
Bytemuck support
- 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
- cuda
-
CUDA support (glam feature)
- 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
- rkyv
-
Rkyv serialization
- mint
-
Mint interop
- rand
-
Rand support
- encase