[package] name = "glam" version = "0.8.7" # remember to update html_root_url edition = "2018" authors = ["Cameron Hart "] description = "A simple and fast 3D math library for games and graphics" repository = "https://github.com/bitshifter/glam-rs" readme = "README.md" license = "MIT OR Apache-2.0" keywords = ["gamedev", "math", "matrix", "vector", "quaternion"] categories = ["game-engines"] build = "build.rs" [badges] travis-ci = { repository = "bitshifter/glam-rs" } coveralls = { repository = "bitshifter/glam-rs" } maintenance = { status = "experimental" } [features] default = ["std"] # enable support for the standard library std = [] # enable additional glam checks if debug assertions are enabled debug-glam-assert = [] # always enable additional glam checks glam-assert = [] # opt out of Vec3 and Mat3 using SIMD (and thus being 16 byte aligned) packed-vec3 = [] # this is primarily for testing the fallback implementation scalar-math = [] # trying out transform types instead of matrices but they are generally slower # at everything except for inverse. They are 16 bytes smaller than a Mat4. transform-types = [] [dependencies] mint = { version = "0.5", optional = true, default-features = false } rand = { version = "0.7", optional = true, default-features = false } serde = { version = "1.0", optional = true, features = ["derive"] } zerocopy = { version = "0.3.0" } [dev-dependencies] criterion = "0.3" # rand_xoshiro is required for tests if rand is enabled rand_xoshiro = "0.4" serde_json = "1.0" [[bench]] name = "mat2" harness = false [[bench]] name = "mat3" harness = false [[bench]] name = "mat4" harness = false [[bench]] name = "quat" harness = false [[bench]] name = "transform" harness = false required-features = ["transform-types"] [[bench]] name = "vec2" harness = false [[bench]] name = "vec3" harness = false [[bench]] name = "vec4" harness = false