[package]
edition = "2024"
name = "vqm"
version = "0.1.9"
authors = ["Martin Budden"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A vector, quaternion, and matrix library targeted at embedded systems and robotics."
readme = "README.md"
keywords = [
"vector",
"quaternion",
"matrix",
"no_std",
"robotics",
]
categories = [
"embedded",
"mathematics",
"no-std",
"science::robotics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/martinbudden/crate-vector-quaternion-matrix"
[package.metadata.docs.rs]
all-features = true
[features]
default = ["libm"]
libm = [
"dep:libm",
"num-traits/libm",
]
no_align = []
serde = [
"dep:serde",
"postcard",
]
simd = []
std = ["num-traits/std"]
[lib]
name = "vqm"
path = "src/lib.rs"
[[test]]
name = "matrix2x2"
path = "tests/matrix2x2.rs"
[[test]]
name = "matrix3x3"
path = "tests/matrix3x3.rs"
[[test]]
name = "matrix4x4"
path = "tests/matrix4x4.rs"
[[test]]
name = "matrix9x9"
path = "tests/matrix9x9.rs"
[[test]]
name = "quaternion"
path = "tests/quaternion.rs"
[[test]]
name = "vector2d"
path = "tests/vector2d.rs"
[[test]]
name = "vector3d"
path = "tests/vector3d.rs"
[[test]]
name = "vector4d"
path = "tests/vector4d.rs"
[[bench]]
name = "math_bench"
path = "benches/math_bench.rs"
harness = false
[[bench]]
name = "matrix_bench"
path = "benches/matrix_bench.rs"
harness = false
[[bench]]
name = "vq_bench"
path = "benches/vq_bench.rs"
harness = false
[dependencies.cfg-if]
version = "1.0.4"
[dependencies.libm]
version = "0.2.16"
optional = true
[dependencies.num-traits]
version = "0.2.19"
default-features = false
[dependencies.postcard]
version = "1.1.3"
features = ["embedded-io"]
optional = true
default-features = false
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true
default-features = false
[dev-dependencies.approx]
version = "0.5.1"
default-features = false
[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
[dev-dependencies.rand]
version = "0.10.1"
[build-dependencies.rustc_version]
version = "0.4.1"
[profile.debugging]
debug = 2
inherits = "dev"
[profile.dev]
opt-level = 0
lto = false
codegen-units = 256
debug = "line-tables-only"
debug-assertions = true
rpath = false
panic = "unwind"
overflow-checks = true
incremental = true
strip = "none"
[profile.dev.package."*"]
debug = 0
[profile.release]
opt-level = 3
lto = false
codegen-units = 16
debug = 0
debug-assertions = false
rpath = false
panic = "abort"
overflow-checks = false
incremental = false
strip = "none"
[profile.release-lto]
lto = true
inherits = "release"