# 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-c"
version = "0.3.0"
authors = ["Martin Robinson <martinjrobins@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A diffsol wrapper featuring runtime scalar/matrix/solver types and a C API"
readme = "README.md"
license = "MIT"
repository = "https://github.com/martinjrobins/diffsol"

[features]
default = ["diffsl-external-dynamic"]
diffsl-cranelift = ["diffsol/diffsl-cranelift"]
diffsl-external-dynamic = [
    "external-dynamic",
    "diffsol/diffsl-external-dynamic",
]
diffsl-external-f32 = [
    "external",
    "diffsol/diffsl-external-f32",
    "diffsl/external_f32",
]
diffsl-external-f64 = [
    "external",
    "diffsol/diffsl-external-f64",
    "diffsl/external_f64",
]
diffsl-llvm = []
diffsl-llvm15 = [
    "diffsol/diffsl-llvm15",
    "diffsl-llvm",
]
diffsl-llvm16 = [
    "diffsol/diffsl-llvm16",
    "diffsl-llvm",
]
diffsl-llvm17 = [
    "diffsol/diffsl-llvm17",
    "diffsl-llvm",
]
diffsl-llvm18 = [
    "diffsol/diffsl-llvm18",
    "diffsl-llvm",
]
diffsl-llvm19 = [
    "diffsol/diffsl-llvm19",
    "diffsl-llvm",
]
diffsl-llvm20 = [
    "diffsol/diffsl-llvm20",
    "diffsl-llvm",
]
diffsl-llvm21 = [
    "diffsol/diffsl-llvm21",
    "diffsl-llvm",
]
external = []
external-dynamic = []
suitesparse = ["diffsol/suitesparse"]
wasm = ["getrandom/js"]

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

[dependencies.diffsl]
version = "0.11.6"
features = ["rayon"]

[dependencies.diffsol]
version = "0.12.2"
features = ["diffsl"]

[dependencies.dlmalloc]
version = "0.2"
features = ["global"]

[dependencies.nalgebra]
version = "0.34"
features = ["std"]

[dependencies.ndarray]
version = "0.17.2"

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

[dependencies.paste]
version = "1.0.15"

[dependencies.schemars]
version = "1.1.0"

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

[dependencies.serde_json]
version = "1.0"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.getrandom]
version = "0.2"
optional = true

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

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]
