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.
rlx-mlx-sys
Vendored MLX C++ (git submodule at
vendor/mlx) plus the rlx_mlx_shim C ABI built via CMake + cc in
build.rs. Consumed by rlx-mlx; not meant for direct use
outside RLX unless you accept the shim API stability policy (none yet).
After clone:
Linux compile times
| Backend | First build (approx.) | Opt-in |
|---|---|---|
| CPU only (default) | ~5–10 min | always |
| CUDA (nvcc kernels) | ~45–90 min | RLX_MLX_CUDA=1 or --features cuda |
CPU-only is the default even when CUDA/cuDNN are installed. Auto-building
the CUDA backend added an hour+ to every clean cargo build on WSL rigs.
Faster Linux builds
-
Install system LAPACK headers (avoids bootstrapping OpenBLAS into
OUT_DIR): -
Use debug cargo profile for iteration —
build.rsmapscargo build→ CMakeDebug(much faster nvcc when CUDA is enabled). -
Install ccache (MLX enables it automatically when found):
-
Pin parallel nvcc jobs if WSL OOMs or thrashes:
RLX_MLX_JOBS=4 -
Pin GPU arch when cross-compiling or CI has no GPU:
RLX_MLX_CUDA_ARCH=89 RLX_MLX_CUDA=1 -
Runtime device selection (after build):
RLX_MLX_DEVICE=cpu|gpu.
Full guide: docs/benchmarks/mlx-linux.md.
macOS / Windows
Requires macOS + Xcode (xcrun metal) for Metal kernels. CPU MLX builds on
Linux and Windows; on Linux, lapacke.h must be present (liblapacke-dev) or
build.rs bootstraps OpenBLAS into OUT_DIR.
License
GPL-3.0-only.