nuvec-gpu 0.2.0

Metal backend for nuvec: device, command encoding, memory and kernel dispatch
Documentation
# 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 = "2024"
rust-version = "1.99"
name = "nuvec-gpu"
version = "0.2.0"
authors = ["hupe1980"]
build = false
exclude = ["tests/fixtures"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Metal backend for nuvec: device, command encoding, memory and kernel dispatch"
homepage = "https://hupe1980.github.io/nuvec"
readme = "README.md"
keywords = [
    "mlx",
    "metal",
    "apple-silicon",
    "machine-learning",
    "llm",
]
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.2.0"

[target.'cfg(target_os = "macos")'.dependencies.block2]
version = "0.6"

[target.'cfg(target_os = "macos")'.dependencies.dispatch2]
version = "0.3"
features = [
    "std",
    "objc2",
    "block2",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.libc]
version = "0.2"

[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",
    "block2",
    "dispatch2",
    "MTLAllocation",
    "MTLBuffer",
    "MTLCommandBuffer",
    "MTLCommandEncoder",
    "MTLCommandQueue",
    "MTLComputeCommandEncoder",
    "MTLComputePipeline",
    "MTLDataType",
    "MTLDevice",
    "MTLFence",
    "MTLFunctionConstantValues",
    "MTLLibrary",
    "MTLResidencySet",
    "MTLResource",
    "MTLTypes",
    "objc2-core-foundation",
]
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"