| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.68.2" |
| 15 |
name = "glam" |
| 16 |
version = "0.30.10" |
| 17 |
authors = ["Cameron Hart <[email protected]>"] |
| 18 |
build = false |
| 19 |
autolib = false |
| 20 |
autobins = false |
| 21 |
autoexamples = false |
| 22 |
autotests = false |
| 23 |
autobenches = false |
| 24 |
description = "A simple and fast 3D math library for games and graphics" |
| 25 |
readme = "README.md" |
| 26 |
keywords = [ |
| 27 |
"gamedev", |
| 28 |
"math", |
| 29 |
"matrix", |
| 30 |
"vector", |
| 31 |
"quaternion", |
| 32 |
] |
| 33 |
categories = [ |
| 34 |
"game-engines", |
| 35 |
"no-std", |
| 36 |
] |
| 37 |
license = "MIT OR Apache-2.0" |
| 38 |
repository = "https://github.com/bitshifter/glam-rs" |
| 39 |
|
| 40 |
[badges.maintenance] |
| 41 |
status = "actively-developed" |
| 42 |
|
| 43 |
[features] |
| 44 |
bytecheck = ["rkyv/bytecheck"] |
| 45 |
core-simd = ["bytemuck?/nightly_portable_simd"] |
| 46 |
cuda = [] |
| 47 |
debug-glam-assert = [] |
| 48 |
default = ["std"] |
| 49 |
fast-math = [] |
| 50 |
glam-assert = [] |
| 51 |
libm = ["dep:libm"] |
| 52 |
nostd-libm = ["dep:libm"] |
| 53 |
scalar-math = [] |
| 54 |
serde = ["dep:serde_core"] |
| 55 |
std = [] |
| 56 |
zerocopy = [ |
| 57 |
"dep:zerocopy", |
| 58 |
"dep:zerocopy-derive", |
| 59 |
] |
| 60 |
|
| 61 |
[lib] |
| 62 |
name = "glam" |
| 63 |
path = "src/lib.rs" |
| 64 |
bench = false |
| 65 |
|
| 66 |
[[test]] |
| 67 |
name = "affine2" |
| 68 |
path = "tests/affine2.rs" |
| 69 |
|
| 70 |
[[test]] |
| 71 |
name = "affine3" |
| 72 |
path = "tests/affine3.rs" |
| 73 |
|
| 74 |
[[test]] |
| 75 |
name = "euler" |
| 76 |
path = "tests/euler.rs" |
| 77 |
|
| 78 |
[[test]] |
| 79 |
name = "float" |
| 80 |
path = "tests/float.rs" |
| 81 |
|
| 82 |
[[test]] |
| 83 |
name = "mat2" |
| 84 |
path = "tests/mat2.rs" |
| 85 |
|
| 86 |
[[test]] |
| 87 |
name = "mat3" |
| 88 |
path = "tests/mat3.rs" |
| 89 |
|
| 90 |
[[test]] |
| 91 |
name = "mat4" |
| 92 |
path = "tests/mat4.rs" |
| 93 |
|
| 94 |
[[test]] |
| 95 |
name = "quat" |
| 96 |
path = "tests/quat.rs" |
| 97 |
|
| 98 |
[[test]] |
| 99 |
name = "support" |
| 100 |
path = "tests/support.rs" |
| 101 |
|
| 102 |
[[test]] |
| 103 |
name = "swizzles_f32" |
| 104 |
path = "tests/swizzles_f32.rs" |
| 105 |
|
| 106 |
[[test]] |
| 107 |
name = "swizzles_f64" |
| 108 |
path = "tests/swizzles_f64.rs" |
| 109 |
|
| 110 |
[[test]] |
| 111 |
name = "swizzles_i16" |
| 112 |
path = "tests/swizzles_i16.rs" |
| 113 |
|
| 114 |
[[test]] |
| 115 |
name = "swizzles_i32" |
| 116 |
path = "tests/swizzles_i32.rs" |
| 117 |
|
| 118 |
[[test]] |
| 119 |
name = "swizzles_i64" |
| 120 |
path = "tests/swizzles_i64.rs" |
| 121 |
|
| 122 |
[[test]] |
| 123 |
name = "swizzles_i8" |
| 124 |
path = "tests/swizzles_i8.rs" |
| 125 |
|
| 126 |
[[test]] |
| 127 |
name = "swizzles_u16" |
| 128 |
path = "tests/swizzles_u16.rs" |
| 129 |
|
| 130 |
[[test]] |
| 131 |
name = "swizzles_u32" |
| 132 |
path = "tests/swizzles_u32.rs" |
| 133 |
|
| 134 |
[[test]] |
| 135 |
name = "swizzles_u64" |
| 136 |
path = "tests/swizzles_u64.rs" |
| 137 |
|
| 138 |
[[test]] |
| 139 |
name = "swizzles_u8" |
| 140 |
path = "tests/swizzles_u8.rs" |
| 141 |
|
| 142 |
[[test]] |
| 143 |
name = "swizzles_usize" |
| 144 |
path = "tests/swizzles_usize.rs" |
| 145 |
|
| 146 |
[[test]] |
| 147 |
name = "vec2" |
| 148 |
path = "tests/vec2.rs" |
| 149 |
|
| 150 |
[[test]] |
| 151 |
name = "vec3" |
| 152 |
path = "tests/vec3.rs" |
| 153 |
|
| 154 |
[[test]] |
| 155 |
name = "vec4" |
| 156 |
path = "tests/vec4.rs" |
| 157 |
|
| 158 |
[[bench]] |
| 159 |
name = "affine2" |
| 160 |
path = "benches/affine2.rs" |
| 161 |
harness = false |
| 162 |
|
| 163 |
[[bench]] |
| 164 |
name = "affine3" |
| 165 |
path = "benches/affine3.rs" |
| 166 |
harness = false |
| 167 |
|
| 168 |
[[bench]] |
| 169 |
name = "iai" |
| 170 |
path = "benches/iai.rs" |
| 171 |
harness = false |
| 172 |
|
| 173 |
[[bench]] |
| 174 |
name = "mat2" |
| 175 |
path = "benches/mat2.rs" |
| 176 |
harness = false |
| 177 |
|
| 178 |
[[bench]] |
| 179 |
name = "mat3" |
| 180 |
path = "benches/mat3.rs" |
| 181 |
harness = false |
| 182 |
|
| 183 |
[[bench]] |
| 184 |
name = "mat3a" |
| 185 |
path = "benches/mat3a.rs" |
| 186 |
harness = false |
| 187 |
|
| 188 |
[[bench]] |
| 189 |
name = "mat4" |
| 190 |
path = "benches/mat4.rs" |
| 191 |
harness = false |
| 192 |
|
| 193 |
[[bench]] |
| 194 |
name = "quat" |
| 195 |
path = "benches/quat.rs" |
| 196 |
harness = false |
| 197 |
|
| 198 |
[[bench]] |
| 199 |
name = "support" |
| 200 |
path = "benches/support.rs" |
| 201 |
bench = false |
| 202 |
|
| 203 |
[[bench]] |
| 204 |
name = "vec2" |
| 205 |
path = "benches/vec2.rs" |
| 206 |
harness = false |
| 207 |
|
| 208 |
[[bench]] |
| 209 |
name = "vec3" |
| 210 |
path = "benches/vec3.rs" |
| 211 |
harness = false |
| 212 |
|
| 213 |
[[bench]] |
| 214 |
name = "vec3a" |
| 215 |
path = "benches/vec3a.rs" |
| 216 |
harness = false |
| 217 |
|
| 218 |
[[bench]] |
| 219 |
name = "vec4" |
| 220 |
path = "benches/vec4.rs" |
| 221 |
harness = false |
| 222 |
|
| 223 |
[dependencies.approx] |
| 224 |
version = "0.5" |
| 225 |
optional = true |
| 226 |
default-features = false |
| 227 |
|
| 228 |
[dependencies.arbitrary] |
| 229 |
version = "1.4.2" |
| 230 |
optional = true |
| 231 |
default-features = false |
| 232 |
|
| 233 |
[dependencies.bytemuck] |
| 234 |
version = "1.9" |
| 235 |
features = [ |
| 236 |
"derive", |
| 237 |
"aarch64_simd", |
| 238 |
"wasm_simd", |
| 239 |
] |
| 240 |
optional = true |
| 241 |
default-features = false |
| 242 |
|
| 243 |
[dependencies.encase] |
| 244 |
version = "0.12" |
| 245 |
optional = true |
| 246 |
default-features = false |
| 247 |
|
| 248 |
[dependencies.libm] |
| 249 |
version = "0.2" |
| 250 |
optional = true |
| 251 |
default-features = false |
| 252 |
|
| 253 |
[dependencies.mint] |
| 254 |
version = "0.5.8" |
| 255 |
optional = true |
| 256 |
default-features = false |
| 257 |
|
| 258 |
[dependencies.rand] |
| 259 |
version = "0.9" |
| 260 |
optional = true |
| 261 |
default-features = false |
| 262 |
|
| 263 |
[dependencies.rkyv] |
| 264 |
version = "0.8" |
| 265 |
optional = true |
| 266 |
default-features = false |
| 267 |
|
| 268 |
[dependencies.serde_core] |
| 269 |
version = "1.0" |
| 270 |
optional = true |
| 271 |
default-features = false |
| 272 |
|
| 273 |
[dependencies.speedy] |
| 274 |
version = "0.8" |
| 275 |
optional = true |
| 276 |
default-features = false |
| 277 |
|
| 278 |
[dependencies.zerocopy] |
| 279 |
version = "0.8" |
| 280 |
features = ["simd"] |
| 281 |
optional = true |
| 282 |
default-features = false |
| 283 |
|
| 284 |
[dependencies.zerocopy-derive] |
| 285 |
version = "0.8" |
| 286 |
optional = true |
| 287 |
default-features = false |
| 288 |
|
| 289 |
[dev-dependencies.rand_xoshiro] |
| 290 |
version = "0.7" |
| 291 |
|
| 292 |
[dev-dependencies.rkyv] |
| 293 |
version = "0.8" |
| 294 |
features = ["alloc"] |
| 295 |
default-features = false |
| 296 |
|
| 297 |
[dev-dependencies.serde_json] |
| 298 |
version = "1.0" |
| 299 |
|
| 300 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion] |
| 301 |
version = "0.8" |
| 302 |
features = ["html_reports"] |
| 303 |
|
| 304 |
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.iai-callgrind] |
| 305 |
version = "0.16" |
| 306 |
|
| 307 |
[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test] |
| 308 |
version = "0.3" |
| 309 |
|
| 310 |
[lints.rust.unexpected_cfgs] |
| 311 |
level = "warn" |
| 312 |
priority = 0 |
| 313 |
check-cfg = ['cfg(target_arch, values("spirv"))'] |