# 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 = "edgefirst-tensor"
version = "0.16.4"
authors = ["Au-Zone Technologies <support@au-zone.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-copy tensor memory management with DMA, shared memory, and heap backends"
homepage = "https://edgefirst.ai"
documentation = "https://docs.rs/edgefirst-tensor"
readme = "README.md"
keywords = [
    "tensor",
    "dma",
    "shared-memory",
    "zero-copy",
    "edge-ai",
]
categories = [
    "data-structures",
    "memory-management",
    "embedded",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/EdgeFirstAI/hal"
resolver = "3"

[features]
default = ["ndarray"]
ndarray = ["dep:ndarray"]

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

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

[dependencies.ctor]
version = "0.4.2"

[dependencies.env_logger]
version = "0.11.10"

[dependencies.half]
version = "2.7.1"
features = ["num-traits"]

[dependencies.log]
version = "0.4.29"

[dependencies.ndarray]
version = "0.16.1"
features = ["rayon"]
optional = true

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

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

[dependencies.uuid]
version = "1.22.0"
features = ["v4"]

[dev-dependencies.serde_json]
version = "1.0.149"

[target.'cfg(target_os = "linux")'.dependencies.dma-heap]
version = "0.4.1"

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2.183"

[target.'cfg(target_os = "linux")'.dev-dependencies.procfs]
version = "0.18.0"

[target."cfg(unix)".dependencies.nix]
version = "0.30.1"
features = [
    "fs",
    "ioctl",
    "mman",
]
