-
Notifications
You must be signed in to change notification settings - Fork 15
/
Cargo.toml
141 lines (107 loc) · 2.52 KB
/
Cargo.toml
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
[package]
name = "mathbench"
version = "0.4.2"
authors = ["Cameron Hart <[email protected]>"]
edition = "2018"
[features]
# defaults can be disabled for benchmarks but are required for tests
default = ["cgmath", "nalgebra", "ultraviolet"]
# fake glam target for wide comparisons
glam_f32x1 = []
ultraviolet_f32x4 = ["ultraviolet", "wide_mathbench"]
ultraviolet_f32x8 = ["ultraviolet", "wide_mathbench"]
ultraviolet_wide = ["ultraviolet_f32x4", "ultraviolet_f32x8"]
# nalgebra wide types require a nightly compiler
nalgebra_f32x4 = ["nalgebra", "simba"]
nalgebra_f32x8 = ["nalgebra", "simba"]
nalgebra_wide = ["nalgebra_f32x4", "nalgebra_f32x8"]
scalar = ["cgmath", "nalgebra", "ultraviolet", "euclid", "vek", "pathfinder_geometry", "static-math"]
# nalgebra_wide fails to build due to packed_simd errors
# wide = ["glam_f32x1", "ultraviolet_wide", "nalgebra_wide"]
wide = ["glam_f32x1", "ultraviolet_wide"]
all = ["scalar", "wide"]
# enable unstable features
unstable = []
[dependencies]
mint = "0.5.9"
rand = "0.8.5"
rand_pcg = "0.3.1"
[dependencies.glam]
version = "0.22.0"
features = ["mint", "rand"]
# a lot of random data generation uses glam, so can't be optional yet
# optional = true
[dependencies.nalgebra]
version = "0.32.1"
features = ["mint"]
optional = true
[dependencies.simba]
version = "0.8.0"
features = ["packed_simd"]
optional = true
[dependencies.cgmath]
version = "0.18.0"
features = ["mint"]
optional = true
[dependencies.euclid]
version = "0.22.7"
optional = true
[dependencies.vek]
version = "0.15.10"
features = ["mint"]
optional = true
[dependencies.pathfinder_geometry]
version = "0.5.1"
optional = true
[dependencies.static-math]
version = "0.2.3"
optional = true
[dependencies.ultraviolet]
version = "0.9.0"
features = ["mint"]
optional = true
[dependencies.wide_mathbench]
package = "wide"
version = "0.7.5"
optional = true
[dev-dependencies]
criterion = "0.4.0"
# [patch.crates-io]
# glam = { path = "../glam-rs" }
[lib]
bench = false
[[bench]]
name = "eulerbench"
harness = false
[[bench]]
name = "ray_sphere_intersect"
harness = false
[[bench]]
name = "rotation3"
harness = false
[[bench]]
name = "matrix2"
harness = false
[[bench]]
name = "matrix3"
harness = false
[[bench]]
name = "matrix4"
harness = false
[[bench]]
name = "transform2d"
harness = false
[[bench]]
name = "transform3d"
harness = false
[[bench]]
name = "transformations"
harness = false
[[bench]]
name = "vector3"
harness = false
[profile.bench]
# codegen-units = 1
# lto = true
[workspace]
members = ["tools/summarize", "tools/buildbench"]