40 releases (13 breaking)

Uses new Rust 2024

new 0.25.4 Jan 14, 2026
0.25.2 Dec 30, 2025
0.24.3 Nov 6, 2025
0.22.1 Jul 28, 2025
0.2.0 Jul 31, 2024

#418 in Programming languages

Download history 1098/week @ 2025-09-27 1265/week @ 2025-10-04 3154/week @ 2025-10-11 2349/week @ 2025-10-18 1404/week @ 2025-10-25 3581/week @ 2025-11-01 2514/week @ 2025-11-08 841/week @ 2025-11-15 1308/week @ 2025-11-22 1010/week @ 2025-11-29 2143/week @ 2025-12-06 753/week @ 2025-12-13 492/week @ 2025-12-20 940/week @ 2025-12-27 809/week @ 2026-01-03 997/week @ 2026-01-10

3,342 downloads per month
Used in 5 crates (via hugr)

Apache-2.0

2.5MB
53K SLoC

hugr-llvm

build_status codecov msrv

A general, extensible, rust crate for lowering HUGRs into LLVM IR. Built on hugr, inkwell, and llvm.

Usage

You'll need to point your Cargo.toml to use a single LLVM version feature flag corresponding to your LLVM version, by calling

cargo add hugr-llvm --features llvm14-0

At present only llvm14-0 is supported but we expect to introduce supported versions as required. Contributions are welcome.

See the llvm-sys crate for details on how to use your preferred llvm installation.

Recent Changes

See CHANGELOG for a list of changes. The minimum supported rust version will only change on major releases.

Developing hugr-llvm

See DEVELOPMENT for instructions on setting up the development environment.

License

This project is licensed under Apache License, Version 2.0 (LICENCE or http://www.apache.org/licenses/LICENSE-2.0).

Dependencies

~21–31MB
~516K SLoC