#build-dependencies #ispc #simd


A build-time dependency for Cargo build scripts to help with compiling and linking to ISPC code, and generating Rust bindings to the resulting library. The generated bindings can be imported by using ispc_rt, which will also support linking to pre-built ISPC code. Using pre-built binaries is useful for distributing a library or tool using ISPC, while not requiring end users to have the ISPC compiler.

7 stable releases

1.0.6 Apr 21, 2019
1.0.5 Feb 25, 2019
1.0.4 Jan 24, 2019
1.0.2 Jan 23, 2019

#42 in Build Utils

Download history 29/week @ 2019-01-17 43/week @ 2019-01-24 48/week @ 2019-01-31 7/week @ 2019-02-07 18/week @ 2019-02-14 23/week @ 2019-02-21 29/week @ 2019-02-28 20/week @ 2019-03-07 18/week @ 2019-03-14 18/week @ 2019-03-21 10/week @ 2019-03-28 9/week @ 2019-04-04 16/week @ 2019-04-11

97 downloads per month
Used in 2 crates

MIT license

573 lines


A small library meant to be used as a build dependency with Cargo for easily integrating ISPC code into Rust projects. The ispc_compile crate provides functionality to use the ISPC compiler from your build script to build your ISPC code into a library, and generate Rust bindings to this library. The ispc_rt crate is still required at runtime to provide a macro to import the generated bindings, along with the task system and performance instrumentation system.

Requirements for Compiling ISPC Code

Both the ISPC compiler and libclang (for rust-bindgen) must be available in your path to compile the ISPC code and generate the bindings. These are not required if using ispc_rt to link against a previously compiled library.

Windows Users

You'll need Visual Studio and will have to use the MSVC ABI version of Rust since ISPC and Clang link with MSVC on Windows. For bindgen to find libclang you'll need to copy libclang.lib to clang.lib and place it in your path.


~106K SLoC