-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
217 lines (204 loc) · 5.08 KB
/
Cargo.toml
File metadata and controls
217 lines (204 loc) · 5.08 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
[package]
name = "rssn"
version = "0.2.9"
edition = "2024"
rust-version = "1.91.0"
authors = ["The rssn developers"]
description = "A comprehensive scientific computing library for Rust, aiming for feature parity with NumPy and SymPy."
license = "Apache-2.0"
repository = "https://github.com/Apich-Organization/rssn"
homepage = "https://github.com/Apich-Organization/rssn"
readme = "README.md"
keywords = [
"scientific-computing",
"symbolic-math",
"numerical-analysis",
"physics-simulation",
"optimization",
]
categories = [
"science",
"mathematics",
"data-structures",
"simulation",
"algorithms",
]
exclude = [
"examples/*",
"tests/*",
"benches/*",
"doc/*",
".gitea/*",
".github/*",
".vscode/*",
".idea/*",
"*.sh",
"*.bat",
"scripts/*",
"docs/*",
"certificates/*",
"rssn.h",
"rssn.hpp",
]
[lib]
crate-type = ["cdylib", "rlib", "staticlib"]
[profile.dev]
lto = false
opt-level = 0
debug = true
incremental = true
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
opt-level = 3
strip = true
debug = false
debug-assertions = false
overflow-checks = false
incremental = true
[dependencies]
uuid = { version = "1.19", features = ["v4"] }
libc = { version = "0.2", optional = true }
# Not upgrading because of argmin
ndarray = { version = "0.16", features = ["serde"] }
statrs = "0.18"
argmin-math = { version = "0.5", features = [
"ndarray_latest-nolinalg",
"nalgebra_latest",
] }
argmin = { version = "0.11", features = ["serde", "serde1"] }
nalgebra = { version = "0.34", features = ["serde-serialize"] }
quadrature = "0.1"
interp = "2.1"
itertools = "0.14"
rustfft = "6.4"
sprs-rssn = "0.11"
uom = { version = "0.38", features = [
"use_serde",
"num-bigint",
"std",
"usize",
"si",
] }
bigdecimal = { version = "0.4", features = ["serde"] }
special = "0.13"
errorfunctions = "0.2"
# Not upgrading because of argmin requires ndarray 0.16
ndarray-npy = { version = "0.9", optional = true }
rayon = "1.11"
bincode-next = { version = "2.1", features = ["serde"] }
# NOTE: Both rand 0.8.5 and 0.9.2 are required.
# `rand` 0.8.5 is used for compatibility with existing dependencies and safe upgrade path.
# `rand_v09` (rand 0.9.2) is needed by INSERT DEPENDENCY.
rand_v09 = { package = "rand", version = "0.9" }
# `rand_v10` (rand 0.10.0) is needed by faer.
rand_v10 = { package = "rand", version = "0.10" }
rand = "0.8"
ordered-float = { version = "5.1", features = ["serde"] }
num-complex = { version = "0.4", features = ["serde"] }
num-bigint = { version = "0.4", features = ["serde", "rand"] }
num-rational = { version = "0.4", features = ["serde"] }
num-traits = "0.2"
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
libloading = { version = "0.9", optional = true }
dashmap = "6"
once_cell = "1.21"
lazy_static = "1.5"
# Not updating nom for compatibility issues.
nom = { version = "8.0", optional = true }
plotters = { version = "0.3", features = [
"image",
"chrono",
"ttf",
"font-kit",
"evcxr",
], optional = true }
ahash = { version = "0.8", features = ["serde"] }
abi_stable = { version = "0.11", optional = true }
instability = "0.3"
faer = "0.24"
cranelift-frontend = { version = "0.129", optional = true }
cranelift-native = { version = "0.129", optional = true }
cranelift-codegen = { version = "0.129", optional = true }
cranelift-module = { version = "0.129", optional = true }
cranelift-jit = { version = "0.129", optional = true }
pulp = { version = "0.22", features = [
"macro",
"x86-v4",
"nightly",
], optional = true }
simba = { version = "0.9", features = [
"libm",
"cordic",
"decimal",
"rand",
], optional = true }
[build-dependencies]
cbindgen = "0.29"
vergen = { version = "9", features = [
"build",
"cargo",
"cargo_metadata",
"emit_and_set",
"regex",
"rustc",
"rustc_version",
"si",
"sysinfo",
"time",
] }
vergen-gitcl = { version = "9", features = [
"build",
"cargo",
"emit_and_set",
"rustc",
"si",
] }
[features]
default = []
compute = []
input = ["dep:nom"]
output = ["dep:plotters", "dep:ndarray-npy"]
physics = []
plugins = ["dep:libloading", "dep:abi_stable"]
jit = [
"dep:cranelift-codegen",
"dep:cranelift-frontend",
"dep:cranelift-jit",
"dep:cranelift-module",
"dep:cranelift-native",
]
ffi_api = []
# Will be available at v0.3.0 release.
ffi_blinding = ["dep:libc"]
# Experimental features
experimental = ["ffi_blinding", "jit", "dep:pulp", "dep:simba"]
nightly = ["dep:pulp"]
full = [
"default",
"output",
"physics",
"plugins",
"compute",
"ffi_blinding",
"jit",
"input",
"experimental",
]
[dev-dependencies]
criterion = { version = "0.8", features = ["html_reports"] }
proptest = "1.9"
assert_approx_eq = "1.1"
[[bench]]
name = "rssn_benches"
harness = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--html-in-header", "doc-header.html"]
[lints.clippy]
empty-line-after-doc-comments = "allow"
[lints.rust]
# Allowed here because of kani.
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(has_foo)'] }