Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCargoBinTarget

Method
📦 Aspire.Hosting.Rust v17.0.0-preview.1.26565.2
func (RustAppResource) WithCargoBinTarget(binName string) RustAppResource

Signature

methodWithCargoBinTargetbuilder
Configures the binary target to run for Rust applications that declare more than one.
WithCargoBinTarget(binName string) RustAppResource
binNamestringThe binary target name, as declared by [[bin]] name in Cargo.toml.
RustAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: