Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

Aspire.Hosting.Rust

Official
📦 Aspire.Hosting.Rustv13.6.0-preview.1.26478.8
11Functions
1Types

Types

Functions

methodaddRustAppbuilder
Adds a Rust application to the application model.
addRustApp(name: string, appDirectory: string): RustAppResource
methodwithCargoArgsbuilder
Adds command-line arguments to the cargo command used by a Rust application.
withCargoArgs(args: string[]): RustAppResource
methodwithCargoBinTargetbuilder
Configures the binary target to run for Rust applications that declare more than one.
withCargoBinTarget(binName: string): RustAppResource
methodwithCargoExamplebuilder
Configures an example target to run instead of a binary.
withCargoExample(exampleName: string): RustAppResource
methodwithCargoFeaturesbuilder
Adds cargo features for the Rust application.
withCargoFeatures(features: string[]): RustAppResource
methodwithCargoLockedbuilder
Configures the Rust application to build and run with the exact dependency versions recorded in `Cargo.lock`.
withCargoLocked(locked?: boolean): RustAppResource
methodwithCargoManifestPathbuilder
Configures the `Cargo.toml` cargo builds from.
withCargoManifestPath(manifestPath: string): RustAppResource
methodwithCargoPackagebuilder
Configures the workspace package to build and run.
withCargoPackage(packageName: string): RustAppResource
methodwithCargoProfilebuilder
Configures the named cargo profile to build with.
withCargoProfile(profileName: string): RustAppResource
methodwithCargoReleaseBuildbuilder
Configures the Rust application to run using release optimization.
withCargoReleaseBuild(releaseBuild?: boolean): RustAppResource
methodwithCargoTargetbuilder
Configures the target triple cargo builds for.
withCargoTarget(target: string): RustAppResource