Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

RustAppResource

Handle
📦 Aspire.Hosting.Rust v13.6.0-preview.1.26478.8
interface RustAppResource
extends IComputeResource,
IContainerFilesDestinationResource,
IResource,
IResourceWithArgs,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IResourceWithServiceDiscovery {
withCargoArgs(args: string[]): RustAppResource;
withCargoBinTarget(binName: string): RustAppResource;
withCargoExample(exampleName: string): RustAppResource;
withCargoFeatures(features: string[]): RustAppResource;
withCargoLocked(locked?: boolean): RustAppResource;
withCargoManifestPath(manifestPath: string): RustAppResource;
withCargoPackage(packageName: string): RustAppResource;
withCargoProfile(profileName: string): RustAppResource;
withCargoReleaseBuild(releaseBuild?: boolean): RustAppResource;
withCargoTarget(target: string): RustAppResource;
}

Methods

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