#shader #pipeline #hlsl #dxc #intellisense


HLSL compiler library, this crate provides an FFI layer and idiomatic rust wrappers for the new DXC hlsl compiler and validator

10 releases

✓ Uses Rust 2018 edition

0.3.0 Jul 14, 2019
0.2.0 Mar 1, 2019
0.1.7 Jan 4, 2019
0.1.6 Dec 15, 2018

#104 in Graphics APIs

Download history 53/week @ 2019-08-05 36/week @ 2019-08-12 10/week @ 2019-08-19 105/week @ 2019-08-26 54/week @ 2019-09-02 19/week @ 2019-09-09 87/week @ 2019-09-16 102/week @ 2019-09-23 68/week @ 2019-09-30 8/week @ 2019-10-07 46/week @ 2019-10-14 33/week @ 2019-10-21 13/week @ 2019-10-28 12/week @ 2019-11-04 11/week @ 2019-11-11

98 downloads per month

MIT license



hassle on travis-ci.com Latest version Documentation Lines of code MIT

This crate provides an FFI layer and idiomatic rust wrappers for the new DirectXShaderCompiler library.


Add this to your Cargo.toml:

hassle-rs = "0.3.0"

and add this to your crate root:

extern crate hassle_rs;

Then acquire dxcompiler.dll directly from AppVeyor or compile it from source according to the instructions in the DirectXShaderCompiler GitHub repository and make sure it's in the executable enviroment.

DxcValidator also requires dxil.dll which can be grabbed from any recent Windows 10 SDK flight. More info: https://www.wihlidal.com/blog/pipeline/2018-09-16-dxil-signing-post-compile/


Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)


  • Graham Wihlidal
  • Tiago Carvalho


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, shall be licensed as above, without any additional terms or conditions.

Contributions are always welcome; please look at the issue tracker to see what known improvements are documented.