docs.rs failed to build mlx-sys-burn-0.2.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
mlx-sys-burn
Low-level Rust FFI bindings to Apple's mlx-c API, generated using bindgen.
This is a fork of mlx-sys published to enable burn-mlx on crates.io.
Overview
This crate provides:
- Raw FFI bindings to mlx-c (the C API for MLX)
- Build script that compiles mlx-c from source
- Automatic linking to Metal and Accelerate frameworks
Installation
[]
= "0.2.1"
Feature Flags
| Feature | Default | Description |
|---|---|---|
metal |
Yes | Enable Metal GPU support |
accelerate |
Yes | Enable Accelerate framework for optimized CPU operations |
Usage
This crate provides raw FFI bindings. You typically don't use it directly.
For a safe, idiomatic Rust interface, use mlx-rs-burn:
[]
= "0.25.4"
Build Requirements
- macOS 13.3+ (Ventura or later)
- Apple Silicon (M1/M2/M3/M4)
- Xcode Command Line Tools
- CMake
- Rust 1.82+
The build script will automatically:
- Clone and build mlx-c
- Generate Rust bindings using bindgen
- Link against the compiled library
Related Crates
| Crate | Description |
|---|---|
| mlx-rs-burn | Safe Rust bindings (use this!) |
| mlx-macros-burn | Procedural macros |
| mlx-internal-macros-burn | Internal macros |
| burn-mlx | MLX backend for Burn |
Upstream
Fork of mlx-sys from oxideai/mlx-rs.
License
MIT OR Apache-2.0