Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withCargoArgs

Method
📦 Aspire.Hosting.Rust v13.6.0-preview.1.26478.8
interface RustAppResource {
// ... 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
argsstring[]
RustAppResource

Applies to

This method applies to the following types: