-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
61 lines (50 loc) · 1.4 KB
/
Cargo.toml
File metadata and controls
61 lines (50 loc) · 1.4 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
[package]
name = "cfsem"
version = "5.1.0"
edition = "2024"
authors = ["Commonwealth Fusion Systems <jlogan@cfs.energy>"]
license = "MIT"
repository = "https://github.com/cfs-energy/cfsem-py"
homepage = "https://github.com/cfs-energy/cfsem-py"
description = "Quasi-steady electromagnetics including filamentized approximations, Biot-Savart, and Grad-Shafranov."
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "cfsem"
crate-type = ["cdylib", "rlib"]
[dependencies]
pyo3 = { version="0.28.2", features=["extension-module"], optional=true }
numpy = { version="0.28.0", optional=true } # This must match pyo3 version!
nalgebra = "^0.34.1"
rayon = "^1.11.0"
libm = "^0.2"
num-traits = { version = "0.2.19", features = ["libm"] }
branches = "0.4.4"
[dev-dependencies]
criterion = "0.8.1"
itertools = "0.14.0"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
overflow-checks = true
[profile.dev]
# Nearly full optimizations for debug builds to test for perf regressions
# when using maturin develop
opt-level = 3
#lto = true
codegen-units = 16
[features]
default = []
python = ["pyo3", "numpy"]
[[bench]]
name = "linear_filament"
harness = false
[[bench]]
name = "circular_filament"
harness = false
[[bench]]
name = "point_source"
harness = false
[package.metadata.docs.rs]
rustdoc-args = [ "--html-in-header", "katex-header.html" ]