Debian Codegraph @

debian/missing-sources/glam-0.29.3/Cargo.toml.orig

raw
1 [package]
2 name = "glam"
3 version = "0.29.3" # 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 # enables libm and prefers it over std
45 libm = ["dep:libm"]
46
47 # enables libm but will prefer std if available
48 nostd-libm = ["dep:libm"]
49
50 [dependencies]
51 approx = { version = "0.5", optional = true, default-features = false }
52 bytemuck = { version = "1.9", optional = true, default-features = false }
53 mint = { version = "0.5.8", optional = true, default-features = false }
54 rand = { version = "0.8", optional = true, default-features = false }
55 serde = { version = "1.0", optional = true, default-features = false }
56 rkyv = { version = "0.7", optional = true, default-features = false }
57 bytecheck = { version = "0.7", optional = true, default-features = false }
58 libm = { version = "0.2", optional = true, default-features = false}
59
60 [dev-dependencies]
61 # rand_xoshiro is required for tests if rand is enabled
62 rand_xoshiro = "0.6"
63 # Set a size_xx feature so that this crate compiles properly with --all-targets --all-features
64 rkyv = { version = "0.7", default-features = false, features = ["size_32"] }
65 serde_json = "1.0"
66
67 [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
68 criterion = { version = "0.5", features = ["html_reports"] }
69 iai-callgrind = "0.14"
70
71 [target.'cfg(target_arch = "wasm32")'.dev-dependencies]
72 wasm-bindgen-test = "0.3"
73
74 [lib]
75 bench = false
76
77 [[bench]]
78 name = "mat2"
79 harness = false
80
81 [[bench]]
82 name = "mat3"
83 harness = false
84
85 [[bench]]
86 name = "mat3a"
87 harness = false
88
89 [[bench]]
90 name = "affine2"
91 harness = false
92
93 [[bench]]
94 name = "affine3"
95 harness = false
96
97 [[bench]]
98 name = "mat4"
99 harness = false
100
101 [[bench]]
102 name = "quat"
103 harness = false
104
105 [[bench]]
106 name = "support"
107 bench = false
108
109 [[bench]]
110 name = "vec2"
111 harness = false
112
113 [[bench]]
114 name = "vec3"
115 harness = false
116
117 [[bench]]
118 name = "vec3a"
119 harness = false
120
121 [[bench]]
122 name = "vec4"
123 harness = false
124
125 [[bench]]
126 name = "iai"
127 harness = false
128
129 [workspace]
130 members = [
131 "codegen",
132 "test_no_std",
133 ]
134
135 [lints.rust]
136 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_arch, values("spirv"))'] }