[package]
name = "numpy"
version = "0.27.1"
authors = [
    "The rust-numpy Project Developers",
    "PyO3 Project and Contributors <https://github.com/PyO3>",
]
description = "PyO3-based Rust bindings of the NumPy C-API"
documentation = "https://docs.rs/numpy"
edition = "2021"
rust-version = "1.74"
repository = "https://github.com/PyO3/rust-numpy"
categories = ["api-bindings", "development-tools::ffi", "science"]
keywords = ["python", "numpy", "ffi", "pyo3"]
license = "BSD-2-Clause"
exclude = [
    ".github/*",
    ".gitignore",
    "codecov.yml",
    "x.py",
]

[dependencies]
half = { version = "2.0", default-features = false, optional = true }
libc = "0.2"
nalgebra = { version = ">=0.30, <0.35", default-features = false, optional = true }
num-complex = ">= 0.2, < 0.5"
num-integer = "0.1"
num-traits = "0.2"
ndarray = ">= 0.15, <=0.17"
pyo3 = { version = "0.27.0", default-features = false, features = ["macros"] }
rustc-hash = "2.0"

[dev-dependencies]
pyo3 = { version = "0.27.0", default-features = false, features = ["auto-initialize"]}
nalgebra = { version = ">=0.30, <0.35", default-features = false, features = ["std"] }

[build-dependencies]
pyo3-build-config = { version = "0.27", features = ["resolve-config"]}

[package.metadata.docs.rs]
all-features = true

[lints.rust]
# We usually want to make the GIL lifetime explicit.
elided-lifetimes-in-paths = "deny"

[lints.clippy]
needless-lifetimes = "allow"
