Skip to main content

Rust Package

Strongly typed Cargo commands for Rust projects.

Installation

dotnet add package ModularPipelines.Rust

Required command-line tool: cargo. It must be installed and available on PATH when the pipeline runs.

Context entry points

Import ModularPipelines.Rust.Extensions, then use this service from a module:

  • context.Cargo()

Module example

using ModularPipelines.Rust.Extensions;

public class UseCargoModule : SyncModule
{
protected override void ExecuteModule(
IModuleContext context,
CancellationToken cancellationToken)
{
var cargo = context.Cargo();

// Call the integration's strongly typed operations here.
context.Logger.LogInformation("Cargo integration is ready");
}
}

The package exposes generated options records for its supported CLI commands.