[package]
edition = "2024"
rust-version = "1.99"
name = "nuvec-gpu"
version = "0.0.1"
authors = ["hupe1980"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Metal backend for nuvec: device, command encoding, memory and kernel dispatch"
homepage = "https://github.com/hupe1980/nuvec"
readme = "README.md"
keywords = [
"mlx",
"array",
"metal",
"apple-silicon",
"machine-learning",
]
categories = [
"science",
"mathematics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hupe1980/nuvec"
[package.metadata.docs.rs]
targets = ["aarch64-apple-darwin"]
[lib]
name = "nuvec_gpu"
path = "src/lib.rs"
[[test]]
name = "allocator"
path = "tests/allocator.rs"
[[test]]
name = "runtime"
path = "tests/runtime.rs"
[dependencies.nuvec-kernels]
version = "0.0.1"
[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3"
features = [
"std",
"objc2",
"block2",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2]
version = "0.6"
[target.'cfg(target_os = "macos")'.dependencies.objc2-foundation]
version = "0.3"
features = [
"std",
"NSString",
"NSError",
"NSProcessInfo",
]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.objc2-metal]
version = "0.3"
features = [
"std",
"dispatch2",
"MTLAllocation",
"MTLBuffer",
"MTLCommandBuffer",
"MTLCommandEncoder",
"MTLCommandQueue",
"MTLComputeCommandEncoder",
"MTLComputePipeline",
"MTLDevice",
"MTLLibrary",
"MTLResource",
"MTLTypes",
]
default-features = false
[lints.clippy]
missing_safety_doc = "deny"
multiple_unsafe_ops_per_block = "deny"
undocumented_unsafe_blocks = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"