# 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.85"
name = "ndarrow"
version = "0.0.4"
authors = [
    "George Lee Patterson <patterson.george@gmail.com>",
    "Niklaus Parcell <nik.parcell@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-copy bridge between Apache Arrow and ndarray"
homepage = "https://github.com/georgeleepatterson/ndarrow"
documentation = "https://docs.rs/ndarrow"
readme = "README.md"
keywords = [
    "arrow",
    "ndarray",
    "linear-algebra",
    "zero-copy",
    "interop",
]
categories = [
    "mathematics",
    "science",
    "data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/georgeleepatterson/ndarrow"

[lib]
name = "ndarrow"
path = "src/lib.rs"
bench = false

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.arrow]
version = "58"

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

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

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

[dependencies.ndarray]
version = "0.17"

[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.proptest]
version = "1"

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "warn"
large_futures = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

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

[lints.rust]
dead_code = "warn"
elided_lifetimes_in_paths = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_imports = "warn"
unused_variables = "warn"
