[package]
edition = "2024"
rust-version = "1.88.0"
name = "zyx"
version = "0.16.0"
authors = ["zk4x"]
build = "build.rs"
include = [
"src/**",
"build.rs",
"tests/1_unary.rs",
"tests/2_binary.rs",
"tests/3_movement.rs",
"tests/4_reduce.rs",
"tests/5_misc.rs",
"tests/6_autograd.rs",
"tests/7_realize.rs",
"tests/8_indexing.rs",
"tests/9_graph.rs",
"tests/10_bf16.rs",
"tests/mnist.rs",
"Cargo.toml",
"README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zyx machine learning library"
homepage = "https://github.com/zk4x/zyx"
documentation = "https://docs.rs/zyx"
readme = "README.md"
keywords = [
"tensor",
"deep-learning",
"neural-network",
"autodiff",
]
categories = [
"computer-vision",
"science",
]
license = "LGPL-3.0-only"
repository = "https://github.com/zk4x/zyx"
[badges.maintenance]
status = "experimental"
[features]
debug_tensor_op = []
default = []
py = ["dep:pyo3"]
tenstorrent = ["dep:libc"]
time = []
wgpu = [
"dep:wgpu",
"dep:pollster",
]
[lib]
name = "zyx"
crate-type = ["lib"]
path = "src/lib.rs"
[[test]]
name = "10_bf16"
path = "tests/10_bf16.rs"
[[test]]
name = "1_unary"
path = "tests/1_unary.rs"
[[test]]
name = "2_binary"
path = "tests/2_binary.rs"
[[test]]
name = "3_movement"
path = "tests/3_movement.rs"
[[test]]
name = "4_reduce"
path = "tests/4_reduce.rs"
[[test]]
name = "5_misc"
path = "tests/5_misc.rs"
[[test]]
name = "6_autograd"
path = "tests/6_autograd.rs"
[[test]]
name = "7_realize"
path = "tests/7_realize.rs"
[[test]]
name = "8_indexing"
path = "tests/8_indexing.rs"
[[test]]
name = "9_graph"
path = "tests/9_graph.rs"
[[test]]
name = "mnist"
path = "tests/mnist.rs"
[dependencies.libc]
version = "0.2"
optional = true
default-features = false
[dependencies.libloading]
version = "0.9.0"
features = ["std"]
default-features = false
[dependencies.nanoserde]
version = "0.2.1"
features = [
"std",
"binary",
"json",
]
default-features = false
[dependencies.pollster]
version = "0.4.0"
optional = true
default-features = false
[dependencies.pyo3]
version = "0.29.0"
features = [
"extension-module",
"generate-import-lib",
]
optional = true
[dependencies.wgpu]
version = "29.0.1"
features = [
"vulkan",
"metal",
"dx12",
"spirv",
"gles",
]
optional = true
default-features = false
[dev-dependencies.matrixmultiply]
version = "0.3"
[profile.dev]
opt-level = 0
lto = false
codegen-units = 16
debug = 2
debug-assertions = true
panic = "unwind"
overflow-checks = true
incremental = true
strip = false
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
debug-assertions = false
panic = "abort"
overflow-checks = false
incremental = false
strip = true
[profile.test]
opt-level = 1
lto = false
codegen-units = 16
debug = 2
debug-assertions = true
overflow-checks = true
incremental = true
strip = false