Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

RustAppResource.withCargoExample

Method
📦 Aspire.Hosting.Rust v13.6.0-preview.1.26478.8
interface RustAppResource {
// ... omitted for brevity
withCargoExample(exampleName: string): RustAppResource;
}

Signature

methodwithCargoExamplebuilder
Configures an example target to run instead of a binary.
withCargoExample(exampleName: string): RustAppResource
exampleNamestring
RustAppResource

Defined on

This method is defined on the following type: