15 releases (2 stable)

Uses new Rust 2024

210.0.1 Nov 6, 2025
0.5.0 Apr 1, 2025
0.4.2 Feb 8, 2025
0.4.1 Dec 7, 2024
0.1.0 Nov 16, 2021

#447 in Development tools

Download history 7911/week @ 2025-08-28 8486/week @ 2025-09-04 11121/week @ 2025-09-11 3078/week @ 2025-09-18 5145/week @ 2025-09-25 3586/week @ 2025-10-02 4934/week @ 2025-10-09 7778/week @ 2025-10-16 8562/week @ 2025-10-23 8058/week @ 2025-10-30 12581/week @ 2025-11-06 10789/week @ 2025-11-13 11863/week @ 2025-11-20 16260/week @ 2025-11-27 14613/week @ 2025-12-04 10844/week @ 2025-12-11

55,908 downloads per month
Used in 11 crates (5 directly)

Custom license

8KB
158 lines

mlir-sys

GitHub Action Crate License

Rust bindings to the MLIR C API.

Versioning

Starting with LLVM 21, this crate follows a versioning scheme similar to llvm-sys. The crate version is the LLVM version multiplied by 10 with a patch version:

  • mlir-sys 210.0.x is compatible with LLVM/MLIR 21.0.x
  • Previous versions (0.x.x) used a different versioning scheme

Install

cargo add mlir-sys

This crate searches an llvm-config command on build and uses it to determine build configurations related to LLVM and MLIR. You can also use a MLIR_SYS_210_PREFIX environment variable to specify a custom directory of LLVM installation.

License

MIT

Dependencies

~0–1.9MB
~38K SLoC