# QBE IR for Rust
[](https://crates.io/crates/qbe)
[](https://docs.rs/qbe)
[](https://github.com/garritfra/qbe-rs/blob/main/COPYRIGHT)
https://c9x.me/compile/
This crate seeks to provide a Rust-y representation of [QBE
IR](https://c9x.me/compile/). It can be used for code generation of compilers. A
way to parse existing IR is planned.
## Getting Started
This crate is on [crates.io](https://crates.io/crates/qbe), so you can simply
add it as a dependency in your Cargo.toml and off you go.
If you don't know where to get started, check out the `hello_world` example in
the `examples/` directory.
## Projects using this crate
This crate is used by the [Antimony](https://github.com/antimony-lang/antimony)
project. Check out the [QBE
generator](https://github.com/antimony-lang/antimony/blob/master/src/generator/qbe.rs)
to see how they are using it.
## License
The `qbe` crate is distributed under either of
- [Apache License, Version 2.0](LICENSE-APACHE)
- [MIT license](LICENSE-MIT)
at your option.