-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathCargo.toml
More file actions
164 lines (128 loc) · 3.92 KB
/
Copy pathCargo.toml
File metadata and controls
164 lines (128 loc) · 3.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[package]
name = "glam"
version = "0.33.2" # remember to update html_root_url
edition = "2021"
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", "no-std"]
rust-version = "1.68.2"
[badges]
maintenance = { status = "actively-developed" }
[features]
default = ["std", "all-types"]
# enable support for the standard library
std = []
f64 = []
isize = []
usize = []
i64 = []
u64 = []
i32 = []
u32 = []
i16 = []
u16 = []
i8 = []
u8 = []
float-types = ["f64"]
integer-types = ["i8", "u8", "i16", "u16", "i32", "u32", "i64", "u64"]
size-types = ["isize", "usize"]
all-types = ["float-types", "integer-types", "size-types"]
# enable additional glam checks if debug assertions are enabled
debug-glam-assert = []
# always enable additional glam checks
glam-assert = []
# this is primarily for testing the fallback implementation
scalar-math = []
# align types to match CUDA requirements
cuda = []
# Enables platform specific optimizations that might speed-up certain operations.
# This will cause APIs to output different results depending on the platform used
# and will likely break cross-platform determinism.
# This should NOT be enabled by intermediate libraries, deferring the decision to
# the end binary build instead.
fast-math = []
serde = ["dep:serde_core"]
# experimental nightly portable-simd support
core-simd = ["bytemuck?/nightly_portable_simd"]
bytecheck = ["rkyv/bytecheck"]
zerocopy = ["dep:zerocopy", "dep:zerocopy-derive"]
# enables libm and prefers it over std
libm = ["dep:libm"]
# enables libm but will prefer std if available
nostd-libm = ["dep:libm"]
[dependencies]
approx = { version = "0.5", optional = true, default-features = false }
bytemuck = { version = "1.9", optional = true, default-features = false, features = ["derive", "aarch64_simd", "wasm_simd"] }
mint = { version = "0.5.8", optional = true, default-features = false }
rand = { version = "0.10", optional = true, default-features = false }
serde_core = { version = "1.0", optional = true, default-features = false }
rkyv = { version = "0.8", optional = true, default-features = false }
libm = { version = "0.2", optional = true, default-features = false }
speedy = { version = "0.8", optional = true, default-features = false }
encase = { version = "0.12", optional = true, default-features = false }
zerocopy = { version = "0.8", optional = true, default-features = false, features = ["simd"] }
zerocopy-derive = { version = "0.8", optional = true, default-features = false }
arbitrary = { version = "1.4.2", default-features = false, optional = true }
[dev-dependencies]
# rand_xoshiro is required for tests if rand is enabled
rand_xoshiro = "0.8"
# "alloc" is needed to support to_bytes()/deserialize() in tests.
rkyv = { version = "0.8", default-features = false, features = ["alloc"] }
serde_json = "1.0"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
criterion = { version = "0.8", features = ["html_reports"] }
gungraun = "0.19"
[target.'cfg(target_family = "wasm")'.dev-dependencies]
wasm-bindgen-test = "0.3.0"
[lib]
bench = false
[[bench]]
name = "mat2"
harness = false
[[bench]]
name = "mat3"
harness = false
[[bench]]
name = "mat3a"
harness = false
[[bench]]
name = "affine2"
harness = false
[[bench]]
name = "affine3"
harness = false
[[bench]]
name = "mat4"
harness = false
[[bench]]
name = "quat"
harness = false
[[bench]]
name = "support"
bench = false
[[bench]]
name = "vec2"
harness = false
[[bench]]
name = "vec3"
harness = false
[[bench]]
name = "vec3a"
harness = false
[[bench]]
name = "vec4"
harness = false
[[bench]]
name = "gungraun"
harness = false
[workspace]
members = [
"tools/ci",
"tools/codegen",
"tools/test_no_std",
]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_arch, values("spirv"))'] }