RustAppResource
Handle
interface RustAppResource extends IComputeResource, IContainerFilesDestinationResource, IResource, IResourceWithArgs, IResourceWithEndpoints, IResourceWithEnvironment, IResourceWithProbes, IResourceWithWaitSupport, IResourceWithServiceDiscovery { readonly resourceTypeDisplayName: string; 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;}11 members
Properties
property
resourceTypeDisplayName stringgetGets the ResourceTypeDisplayName property
Methods
Adds command-line arguments to the cargo command used by a Rust application.
withCargoArgs(args: string[]): RustAppResourceParameters
argsstring[]The cargo arguments to append before `--`.Returns
RustAppResource Configures the binary target to run for Rust applications that declare more than one.
withCargoBinTarget(binName: string): RustAppResourceParameters
binName stringThe binary target name, as declared by `[[bin]] name` in Cargo.toml.Returns
RustAppResource Configures an example target to run instead of a binary.
withCargoExample(exampleName: string): RustAppResourceParameters
exampleName stringThe example name, as declared by a file or directory under `examples/`.Returns
RustAppResource Adds cargo features for the Rust application.
withCargoFeatures(features: string[]): RustAppResourceParameters
featuresstring[]The features to enable.Returns
RustAppResource Configures the Rust application to build and run with the exact dependency versions recorded in `Cargo.lock`.
withCargoLocked(locked?: boolean): RustAppResourceParameters
lockedbooleanoptional= True`true` to add `--locked`; otherwise `false`.Returns
RustAppResource Configures the `Cargo.toml` cargo builds from.
withCargoManifestPath(manifestPath: string): RustAppResourceParameters
manifestPath stringThe path to the manifest, absolute or relative to the app directory.Returns
RustAppResource Configures the workspace package to build and run.
withCargoPackage(packageName: string): RustAppResourceParameters
packageName stringThe cargo package name.Returns
RustAppResource Configures the named cargo profile to build with.
withCargoProfile(profileName: string): RustAppResourceParameters
profileName stringThe profile name, for example `dev`, `release`, or a custom profile.Returns
RustAppResource Configures the Rust application to run using release optimization.
withCargoReleaseBuild(releaseBuild?: boolean): RustAppResourceParameters
releaseBuild booleanoptional= True`true` to add `--release`; otherwise `false`.Returns
RustAppResource Configures the target triple cargo builds for.
withCargoTarget(target: string): RustAppResourceParameters
targetstringThe target triple, for example `x86_64-unknown-linux-musl`.Returns
RustAppResource