Aspire.Hosting.CodeGeneration.Rust
13.6.4
Prefix Reserved
dotnet add package Aspire.Hosting.CodeGeneration.Rust --version 13.6.4
NuGet\Install-Package Aspire.Hosting.CodeGeneration.Rust -Version 13.6.4
<PackageReference Include="Aspire.Hosting.CodeGeneration.Rust" Version="13.6.4" />
<PackageVersion Include="Aspire.Hosting.CodeGeneration.Rust" Version="13.6.4" />
<PackageReference Include="Aspire.Hosting.CodeGeneration.Rust" />
paket add Aspire.Hosting.CodeGeneration.Rust --version 13.6.4
#r "nuget: Aspire.Hosting.CodeGeneration.Rust, 13.6.4"
#:package Aspire.Hosting.CodeGeneration.Rust@13.6.4
#addin nuget:?package=Aspire.Hosting.CodeGeneration.Rust&version=13.6.4
#tool nuget:?package=Aspire.Hosting.CodeGeneration.Rust&version=13.6.4
Aspire.Hosting.CodeGeneration.Rust
Provides Rust AppHost scaffolding and generates Rust bindings for Aspire hosting APIs. This is tooling for writing the AppHost in Rust, not an integration for hosting a Rust application.
Getting started
Rust AppHost support is experimental. Install the Aspire CLI and the Rust toolchain, including Cargo. In a new directory for your AppHost, enable the feature and initialize it:
aspire config set features.experimentalPolyglot:rust true
aspire init --language rust
The CLI restores this code-generation package automatically for a Rust AppHost.
Do not install it with aspire add.
Edit apphost.rs to define your resources. The scaffolded AppHost loads
.aspire/modules/mod.rs, and Cargo.toml defines the AppHost binary and dependencies.
Generated bindings
Bindings are generated from Aspire Type System (ATS) metadata in Aspire.Hosting
and the hosting integrations configured in aspire.config.json. The generated
Rust API calls the .NET AppHost server through JSON-RPC.
Run aspire restore from the AppHost directory to regenerate bindings without
starting the AppHost. Use aspire run to run it. Do not edit .aspire/modules/;
change your AppHost or integration references instead.
Additional documentation
- https://aspire.dev/integrations/gallery/
- https://aspire.dev/reference/cli/commands/aspire-config-set/
- https://aspire.dev/reference/cli/commands/aspire-restore/
- https://aspire.dev/extensibility/multi-language-integration-authoring/
Feedback & contributing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Aspire.TypeSystem (>= 13.6.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.6.4 | 66 | 10/24/2026 |
| 13.6.3 | 69 | 10/21/2026 |
| 13.6.2 | 100 | 10/20/2026 |
| 13.6.1 | 126 | 10/7/2026 |
| 13.6.0 | 129 | 9/29/2026 |
| 13.5.4 | 122 | 9/15/2026 |
| 13.5.3 | 174 | 8/25/2026 |
| 13.5.2 | 130 | 8/21/2026 |
| 13.5.1 | 132 | 8/20/2026 |
| 13.5.0 | 142 | 8/18/2026 |
| 13.4.6 | 186 | 6/19/2026 |
| 13.4.5 | 145 | 6/17/2026 |
| 13.4.4 | 144 | 6/15/2026 |
| 13.4.3 | 154 | 6/8/2026 |
| 13.4.2 | 144 | 6/3/2026 |
| 13.4.1 | 141 | 6/3/2026 |
| 13.4.0 | 170 | 6/1/2026 |
| 13.3.5 | 150 | 5/21/2026 |
| 13.3.4 | 140 | 5/19/2026 |
| 13.3.3 | 149 | 5/15/2026 |