Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddRustApp

Method
📦 Aspire.Hosting.Rust v17.0.0-preview.1.26565.2
func (DistributedApplicationBuilder) 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

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder