mlx-c-rust 0.32.4-alpha.2

A complete, low-level, policy-free Rust bridge to the MLX-C API of Apple's MLX for Apple silicon, tracking MLX releases. Version = the verified MLX release (0.32.4; carries MLX-C 0.7 forward).
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.101"
name = "mlx-c-rust"
version = "0.32.4-alpha.2"
build = "build.rs"
exclude = [
    "xtask",
    ".github",
    ".cargo",
    "rust-toolchain.toml",
    "vendor/mlx-c/README.md",
    "vendor/mlx-c/docs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A complete, low-level, policy-free Rust bridge to the MLX-C API of Apple's MLX for Apple silicon, tracking MLX releases. Version = the verified MLX release (0.32.4; carries MLX-C 0.7 forward)."
documentation = "https://docs.rs/mlx-c-rust"
readme = "README.md"
keywords = [
    "mlx",
    "apple-silicon",
    "machine-learning",
    "bindings",
    "gpu",
]
categories = [
    "api-bindings",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/aosama/mlx-c-rust"

[package.metadata.docs.rs]
targets = ["aarch64-apple-darwin"]

[features]
default = ["link"]
link = []

[lib]
name = "mlx_c_rust"
path = "src/lib.rs"

[[example]]
name = "metal_probe"
path = "examples/metal_probe.rs"

[[test]]
name = "closure_error_channel_tests"
path = "tests/closure_error_channel_tests.rs"

[[test]]
name = "gpu_smoke_tests"
path = "tests/gpu_smoke_tests.rs"

[[test]]
name = "native_build_digest_tests"
path = "tests/native_build_digest_tests.rs"

[[test]]
name = "native_build_forward_edit_tests"
path = "tests/native_build_forward_edit_tests.rs"

[dependencies.thiserror]
version = "2"

[dev-dependencies.sha2]
version = "0.11"

[build-dependencies.bindgen]
version = "0.73"

[build-dependencies.pkg-config]
version = "0.3"

[build-dependencies.sha2]
version = "0.11"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "allow"
unused_must_use = "deny"