RustAppResource
Handle
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;}10 members
Methods
Adds command-line arguments to the cargo command used by a Rust application.
withCargoArgs(args: string[]): RustAppResourceParameters
argsstring[]Returns
RustAppResourceConfigures the binary target to run for Rust applications that declare more than one.
withCargoBinTarget(binName: string): RustAppResourceParameters
binNamestringReturns
RustAppResourceConfigures an example target to run instead of a binary.
withCargoExample(exampleName: string): RustAppResourceParameters
exampleNamestringReturns
RustAppResourceAdds cargo features for the Rust application.
withCargoFeatures(features: string[]): RustAppResourceParameters
featuresstring[]Returns
RustAppResourceConfigures the Rust application to build and run with the exact dependency versions recorded in `Cargo.lock`.
withCargoLocked(locked?: boolean): RustAppResourceParameters
lockedbooleanoptional= TrueReturns
RustAppResourceConfigures the `Cargo.toml` cargo builds from.
withCargoManifestPath(manifestPath: string): RustAppResourceParameters
manifestPathstringReturns
RustAppResourceConfigures the workspace package to build and run.
withCargoPackage(packageName: string): RustAppResourceParameters
packageNamestringReturns
RustAppResourceConfigures the named cargo profile to build with.
withCargoProfile(profileName: string): RustAppResourceParameters
profileNamestringReturns
RustAppResourceConfigures the Rust application to run using release optimization.
withCargoReleaseBuild(releaseBuild?: boolean): RustAppResourceParameters
releaseBuildbooleanoptional= TrueReturns
RustAppResourceConfigures the target triple cargo builds for.
withCargoTarget(target: string): RustAppResourceParameters
targetstringReturns
RustAppResource