A library and cargo subcommand to conveniently integrate Futhark into Rust projects.
First, install the command-line tool:
cargo install cargo-futharkThen create your new app (skip if it already exists):
cargo new --bin my-app
cd my-appCreate the Futhark package:
cargo futhark new futhark-libAnd add it to your my-app/Cargo.toml:
[package]
# package stuff ...
[workspace]
members = ["futhark-lib"]
[dependencies]
futhark-lib = { path = "futhark-lib" }An example can be found in the examples directory.
Not that they can not be run using cargo run --example.
Instead use the following command:
cargo run --package simple-exampleThe examples/simple-lib package contains the Futhark code
and the examples/simple package contains the Rust binary using it.
- crates-io:futhark
- just a placeholder.
- create-io:genfut
- no support for multiple targets
- no simple CLI generate project
- crates-io:futhark-bindgen
- no support for multiple targets
- no simple CLI generate project
- supports OCaml