#spir-v #rust-gpu

spirv-tools

Wrapper crate for SPIRV-Tools

19 releases (12 breaking)

Uses new Rust 2024

new 0.13.2 Feb 16, 2026
0.13.0 Oct 7, 2025
0.12.1 Jul 17, 2025
0.10.0 Feb 5, 2024
0.1.1 Nov 18, 2020

#10 in Data formats

Download history 2511/week @ 2025-10-27 2418/week @ 2025-11-03 1690/week @ 2025-11-10 2229/week @ 2025-11-17 1784/week @ 2025-11-24 1919/week @ 2025-12-01 1945/week @ 2025-12-08 1502/week @ 2025-12-15 1432/week @ 2025-12-22 1004/week @ 2025-12-29 2102/week @ 2026-01-05 2680/week @ 2026-01-12 1769/week @ 2026-01-19 3022/week @ 2026-01-26 2748/week @ 2026-02-02 3079/week @ 2026-02-09

10,718 downloads per month
Used in 6 crates (5 directly)

MIT/Apache

5MB
106K SLoC

C++ 76K SLoC // 0.1% comments Bitbake 10K SLoC C# 5K SLoC // 0.0% comments Lua 5K SLoC // 0.0% comments Python 5K SLoC // 0.0% comments D 2.5K SLoC // 0.0% comments Rust 2K SLoC // 0.1% comments

🛠 spirv-tools

This crate is an unofficial wrapper for SPIR-V Tools, its primary use case is for the rust-gpu project.

Crates.io Docs Build status

Status

This is a very rough wrapper around the assembler, validator, and (most of the) optimizer tools available from SPIR-V Tools, which is enough for the current needs of the rust-gpu project. See that project's code for more thorough usage examples.

Contributing

Contributor Covenant

We welcome community contributions to this project.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–5.5MB
~128K SLoC