# Aspire.Hosting.Rust

- Module: `Aspire.Hosting.Rust`
- Version: `13.6.0-preview.1.26478.8`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)
- Functions: `11`
- Types: `1`

## Types

- [RustAppResource](/reference/api/typescript/aspire.hosting.rust/rustappresource.md) -- `handle` - 10 members -- Represents a Rust application resource in the distributed application model.

## Functions

- [addRustApp](/reference/api/typescript/aspire.hosting.rust/addrustapp.md) -- `method` -- Adds a Rust application to the application model.
- [withCargoArgs](/reference/api/typescript/aspire.hosting.rust/withcargoargs.md) -- `method` -- Adds command-line arguments to the cargo command used by a Rust application.
- [withCargoBinTarget](/reference/api/typescript/aspire.hosting.rust/withcargobintarget.md) -- `method` -- Configures the binary target to run for Rust applications that declare more than one.
- [withCargoExample](/reference/api/typescript/aspire.hosting.rust/withcargoexample.md) -- `method` -- Configures an example target to run instead of a binary.
- [withCargoFeatures](/reference/api/typescript/aspire.hosting.rust/withcargofeatures.md) -- `method` -- Adds cargo features for the Rust application.
- [withCargoLocked](/reference/api/typescript/aspire.hosting.rust/withcargolocked.md) -- `method` -- Configures the Rust application to build and run with the exact dependency versions recorded in `Cargo.lock`.
- [withCargoManifestPath](/reference/api/typescript/aspire.hosting.rust/withcargomanifestpath.md) -- `method` -- Configures the `Cargo.toml` cargo builds from.
- [withCargoPackage](/reference/api/typescript/aspire.hosting.rust/withcargopackage.md) -- `method` -- Configures the workspace package to build and run.
- [withCargoProfile](/reference/api/typescript/aspire.hosting.rust/withcargoprofile.md) -- `method` -- Configures the named cargo profile to build with.
- [withCargoReleaseBuild](/reference/api/typescript/aspire.hosting.rust/withcargoreleasebuild.md) -- `method` -- Configures the Rust application to run using release optimization.
- [withCargoTarget](/reference/api/typescript/aspire.hosting.rust/withcargotarget.md) -- `method` -- Configures the target triple cargo builds for.
