Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCargoProfile

Method
📦 Aspire.Hosting.Rust v17.0.0-preview.1.26565.2
func (RustAppResource) WithCargoProfile(profileName string) RustAppResource

Signature

methodWithCargoProfilebuilder
Configures the named cargo profile to build with.
WithCargoProfile(profileName string) RustAppResource
profileNamestringThe profile name, for example dev, release, or a custom profile.
RustAppResource

The resource builder.

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

Applies to

This method applies to the following types: