# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "cfsem"
version = "11.2.0"
authors = ["Commonwealth Fusion Systems <jlogan@cfs.energy>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Quasi-steady electromagnetics including filamentized approximations, Biot-Savart, and Grad-Shafranov."
homepage = "https://github.com/cfs-energy/cfsem-py"
readme = "README.md"
license = "MIT"
repository = "https://github.com/cfs-energy/cfsem-py"

[package.metadata.docs.rs]
rustdoc-args = [
    "--html-in-header",
    "katex-header.html",
]

[features]
default = []
python = [
    "pyo3",
    "numpy",
]

[lib]
name = "cfsem"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bench]]
name = "circular_filament"
path = "benches/circular_filament.rs"
harness = false

[[bench]]
name = "linear_filament"
path = "benches/linear_filament.rs"
harness = false

[[bench]]
name = "point_source"
path = "benches/point_source.rs"
harness = false

[dependencies.faer]
version = "0.24.4"

[dependencies.faer-traits]
version = "0.24.0"

[dependencies.libm]
version = "^0.2"

[dependencies.nalgebra]
version = "^0.34.2"

[dependencies.num-traits]
version = "0.2.19"
features = ["libm"]

[dependencies.num_cpus]
version = "^1.17.0"

[dependencies.numpy]
version = "0.29.0"
optional = true

[dependencies.pyo3]
version = "0.29.0"
features = [
    "extension-module",
    "abi3-py310",
    "generate-import-lib",
]
optional = true

[dependencies.rayon]
version = "^1.12.0"

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.itertools]
version = "0.15.0"

[lints.rust]
unsafe_code = "forbid"

[profile.dev]
opt-level = 3
codegen-units = 16

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
overflow-checks = true
