Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

RustAppResource.WithCargoExample

Method
📦 Aspire.Hosting.Rust v17.0.0-preview.1.26565.2
type RustAppResource interface {
// ... omitted for brevity
WithCargoExample(exampleName string) RustAppResource
}

Signature

methodWithCargoExamplebuilder
Configures an example target to run instead of a binary.
WithCargoExample(exampleName string) RustAppResource
exampleNamestringThe example name, as declared by a file or directory under examples/.
RustAppResource

The resource builder.

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

Defined on

This method is defined on the following type: