Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withCargoFeatures

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

Signature

methodwithCargoFeaturesbuilder
Adds cargo features for the Rust application.
withCargoFeatures(features: string[]): RustAppResource
featuresstring[]
RustAppResource

Applies to

This method applies to the following types: