Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withCargoLocked

Method
📦 Aspire.Hosting.Rust v13.6.0-preview.1.26478.8
interface RustAppResource {
// ... omitted for brevity
withCargoLocked(locked?: boolean): RustAppResource;
}

Signature

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

Applies to

This method applies to the following types: