Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

RustAppResource.WithCargoArgs

Method
📦 Aspire.Hosting.Rust v17.0.0-preview.1.26565.2
type RustAppResource interface {
// ... omitted for brevity
WithCargoArgs(args []string) RustAppResource
}

Signature

methodWithCargoArgsbuilder
Adds command-line arguments to the cargo command used by a Rust application.
WithCargoArgs(args []string) RustAppResource
args[]stringThe cargo arguments to append before --.
RustAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: