[[bench]]
harness = false
name = "tensor"
path = "benches/tensor/main.rs"
[dependencies.bytemuck]
default-features = false
version = "~1.24"
[dependencies.futures-channel]
default-features = false
features = ["alloc"]
version = "~0.3"
[dependencies.spin]
default-features = false
features = ["rwlock", "spin_mutex"]
version = "~0.10"
[dependencies.thiserror]
default-features = false
version = "~2.0"
[dependencies.wgpu]
default-features = false
features = ["dx12", "gles", "metal", "naga-ir", "vulkan", "webgpu", "wgsl"]
version = "~28.0"
[dev-dependencies.approx]
default-features = false
version = "~0.5"
[dev-dependencies.criterion]
default-features = false
version = "~0.8"
[dev-dependencies.rand]
default-features = false
features = ["std_rng"]
version = "~0.9"
[[example]]
name = "linreg"
path = "examples/linreg.rs"
[[example]]
name = "xor"
path = "examples/xor.rs"
[lib]
name = "xnn"
path = "src/lib.rs"
[lints.clippy]
cast_possible_truncation = "deny"
many_single_char_names = "allow"
too_many_arguments = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"
[package]
authors = ["stdfox <stdfox@protonmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "A lightweight ML framework with GPU-first architecture"
documentation = "https://docs.rs/xnn"
edition = "2024"
exclude = [".editorconfig", ".gitignore"]
license = "MIT"
name = "xnn"
readme = "README.md"
repository = "https://github.com/stdfox/xnn"
version = "0.2.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pollster]
default-features = false
version = "~0.4"
[[test]]
name = "device"
path = "tests/device/main.rs"
[[test]]
name = "tensor"
path = "tests/tensor/main.rs"