Rust #
Set up Rust from FluentCI using PureScript compiled to WebAssembly.
Platforms #
Linux, macOS, FreeBSD, OpenBSD, and NetBSD. Linux/macOS use upstream downloads; BSD uses the native repository and requires an available package for your OS and architecture.
Official rustup bootstrap, using isolated Cargo and rustup directories and the minimal profile. Select a release, stable, beta, nightly, or a dated rustup toolchain. Defaults to stable. Publishes CARGO_HOME, RUSTUP_HOME, and RUSTUP_TOOLCHAIN.
Usage #
fluentci run rust setup 1.85.0
Omit the version to use the default. The setup export also accepts a JSON
object as plugin input:
{
"version": "1.85.0"
}
See the shared setup guide for configuration, prerequisites, installation paths, native BSD package selectors, privileges, and output format. After installation, setup verifies the runtime version and updates PATH in the FluentCI engine for later steps.
Compose in PureScript #
module Main where
import Prelude
import CI.Setup.Rust as Runtime
import Effect (Effect)
bootstrap :: Effect Unit
bootstrap = void (Runtime.setupWith (Runtime.defaultConfig { version = "1.85.0" }))
Development #
Keep the checked-in lib/setup library and test/setup fixtures available,
then run from this directory:
npm ci
npm run build
npm test
The build produces dist/plugin.wasm. See the shared guide for optional live
upstream smoke tests and the limits of stub-host BSD verification.
License #
MIT.