Skip to main content
net10.0net8.0net9.0

An Aspire hosting integration for the RustFS S3-compatible object storage container.

Published
Sep 28, 2026
21d ago
Total Downloads
4.3K
4,284

Install

dotnet add package CommunityToolkit.Aspire.Hosting.RustFs --version 13.5.1-beta.777
ProductVersions
.NET
net10.0net8.0net9.0

README

CommunityToolkit.Aspire.Hosting.RustFs library

Provides extension methods and resource definitions for the Aspire AppHost to support running RustFs containers.

Getting Started

Install the package

In your AppHost project, install the package using the following command:

dotnet add package CommunityToolkit.Aspire.Hosting.RustFs

Example usage

Then, in the Program.cs file of AppHost, add a RustFs resource and consume the connection using the following methods:

var builder = DistributedApplication.CreateBuilder(args);

var rustfs = builder.AddRustFs("rustfs")
    .WithDataVolume()
    .AddBucket("mybucket");

builder.Build().Run();

Buckets

AddBucket registers each bucket as a child RustFsBucketResource so it appears in the Aspire Dashboard. After the RustFs server becomes healthy, the integration issues a signed S3 PUT /{bucket} request from the AppHost process to provision the bucket; there is no minio/mc sidecar container.

Multiple buckets can be added at once via AddBucket(IReadOnlyList<string>):

builder.AddRustFs("rustfs")
    .AddBucket(["images", "documents", "audit-log"]);

Changes from Previous Version

No structural changes between v13.5.1-beta.776 and v13.5.1-beta.777.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.