Crate cargo_futhark

source ·
Expand description


A library and cargo subcommand to conveniently integrate Futhark into Rust projects.

See the usage section in the readme to get started with the CLI. This documentation will focus on the code generation aspect of this crate.

Generating Bindings

The core of this library is the Generator. Using it, you can automatically generate safe bindings for your Futhark code. Take a look at its documentation to understand how it works.

Using Generated Bindings

Once you’ve generated the bindings, including them is as easy as this:

include!(concat!(env!("OUT_DIR"), "/futhark/"));



Type Definitions

  • type alias for Result<T, Report>