20 releases (7 breaking)

new 0.15.4 May 7, 2025
0.15.2 Mar 21, 2025
0.14.1 Dec 18, 2024
0.6.1 Oct 23, 2024
0.2.0 Jul 31, 2024

#834 in Programming languages

Download history 146/week @ 2025-01-15 55/week @ 2025-01-22 102/week @ 2025-01-29 301/week @ 2025-02-05 164/week @ 2025-02-12 266/week @ 2025-02-19 153/week @ 2025-02-26 86/week @ 2025-03-05 559/week @ 2025-03-12 567/week @ 2025-03-19 189/week @ 2025-03-26 503/week @ 2025-04-02 304/week @ 2025-04-09 144/week @ 2025-04-16 306/week @ 2025-04-23 256/week @ 2025-04-30

1,102 downloads per month
Used in 2 crates (via hugr)

Apache-2.0

2MB
41K 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

~12MB
~215K SLoC