RustCargoArgsCallbackContext Constructors
ClassConstructors1 member
Represents callback context for cargo-level command-line arguments.
Constructor(RustAppResource, IList<string>, CancellationToken)Section titled Constructor(RustAppResource, IList<string>, CancellationToken) Represents callback context for cargo-level command-line arguments.
public sealed class RustCargoArgsCallbackContext{ public RustCargoArgsCallbackContext( RustAppResource resource, IList<string> args, CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
resourceRustAppResourceThe Rust application resource whose cargo arguments are being built.argsIList<string>The command-line arguments collection.cancellationTokenCancellationTokenoptionalThe cancellation token associated with this callback context.Remarks
Unlike program arguments, cargo arguments are plain strings rather than
Object. They select build behaviour ( --release, --features, --bin) before the program starts, so there is nothing for a deferred value such as an endpoint reference to resolve against; those belong after the -- separator and are added with WithArgs.