RustAppResource.WithCargoLocked

Method
📦 Aspire.Hosting.Rust v17.0.0-preview.1.26567.5
type RustAppResource interface {
// ... omitted for brevity
WithCargoLocked(options ...*WithCargoLockedOptions) RustAppResource
}

Signature

methodWithCargoLockedbuilder
Configures the Rust application to build and run with the exact dependency versions recorded in Cargo.lock.
WithCargoLocked(options ...*WithCargoLockedOptions) RustAppResource
options...*WithCargoLockedOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithCargoLockedOptions argument.

Locked*booltrue to add --locked; otherwise false.
RustAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: