RustCargoArgsCallbackContext
Classsealednet10.0
Represents callback context for cargo-level command-line arguments.
namespace Aspire.Hosting.Rust;
public sealed class RustCargoArgsCallbackContext{ // ...}Remarks
Section titled 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. Constructors1
Section titled Constructors Represents callback context for cargo-level command-line arguments.
Properties3
Section titled PropertiesCancellationToken Gets the cancellation token associated with the callback context.
Resourceget Gets the Rust application resource whose cargo arguments are being built.