Crates.io | cargo-futhark |
lib.rs | cargo-futhark |
version | |
source | src |
created_at | 2023-07-23 21:58:33.771792+00 |
updated_at | 2025-02-16 13:16:49.701243+00 |
description | A library and cargo subcommand to integrate Futhark into Rust projects. |
homepage | |
repository | https://github.com/luleyleo/cargo-futhark |
max_upload_size | |
id | 924038 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A library and cargo subcommand to conveniently integrate Futhark into Rust projects.
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" }
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.