Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCargoArgs

Method
📦 Aspire.Hosting.Rust v17.0.0-preview.1.26565.2
func (RustAppResource) 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().

Applies to

This method applies to the following types: