# 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"
rust-version = "1.92"
name = "nabled"
version = "0.0.10"
authors = [
    "Niklaus Parcell <nik.parcell@gmail.com>",
    "George Lee Patterson <patterson.george@gmail.com>",
]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A linear algebra library written in Rust with an ndarray-first architecture."
homepage = "https://github.com/MontOpsInc/nabled"
documentation = "https://docs.rs/nabled"
readme = "README.md"
keywords = [
    "linear-algebra",
    "ndarray",
    "decomposition",
    "machine-learning",
    "numerics",
]
categories = [
    "mathematics",
    "science",
    "algorithms",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/MontOpsInc/nabled"

[features]
accelerator-rayon = ["nabled-linalg/accelerator-rayon"]
accelerator-wgpu = ["nabled-linalg/accelerator-wgpu"]
arrow = [
    "linalg",
    "ml",
    "dep:arrow-array",
    "dep:arrow-buffer",
    "dep:arrow-schema",
    "dep:ndarrow",
]
blas = [
    "nabled-linalg/blas",
    "nabled-ml?/blas",
    "nabled-kinematics?/blas",
    "nabled-model?/blas",
    "nabled-dynamics?/blas",
    "nabled-control?/blas",
    "nabled-sensor?/blas",
    "nabled-sim?/blas",
]
control = ["dep:nabled-control"]
default = ["linalg"]
dynamics = [
    "dep:nabled-dynamics",
    "kinematics",
    "model",
]
geometry = ["linalg"]
kinematics = [
    "dep:nabled-kinematics",
    "model",
]
lapack-provider = [
    "nabled-linalg/lapack-provider",
    "nabled-ml?/lapack-provider",
    "nabled-kinematics?/lapack-provider",
    "nabled-model?/lapack-provider",
    "nabled-dynamics?/lapack-provider",
    "nabled-control?/lapack-provider",
    "nabled-sensor?/lapack-provider",
    "nabled-sim?/lapack-provider",
]
linalg = []
magma-system = [
    "lapack-provider",
    "nabled-linalg/magma-system",
    "nabled-ml?/magma-system",
    "nabled-kinematics?/magma-system",
    "nabled-model?/magma-system",
    "nabled-dynamics?/magma-system",
    "nabled-control?/magma-system",
    "nabled-sensor?/magma-system",
    "nabled-sim?/magma-system",
]
ml = ["dep:nabled-ml"]
model = ["dep:nabled-model"]
netlib-static = [
    "blas",
    "nabled-linalg/netlib-static",
    "nabled-ml?/netlib-static",
    "nabled-kinematics?/netlib-static",
    "nabled-model?/netlib-static",
    "nabled-dynamics?/netlib-static",
    "nabled-control?/netlib-static",
    "nabled-sensor?/netlib-static",
    "nabled-sim?/netlib-static",
]
netlib-system = [
    "blas",
    "nabled-linalg/netlib-system",
    "nabled-ml?/netlib-system",
    "nabled-kinematics?/netlib-system",
    "nabled-model?/netlib-system",
    "nabled-dynamics?/netlib-system",
    "nabled-control?/netlib-system",
    "nabled-sensor?/netlib-system",
    "nabled-sim?/netlib-system",
]
openblas-static = [
    "blas",
    "nabled-linalg/openblas-static",
    "nabled-ml?/openblas-static",
    "nabled-kinematics?/openblas-static",
    "nabled-model?/openblas-static",
    "nabled-dynamics?/openblas-static",
    "nabled-control?/openblas-static",
    "nabled-sensor?/openblas-static",
    "nabled-sim?/openblas-static",
]
openblas-system = [
    "blas",
    "nabled-linalg/openblas-system",
    "nabled-ml?/openblas-system",
    "nabled-kinematics?/openblas-system",
    "nabled-model?/openblas-system",
    "nabled-dynamics?/openblas-system",
    "nabled-control?/openblas-system",
    "nabled-sensor?/openblas-system",
    "nabled-sim?/openblas-system",
]
physical-ai = [
    "linalg",
    "geometry",
    "signal",
    "ml",
    "model",
    "kinematics",
    "dynamics",
    "control",
    "sensor",
    "sim",
]
sensor = ["dep:nabled-sensor"]
signal = [
    "linalg",
    "nabled-linalg/signal",
    "nabled-sim?/signal",
]
sim = [
    "dep:nabled-sim",
    "kinematics",
    "dynamics",
    "control",
    "sensor",
    "ml",
    "model",
    "geometry",
]
test-utils = []

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

[[bin]]
name = "backend_capability_report"
path = "src/bin/backend_capability_report.rs"

[[bin]]
name = "benchmark_history"
path = "src/bin/benchmark_history.rs"

[[bin]]
name = "benchmark_report"
path = "src/bin/benchmark_report.rs"

[[example]]
name = "arrow_extension_types"
path = "examples/arrow_extension_types.rs"
required-features = ["arrow"]

[[example]]
name = "canonical_hilbert_conditioning"
path = "examples/canonical_hilbert_conditioning.rs"

[[example]]
name = "cholesky_example"
path = "examples/cholesky_example.rs"

[[example]]
name = "complex_jacobian_example"
path = "examples/complex_jacobian_example.rs"
required-features = ["ml"]

[[example]]
name = "embedding_rerank_example"
path = "examples/embedding_rerank_example.rs"
required-features = ["ml"]

[[example]]
name = "jacobian_example"
path = "examples/jacobian_example.rs"
required-features = ["ml"]

[[example]]
name = "lu_example"
path = "examples/lu_example.rs"

[[example]]
name = "matrix_functions_example"
path = "examples/matrix_functions_example.rs"

[[example]]
name = "pca_example"
path = "examples/pca_example.rs"
required-features = ["ml"]

[[example]]
name = "physical_ai_ekf_fusion"
path = "examples/physical_ai_ekf_fusion.rs"
required-features = ["physical-ai"]

[[example]]
name = "physical_ai_lqr_observer"
path = "examples/physical_ai_lqr_observer.rs"
required-features = ["physical-ai"]

[[example]]
name = "physical_ai_planar2r_sim"
path = "examples/physical_ai_planar2r_sim.rs"
required-features = ["physical-ai"]

[[example]]
name = "physical_ai_trajectory_ik"
path = "examples/physical_ai_trajectory_ik.rs"
required-features = ["physical-ai"]

[[example]]
name = "qr_example"
path = "examples/qr_example.rs"

[[example]]
name = "regression_example"
path = "examples/regression_example.rs"
required-features = ["ml"]

[[example]]
name = "sparse_solve_reuse_example"
path = "examples/sparse_solve_reuse_example.rs"

[[example]]
name = "svd_example"
path = "examples/svd_example.rs"

[[example]]
name = "sylvester_lyapunov_textbook"
path = "examples/sylvester_lyapunov_textbook.rs"

[[test]]
name = "arrow_interop"
path = "tests/arrow_interop.rs"

[[test]]
name = "backend_capability_matrix"
path = "tests/backend_capability_matrix.rs"

[[test]]
name = "gpu_burn_profile"
path = "tests/gpu_burn_profile.rs"

[[test]]
name = "gpu_perf_probe"
path = "tests/gpu_perf_probe.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "physical_ai_integration"
path = "tests/physical_ai_integration.rs"

[[bench]]
name = "accelerator_benchmarks"
path = "benches/accelerator_benchmarks.rs"
harness = false
required-features = ["linalg"]

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

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

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

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

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

[[bench]]
name = "optimization_benchmarks"
path = "benches/optimization_benchmarks.rs"
harness = false
required-features = ["ml"]

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

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

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

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

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

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

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

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

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

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

[dependencies.arrow-array]
version = "58"
optional = true

[dependencies.arrow-buffer]
version = "58"
optional = true

[dependencies.arrow-schema]
version = "58"
features = ["canonical_extension_types"]
optional = true

[dependencies.nabled-control]
version = "=0.0.10"
optional = true

[dependencies.nabled-core]
version = "=0.0.10"

[dependencies.nabled-dynamics]
version = "=0.0.10"
optional = true

[dependencies.nabled-kinematics]
version = "=0.0.10"
optional = true

[dependencies.nabled-linalg]
version = "=0.0.10"

[dependencies.nabled-ml]
version = "=0.0.10"
optional = true

[dependencies.nabled-model]
version = "=0.0.10"
optional = true

[dependencies.nabled-sensor]
version = "=0.0.10"
optional = true

[dependencies.nabled-sim]
version = "=0.0.10"
optional = true

[dependencies.ndarray]
version = "0.17"
features = ["serde"]

[dependencies.ndarrow]
version = "0.0.4"
optional = true

[dependencies.num-complex]
version = "0.4"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dev-dependencies.approx]
version = "0.5"

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

[dev-dependencies.faer]
version = "0.24"
features = [
    "std",
    "linalg",
]
default-features = false

[dev-dependencies.ndarray]
version = "0.17"
features = ["serde"]

[dev-dependencies.num-complex]
version = "0.4"

[dev-dependencies.rand]
version = "0.10"

[lints.clippy]
clone_on_ref_ptr = "warn"
large_futures = "warn"
must_use_candidate = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
elided_lifetimes_in_paths = "deny"
explicit_outlives_requirements = "warn"
let_underscore_drop = "warn"
missing_copy_implementations = "warn"
redundant_lifetimes = "warn"
rust_2024_incompatible_pat = "warn"
single_use_lifetimes = "warn"
trivial_numeric_casts = "warn"
unit_bindings = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_import_braces = "warn"
unused_imports = "deny"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
unused_results = "warn"
variant_size_differences = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage_nightly)"]
