diffsol 0.10.3

A library for solving ordinary differential equations (ODEs) in Rust.
Documentation
# 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 = "2021"
name = "diffsol"
version = "0.10.3"
authors = ["Martin Robinson <martinjrobins@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for solving ordinary differential equations (ODEs) in Rust."
readme = "README.md"
license = "MIT"
repository = "https://github.com/martinjrobins/diffsol"

[package.metadata.docs.rs]
features = [
    "diffsl-llvm15",
    "diffsl-cranelift",
]

[features]
cuda = ["dep:cudarc"]
default = [
    "nalgebra",
    "faer",
]
diffsl = []
diffsl-cranelift = [
    "diffsl/cranelift",
    "diffsl",
]
diffsl-llvm = []
diffsl-llvm15 = [
    "diffsl/llvm15-0",
    "diffsl",
    "diffsl-llvm",
]
diffsl-llvm16 = [
    "diffsl/llvm16-0",
    "diffsl",
    "diffsl-llvm",
]
diffsl-llvm17 = [
    "diffsl/llvm17-0",
    "diffsl",
    "diffsl-llvm",
]
diffsl-llvm18 = [
    "diffsl/llvm18-1",
    "diffsl",
    "diffsl-llvm",
]
diffsl-llvm19 = [
    "diffsl/llvm19-1",
    "diffsl",
    "diffsl-llvm",
]
diffsl-llvm20 = [
    "diffsl/llvm20-1",
    "diffsl",
    "diffsl-llvm",
]
diffsl-llvm21 = [
    "diffsl/llvm21-1",
    "diffsl",
    "diffsl-llvm",
]
faer = []
nalgebra = []
suitesparse = ["suitesparse_sys"]
sundials = [
    "suitesparse_sys",
    "bindgen",
    "cc",
]

[lib]
name = "diffsol"
path = "src/lib.rs"

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

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

[[bench]]
name = "sundials_benches"
path = "benches/sundials_benches.rs"

[dependencies.cudarc]
version = "0.16.4"
features = [
    "cuda-version-from-build-system",
    "cusolver",
    "dynamic-linking",
    "std",
    "cublas",
    "cublaslt",
    "curand",
    "driver",
    "runtime",
    "nvrtc",
]
optional = true
default-features = false

[dependencies.diffsl]
version = "0.9.0"
features = ["rayon"]
optional = true
package = "diffsl"

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

[dependencies.log]
version = "0.4.29"

[dependencies.nalgebra]
version = "0.34.1"

[dependencies.nalgebra-sparse]
version = "0.11.0"
features = ["io"]

[dependencies.num-traits]
version = "0.2.17"

[dependencies.petgraph]
version = "0.8.3"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.suitesparse_sys]
version = "0.1.3"
optional = true

[dependencies.thiserror]
version = "2.0.17"

[dev-dependencies.colog]
version = "1.4.0"

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

[dev-dependencies.insta]
version = "1.43"
features = ["yaml"]

[dev-dependencies.paste]
version = "1.0.15"

[dev-dependencies.skeptic]
version = "0.13.7"

[build-dependencies.bindgen]
version = "0.72.1"
optional = true

[build-dependencies.cc]
version = "1.2"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.faer]
version = "0.23.2"
features = [
    "std",
    "sparse-linalg",
    "rand",
    "npy",
    "rayon",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.faer]
version = "0.23.2"
features = [
    "std",
    "sparse-linalg",
    "rand",
    "npy",
]
default-features = false