[package]
edition = "2021"
rust-version = "1.68.2"
name = "glam"
version = "0.32.0"
authors = ["Cameron Hart <cameron.hart@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple and fast 3D math library for games and graphics"
readme = "README.md"
keywords = [
"gamedev",
"math",
"matrix",
"vector",
"quaternion",
]
categories = [
"game-engines",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bitshifter/glam-rs"
[badges.maintenance]
status = "actively-developed"
[features]
bytecheck = ["rkyv/bytecheck"]
core-simd = ["bytemuck?/nightly_portable_simd"]
cuda = []
debug-glam-assert = []
default = ["std"]
fast-math = []
glam-assert = []
libm = ["dep:libm"]
nostd-libm = ["dep:libm"]
scalar-math = []
serde = ["dep:serde_core"]
std = []
zerocopy = [
"dep:zerocopy",
"dep:zerocopy-derive",
]
[lib]
name = "glam"
path = "src/lib.rs"
bench = false
[[test]]
name = "affine2"
path = "tests/affine2.rs"
[[test]]
name = "affine3"
path = "tests/affine3.rs"
[[test]]
name = "euler"
path = "tests/euler.rs"
[[test]]
name = "float"
path = "tests/float.rs"
[[test]]
name = "mat2"
path = "tests/mat2.rs"
[[test]]
name = "mat3"
path = "tests/mat3.rs"
[[test]]
name = "mat4"
path = "tests/mat4.rs"
[[test]]
name = "quat"
path = "tests/quat.rs"
[[test]]
name = "support"
path = "tests/support.rs"
[[test]]
name = "swizzles_f32"
path = "tests/swizzles_f32.rs"
[[test]]
name = "swizzles_f64"
path = "tests/swizzles_f64.rs"
[[test]]
name = "swizzles_i16"
path = "tests/swizzles_i16.rs"
[[test]]
name = "swizzles_i32"
path = "tests/swizzles_i32.rs"
[[test]]
name = "swizzles_i64"
path = "tests/swizzles_i64.rs"
[[test]]
name = "swizzles_i8"
path = "tests/swizzles_i8.rs"
[[test]]
name = "swizzles_isize"
path = "tests/swizzles_isize.rs"
[[test]]
name = "swizzles_u16"
path = "tests/swizzles_u16.rs"
[[test]]
name = "swizzles_u32"
path = "tests/swizzles_u32.rs"
[[test]]
name = "swizzles_u64"
path = "tests/swizzles_u64.rs"
[[test]]
name = "swizzles_u8"
path = "tests/swizzles_u8.rs"
[[test]]
name = "swizzles_usize"
path = "tests/swizzles_usize.rs"
[[test]]
name = "vec2"
path = "tests/vec2.rs"
[[test]]
name = "vec3"
path = "tests/vec3.rs"
[[test]]
name = "vec4"
path = "tests/vec4.rs"
[[bench]]
name = "affine2"
path = "benches/affine2.rs"
harness = false
[[bench]]
name = "affine3"
path = "benches/affine3.rs"
harness = false
[[bench]]
name = "gungraun"
path = "benches/gungraun.rs"
harness = false
[[bench]]
name = "mat2"
path = "benches/mat2.rs"
harness = false
[[bench]]
name = "mat3"
path = "benches/mat3.rs"
harness = false
[[bench]]
name = "mat3a"
path = "benches/mat3a.rs"
harness = false
[[bench]]
name = "mat4"
path = "benches/mat4.rs"
harness = false
[[bench]]
name = "quat"
path = "benches/quat.rs"
harness = false
[[bench]]
name = "support"
path = "benches/support.rs"
bench = false
[[bench]]
name = "vec2"
path = "benches/vec2.rs"
harness = false
[[bench]]
name = "vec3"
path = "benches/vec3.rs"
harness = false
[[bench]]
name = "vec3a"
path = "benches/vec3a.rs"
harness = false
[[bench]]
name = "vec4"
path = "benches/vec4.rs"
harness = false
[dependencies.approx]
version = "0.5"
optional = true
default-features = false
[dependencies.arbitrary]
version = "1.4.2"
optional = true
default-features = false
[dependencies.bytemuck]
version = "1.9"
features = [
"derive",
"aarch64_simd",
"wasm_simd",
]
optional = true
default-features = false
[dependencies.encase]
version = "0.12"
optional = true
default-features = false
[dependencies.libm]
version = "0.2"
optional = true
default-features = false
[dependencies.mint]
version = "0.5.8"
optional = true
default-features = false
[dependencies.rand]
version = "0.10"
optional = true
default-features = false
[dependencies.rkyv]
version = "0.8"
optional = true
default-features = false
[dependencies.serde_core]
version = "1.0"
optional = true
default-features = false
[dependencies.speedy]
version = "0.8"
optional = true
default-features = false
[dependencies.zerocopy]
version = "0.8"
features = ["simd"]
optional = true
default-features = false
[dependencies.zerocopy-derive]
version = "0.8"
optional = true
default-features = false
[dev-dependencies.rand_xoshiro]
version = "0.8"
[dev-dependencies.rkyv]
version = "0.8"
features = ["alloc"]
default-features = false
[dev-dependencies.serde_json]
version = "1.0"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.gungraun]
version = "0.17"
[target.'cfg(target_family = "wasm")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.0"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(target_arch, values("spirv"))']