Cargo Features
[dependencies]
revier-glam = { version = "1.1.0", default-features = false, features = ["std", "debug-glam-assert", "glam-assert", "scalar-math", "cuda", "fast-math", "core-simd", "approx", "bytemuck", "mint", "rand", "serde", "rkyv", "bytecheck", "libm"] }
- default = std
-
The
std
feature is set by default wheneverrevier-glam
is added without
somewhere in the dependency tree.default-features = false - std default
-
enable support for the standard library
- debug-glam-assert
-
enable additional glam checks if debug assertions are enabled
- glam-assert
-
always enable additional glam checks
- scalar-math
-
this is primarily for testing the fallback implementation
- cuda
-
align types to match CUDA requirements
- fast-math
-
Enables platform specific optimizations that might speed-up certain operations.
This will cause APIs to output different results depending on the platform used and will likely break cross-platform determinism.
This should NOT be enabled by intermediate libraries, deferring the decision to the end binary build instead. - core-simd
-
experimental nightly portable-simd support
Features from optional dependencies
- approx implicit feature
-
Enables approx
approx:
Approximate floating point equality comparisons and assertions
Affects
features::impl_approx
… - bytemuck implicit feature
-
Enables bytemuck
bytemuck:
A crate for mucking around with piles of bytes
Affects
features::impl_bytemuck
… - mint implicit feature
-
Enables mint
mint:
Math interoperability standard types
Affects
features::impl_mint
… - rand implicit feature
-
Enables rand
rand:
Random number generators and other randomness functionality
Affects
features::impl_rand
… - serde implicit feature
-
Enables serde
serde:
A generic serialization/deserialization framework
Affects
features::impl_serde
… - rkyv implicit feature
-
Enables rkyv ^0.7
Set a size_xx feature so that this crate compiles properly with --all-targets --all-features
Affects
features::impl_rkyv
… - bytecheck implicit feature
-
Enables bytecheck ^0.6
bytecheck:
Memory validation framework for Rust
- libm implicit feature
-
Enables libm
libm:
libm in pure Rust