Aspire.Hosting.Rust
Official
📦 Aspire.Hosting.Rustv17.0.0-preview.1.26565.2Import path
apphost/modules/aspire11Functions
1Types
1 types, 11 functions and 1 members
Handles
Functions
DistributedApplicationBuilder
RustAppResource
method
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(options ...*WithCargoLockedOptions) 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(options ...*WithCargoReleaseBuildOptions) RustAppResourcemethod
WithCargoTargetbuilderConfigures the target triple cargo builds for.
WithCargoTarget(target string) RustAppResource