# 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 = "burn-ndarray"
version = "0.21.0-pre.5"
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ndarray backend for the Burn framework"
documentation = "https://docs.rs/burn-ndarray"
readme = "README.md"
keywords = [
    "deep-learning",
    "machine-learning",
    "data",
]
categories = [
    "science",
    "no-std",
    "embedded",
    "wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tracel-ai/burn/tree/main/crates/burn-ndarray"
resolver = "2"

[package.metadata.docs.rs]
features = ["doc"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
blas-accelerate = [
    "blas-src/accelerate",
    "ndarray/blas",
]
blas-netlib = [
    "blas-src/netlib",
    "ndarray/blas",
]
blas-openblas = [
    "blas-src/openblas",
    "ndarray/blas",
    "openblas-src",
]
blas-openblas-system = [
    "blas-src/openblas",
    "ndarray/blas",
    "openblas-src/system",
]
default = [
    "std",
    "simd",
    "multi-threads",
]
doc = ["default"]
export_tests = []
multi-threads = [
    "rayon",
    "ndarray/rayon",
    "matrixmultiply/threading",
]
simd = [
    "macerator",
    "bytemuck",
    "seq-macro",
    "itertools",
]
std = [
    "burn-autodiff",
    "burn-std/std",
    "burn-backend/std",
    "burn-ir/std",
    "ndarray/std",
    "matrixmultiply/std",
    "rand/std",
    "rand/std_rng",
    "num-traits/std",
    "macerator/std",
]
tracing = [
    "burn-autodiff?/tracing",
    "burn-std/tracing",
    "burn-backend/tracing",
    "burn-ir/tracing",
]

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

[dependencies.atomic_float]
version = "1"

[dependencies.blas-src]
version = "0.14.0"
optional = true
default-features = false

[dependencies.burn-autodiff]
version = "=0.21.0-pre.5"
optional = true
default-features = false

[dependencies.burn-backend]
version = "=0.21.0-pre.5"
default-features = false

[dependencies.burn-ir]
version = "=0.21.0-pre.5"
default-features = false

[dependencies.burn-std]
version = "=0.21.0-pre.5"
default-features = false

[dependencies.bytemuck]
version = "1.25.0"
optional = true

[dependencies.const-random]
version = "0.1"

[dependencies.itertools]
version = "0.14"
optional = true

[dependencies.libm]
version = "0.2.15"

[dependencies.macerator]
version = "0.3.0"
optional = true

[dependencies.matrixmultiply]
version = "0.3.10"
default-features = false

[dependencies.ndarray]
version = "0.17.2"
default-features = false

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

[dependencies.openblas-src]
version = "0.10.15"
optional = true

[dependencies.paste]
version = "1"

[dependencies.rand]
version = "0.10.1"
features = ["std_rng"]
default-features = false

[dependencies.rayon]
version = "1.10.0"
optional = true

[dependencies.seq-macro]
version = "0.3"
optional = true

[dev-dependencies.bytes]
version = "1.11.1"
default-features = false

[target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic]
version = "1.13.1"

[target.'cfg(not(target_has_atomic = "ptr"))'.dependencies.portable-atomic-util]
version = "0.2.6"
features = ["alloc"]

[lints.clippy]

[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_html_tags = "deny"
