#cubecl #mlir #llvm #api-bindings #bindings

macro tracel-mlir-rs-macros

Rust bindings for MLIR libraries used by CubeCL

7 releases

Uses new Rust 2024

new 20.1.4-7 Jan 30, 2026
20.1.4-6 Jan 13, 2026
20.1.4-5 Sep 25, 2025

#22 in #mlir

Download history 717/week @ 2025-10-13 698/week @ 2025-10-20 1740/week @ 2025-10-27 2121/week @ 2025-11-03 2867/week @ 2025-11-10 2465/week @ 2025-11-17 2763/week @ 2025-11-24 2794/week @ 2025-12-01 3424/week @ 2025-12-08 4046/week @ 2025-12-15 2867/week @ 2025-12-22 2835/week @ 2025-12-29 4974/week @ 2026-01-05 5071/week @ 2026-01-12 5172/week @ 2026-01-19 7518/week @ 2026-01-26

23,059 downloads per month
Used in 108 crates (via tracel-mlir-rs)

Apache-2.0

330KB
9K SLoC

Tracel LLVM

The purpose of this repository is to provide an interface to MLIR from Rust for the CubeCL backend and support only one version at a time that is bundled automatically at compilation.

Publish a new release

  1. Update the LLVM version and release number in file config.rs.

  2. Create and commit the bindings with cargo xtask bindgen for Linux, MacOS and Windows. Additional instructions for new platforms may be found in docs/gen-bindings.md.

  3. Dispatch the workflow Release manually.

  4. The workflow will create a new release named v{LLVM_TAG}-{RELEASE_NUMBER}.

Note: Currently the workflow does not build the MacOS archive. It must be built manually by executing cargo xtask bundle build at the root of the repository. It will create an archive at .llvm/macos-AArch64.tar.xz. Edit the GitHub release and upload this archive to it manually.

  1. Then trigger the workflow Publish to publish the crates on crates.io.

Third-Party Acknowledgments

This workspace incorporates code from the following external repositories. Each retains its original license and copyright notices, as detailed in the COPYRIGHT file:

Please refer to the COPYRIGHT file for full license texts and copyright information.

Dependencies

~17–39MB
~572K SLoC