RustCargoArgsCallbackContext Properties
ClassProperties3 members
Represents callback context for cargo-level command-line arguments.
Gets the list of command-line arguments.
public IList<string> Args { get; } Gets the cancellation token associated with the callback context.
public CancellationToken CancellationToken { get; } Gets the Rust application resource whose cargo arguments are being built.
public RustAppResource Resource { get; }Remarks
The same callbacks run for both the local
cargo run command line and the generated Dockerfile, so a callback that needs to know which resource it is configuring — or that needs to read annotations placed on it — reads them from here rather than capturing the resource itself.