Skip to content

Futhark integration for Rust projects

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

luleyleo/cargo-futhark

Repository files navigation

Cargo-Futhark integration

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

Usage

First, install the command-line tool:

cargo install cargo-futhark

Then create your new app (skip if it already exists):

cargo new --bin my-app
cd my-app

Create the Futhark package:

cargo futhark new futhark-lib

And add it to your my-app/Cargo.toml:

[package]
# package stuff ...

[workspace]
members = ["futhark-lib"]

[dependencies]
futhark-lib = { path = "futhark-lib" }

Examples

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-example

The examples/simple-lib package contains the Futhark code and the examples/simple package contains the Rust binary using it.

Related Work

About

Futhark integration for Rust projects

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages