1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// =============================================================================
// vil_storage_s3 — VIL Storage Plugin: S3-compatible object storage
// =============================================================================
//
// Provides an async S3 client compatible with AWS S3, MinIO, Cloudflare R2,
// DigitalOcean Spaces, and any service that implements the AWS S3 API.
//
// # Compliance
//
// - Semantic log: every operation emits `db_log!` with timing (§8)
// - Error types: `S3Fault` plain enum, no `thiserror` (§4, §12)
// - No heap strings on log path: `register_str()` hashes used throughout
// - No `println!`, `tracing::info!`, `eprintln!` in production code
//
// # Quick start
//
// ```rust,ignore
// use vil_storage_s3::{S3Client, S3Config};
//
// #[tokio::main]
// async fn main() {
// let cfg = S3Config {
// endpoint: Some("http://localhost:9000".into()),
// region: "us-east-1".into(),
// access_key: Some("minioadmin".into()),
// secret_key: Some("minioadmin".into()),
// bucket: "my-bucket".into(),
// path_style: true,
// };
//
// let client = S3Client::new(cfg).await.expect("connect");
// client.put_object("hello.txt", bytes::Bytes::from("hello world")).await.expect("put");
// let data = client.get_object("hello.txt").await.expect("get");
// assert_eq!(&data[..], b"hello world");
// }
// ```
// =============================================================================
pub use ;
pub use S3Config;
pub use S3Fault;
pub use ;
pub use S3ClientState;