[package]
edition = "2021"
rust-version = "1.94.0"
name = "edgefirst-tensor"
version = "0.32.1"
authors = ["Au-Zone Technologies <support@au-zone.com>"]
build = "build.rs"
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",
"static",
]
dynamic = ["dep:edgefirst-tensor-ffi"]
dynamic-test-link = []
ndarray = ["dep:ndarray"]
static = []
tracing = [
"dep:tracing-chrome",
"dep:tracing-subscriber",
]
[lib]
name = "edgefirst_tensor"
path = "src/lib.rs"
[[test]]
name = "cuda_require_policy"
path = "tests/cuda_require_policy.rs"
[[test]]
name = "d3d11_tensor"
path = "tests/d3d11_tensor.rs"
[[test]]
name = "dynamic_primitives"
path = "tests/dynamic_primitives.rs"
[[test]]
name = "identity"
path = "tests/identity.rs"
[[test]]
name = "logical_shape"
path = "tests/logical_shape.rs"
[[test]]
name = "map_access"
path = "tests/map_access.rs"
[[test]]
name = "no_global_state"
path = "tests/no_global_state.rs"
[[test]]
name = "pin"
path = "tests/pin.rs"
[[test]]
name = "protocol"
path = "tests/protocol.rs"
[[test]]
name = "protocol_roundtrip"
path = "tests/protocol_roundtrip.rs"
[[test]]
name = "scenarios"
path = "tests/scenarios.rs"
[[test]]
name = "vocabulary"
path = "tests/vocabulary.rs"
[[bench]]
name = "tensor_benchmark"
path = "benches/tensor_benchmark.rs"
harness = false
[dependencies.edgefirst-tensor-abi]
version = "0.32.1"
[dependencies.edgefirst-tensor-ffi]
version = "0.32.1"
optional = true
[dependencies.half]
version = "2.7.1"
features = ["num-traits"]
[dependencies.libc]
version = "0.2.186"
[dependencies.libloading]
version = "0.9"
[dependencies.log]
version = "0.4.33"
[dependencies.ndarray]
version = "0.17.2"
features = ["rayon"]
optional = true
[dependencies.num-traits]
version = "0.2.19"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-chrome]
version = "0.7"
optional = true
[dependencies.tracing-subscriber]
version = "0.3"
features = ["registry"]
optional = true
[dependencies.uuid]
version = "1.23.3"
features = ["v4"]
[dev-dependencies.ctor]
version = "1.0.7"
[dev-dependencies.edgefirst-tensor-ffi]
version = "0.32.1"
[dev-dependencies.env_logger]
version = "0.11.10"
features = [
"auto-color",
"humantime",
]
default-features = false
[dev-dependencies.serde_json]
version = "1.0.150"
[target.'cfg(all(target_os = "linux", not(miri)))'.dependencies.dma-heap]
version = "0.4.1"
[target.'cfg(target_os = "linux")'.dev-dependencies.procfs]
version = "0.18.0"
[target."cfg(unix)".dependencies.nix]
version = "0.31.3"
features = [
"fs",
"ioctl",
"mman",
]
[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
"Win32_Foundation",
"Win32_Security",
"Win32_System_LibraryLoader",
"Win32_System_Memory",
"Win32_System_Threading",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D11",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
]
[lints.rust]
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage,coverage_nightly)"]