Skip to main content

Rust

Running the pre-built Rust pipeline directly

Run the following command to run the pre-built Rust pipeline without having to initialize a project:

fluentci run rust build

Add Rust Pipeline to your project

Run the following command to add Rust pipeline to your project:

fluentci init -t rust

This will create a .fluentci directory in your project, feel free to customize the pipeline for your needs. You can then run the following command to start the pipeline:

fluentci run .

Jobs

JobDescription
buildbuild your project
testRun your tests

Programmatic usage

You can also use this pipeline programmatically:

import { build, test } from "jsr:@fluentci/rust";

await test();
await build();

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to build and test Rust applications:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: test
run: fluentci run --wasm rust test
- name: build
run: fluentci run --wasm rust build