Skip to main content

Build and test Rust applications

This page explains how to build and test Rust applications with FluentCI.

Before you begin

The instructions on this page assume that you are familiar with Rust. In addition:

  • Be familiar with creating Rust-based applications.
  • Have your Rust project ready, including test files.

Using the Rust Plugin

You can use FluentCI to build and test Rust applications using the rust plugin, no need to install Rust on your machine, FluentCI will handle everything for you.

The following commands can be used to build and test Rust applications:

fluentci run --wasm rust test
fluentci run --wasm rust 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