Watch Aspire live streamsDocsTry Aspire

RustCargoArgsCallbackContext

Classsealednet10.0
📦 Aspire.Hosting.Rust v13.6.5-preview.1.26559.7
Represents callback context for cargo-level command-line arguments.
namespace Aspire.Hosting.Rust;
public sealed class RustCargoArgsCallbackContext
{
// ...
}
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.
View all constructors
View all properties