| Crates.io | aquila_s3 |
| lib.rs | aquila_s3 |
| version | 0.6.0 |
| created_at | 2026-01-06 01:17:01.694537+00 |
| updated_at | 2026-01-07 08:31:19.82506+00 |
| description | Aquila asset server s3 file backend implementation |
| homepage | |
| repository | https://github.com/NicoZweifel/aquila |
| max_upload_size | |
| id | 2024898 |
| size | 77,294 |
A storage backend powered by AWS S3.
Uses the official [aws-sdk-s3] to store assets in an S3 bucket. It supports
prefixes for organizing data within shared buckets and Presigned URLs for
downloads via S3/CDN directly.
Requires the standard AWS environment variables (e.g., AWS_REGION, AWS_ACCESS_KEY_ID)
handled by aws-config.
let config = aws_config::load_from_env().await;
let client = Client::new(&config);
let storage = S3Storage::new(
client,
"my-game-assets".to_string(), // Bucket
Some("production/".to_string()) // Optional Prefix
)
// Optional: Enable Presigned URLs (Direct S3 Download)
.with_presigning(Duration::from_secs(300));
License: MIT OR Apache-2.0