Watch Aspire live streamsDocsTry Aspire

addRustApp

Method
📦 Aspire.Hosting.Rust v13.6.5-preview.1.26559.7
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addRustApp(
name: string,
appDirectory: string): RustAppResource;
}

Signature

methodaddRustAppbuilder
Adds a Rust application to the application model.
addRustApp(
name: string,
appDirectory: string): RustAppResource
namestringThe name of the resource.
appDirectorystringThe working directory for cargo and the Docker build context used when publishing.
RustAppResource

Applies to

This method applies to the following types: