| 1 |
[package] |
| 2 |
name = "glam" |
| 3 |
version = "0.27.0" # remember to update html_root_url |
| 4 |
edition = "2021" |
| 5 |
authors = ["Cameron Hart <[email protected]>"] |
| 6 |
description = "A simple and fast 3D math library for games and graphics" |
| 7 |
repository = "https://github.com/bitshifter/glam-rs" |
| 8 |
readme = "README.md" |
| 9 |
license = "MIT OR Apache-2.0" |
| 10 |
keywords = ["gamedev", "math", "matrix", "vector", "quaternion"] |
| 11 |
categories = ["game-engines", "no-std"] |
| 12 |
rust-version = "1.68.2" |
| 13 |
|
| 14 |
[badges] |
| 15 |
maintenance = { status = "actively-developed" } |
| 16 |
|
| 17 |
[features] |
| 18 |
default = ["std"] |
| 19 |
|
| 20 |
# enable support for the standard library |
| 21 |
std = [] |
| 22 |
|
| 23 |
# enable additional glam checks if debug assertions are enabled |
| 24 |
debug-glam-assert = [] |
| 25 |
# always enable additional glam checks |
| 26 |
glam-assert = [] |
| 27 |
|
| 28 |
# this is primarily for testing the fallback implementation |
| 29 |
scalar-math = [] |
| 30 |
|
| 31 |
# align types to match CUDA requirements |
| 32 |
cuda = [] |
| 33 |
|
| 34 |
# Enables platform specific optimizations that might speed-up certain operations. |
| 35 |
# This will cause APIs to output different results depending on the platform used |
| 36 |
# and will likely break cross-platform determinism. |
| 37 |
# This should NOT be enabled by intermediate libraries, deferring the decision to |
| 38 |
# the end binary build instead. |
| 39 |
fast-math = [] |
| 40 |
|
| 41 |
# experimental nightly portable-simd support |
| 42 |
core-simd = [] |
| 43 |
|
| 44 |
[dependencies] |
| 45 |
approx = { version = "0.5", optional = true, default-features = false } |
| 46 |
bytemuck = { version = "1.9", optional = true, default-features = false } |
| 47 |
mint = { version = "0.5.8", optional = true, default-features = false } |
| 48 |
rand = { version = "0.8", optional = true, default-features = false } |
| 49 |
serde = { version = "1.0", optional = true, default-features = false } |
| 50 |
rkyv = { version = "0.7", optional = true, default-features = false } |
| 51 |
bytecheck = { version = "0.7", optional = true, default-features = false } |
| 52 |
libm = { version = "0.2", optional = true, default-features = false} |
| 53 |
|
| 54 |
[dev-dependencies] |
| 55 |
# rand_xoshiro is required for tests if rand is enabled |
| 56 |
rand_xoshiro = "0.6" |
| 57 |
# Set a size_xx feature so that this crate compiles properly with --all-targets --all-features |
| 58 |
rkyv = { version = "0.7", default-features = false, features = ["size_32"] } |
| 59 |
serde_json = "1.0" |
| 60 |
|
| 61 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] |
| 62 |
criterion = { version = "0.5", features = ["html_reports"] } |
| 63 |
|
| 64 |
[target.'cfg(target_arch = "wasm32")'.dev-dependencies] |
| 65 |
wasm-bindgen-test = "0.3.0" |
| 66 |
|
| 67 |
[lib] |
| 68 |
bench = false |
| 69 |
|
| 70 |
[[bench]] |
| 71 |
name = "mat2" |
| 72 |
harness = false |
| 73 |
|
| 74 |
[[bench]] |
| 75 |
name = "mat3" |
| 76 |
harness = false |
| 77 |
|
| 78 |
[[bench]] |
| 79 |
name = "mat3a" |
| 80 |
harness = false |
| 81 |
|
| 82 |
[[bench]] |
| 83 |
name = "affine2" |
| 84 |
harness = false |
| 85 |
|
| 86 |
[[bench]] |
| 87 |
name = "affine3" |
| 88 |
harness = false |
| 89 |
|
| 90 |
[[bench]] |
| 91 |
name = "mat4" |
| 92 |
harness = false |
| 93 |
|
| 94 |
[[bench]] |
| 95 |
name = "quat" |
| 96 |
harness = false |
| 97 |
|
| 98 |
[[bench]] |
| 99 |
name = "vec2" |
| 100 |
harness = false |
| 101 |
|
| 102 |
[[bench]] |
| 103 |
name = "vec3" |
| 104 |
harness = false |
| 105 |
|
| 106 |
[[bench]] |
| 107 |
name = "vec3a" |
| 108 |
harness = false |
| 109 |
|
| 110 |
[[bench]] |
| 111 |
name = "vec4" |
| 112 |
harness = false |
| 113 |
|
| 114 |
[workspace] |
| 115 |
members = [ |
| 116 |
"codegen", |
| 117 |
"test_no_std", |
| 118 |
] |