# SPIR-Q Assembler
[](https://crates.io/crates/spirq-as)
SPIR-Q Assembler (`spirq-as`) is a SPIR-V assembler written in pure Rust. It is a drop-in replacement of the official assembler `spirv-as` with the same commandline arguments.
## Install
You can install `spirq-as` from cargo with:
```bash
cargo install spirq-as
```
## Usage
To assemble SPIR-V binary from SPIR-V assembly, you can either pass the source file path by argument or pipe the code in.
```bash
spirq-as [INPUT].spvasm -o [OUTPUT].spv
# - or -
`spirq-as` is a CLI tool for end users. You can also integrate the assembler to your application from the library crate [`spirq-spvasm`](../spirq-spvasm/README.md).
## License
This project is licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.