Aspire.Hosting.Rust
Official
📦 Aspire.Hosting.Rustv13.6.0-preview.1.26478.811Functions
1Types
1 types and 0 members
Types
Functions
method
addRustAppbuilderAdds a Rust application to the application model.
addRustApp(name: string, appDirectory: string): RustAppResourcemethod
withCargoArgsbuilderAdds command-line arguments to the cargo command used by a Rust application.
withCargoArgs(args: string[]): RustAppResourcemethod
withCargoBinTargetbuilderConfigures the binary target to run for Rust applications that declare more than one.
withCargoBinTarget(binName: string): RustAppResourcemethod
withCargoExamplebuilderConfigures an example target to run instead of a binary.
withCargoExample(exampleName: string): RustAppResourcemethod
withCargoFeaturesbuilderAdds cargo features for the Rust application.
withCargoFeatures(features: string[]): RustAppResourcemethod
withCargoLockedbuilderConfigures the Rust application to build and run with the exact dependency versions recorded in `Cargo.lock`.
withCargoLocked(locked?: boolean): RustAppResourcemethod
withCargoManifestPathbuilderConfigures the `Cargo.toml` cargo builds from.
withCargoManifestPath(manifestPath: string): RustAppResourcemethod
withCargoPackagebuilderConfigures the workspace package to build and run.
withCargoPackage(packageName: string): RustAppResourcemethod
withCargoProfilebuilderConfigures the named cargo profile to build with.
withCargoProfile(profileName: string): RustAppResourcemethod
withCargoReleaseBuildbuilderConfigures the Rust application to run using release optimization.
withCargoReleaseBuild(releaseBuild?: boolean): RustAppResourcemethod
withCargoTargetbuilderConfigures the target triple cargo builds for.
withCargoTarget(target: string): RustAppResource