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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//! # weedforge
//!
//! A Rust-first, Python-friendly SDK for **`SeaweedFS`**.
//!
//! ## Features
//!
//! - **Clean Architecture**: Domain, Application, Infrastructure layers
//! - **HA-aware**: Multiple master support with failover
//! - **Async + Sync**: Both async and blocking APIs
//! - **Type-safe**: Strong typing with `FileId` as first-class entity
//!
//! ## Quick Start
//!
//! ```ignore
//! use weedforge::WeedClient;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Create client
//! let client = WeedClient::builder()
//! .master_url("http://localhost:9333")
//! .build()?;
//!
//! // Upload a file
//! let file_id = client.write(b"Hello, SeaweedFS!".to_vec(), Some("hello.txt")).await?;
//! println!("Uploaded: {}", file_id);
//!
//! // Download the file
//! let data = client.read(&file_id).await?;
//! println!("Downloaded: {} bytes", data.len());
//!
//! // Get public URL
//! let url = client.public_url(&file_id).await?;
//! println!("Public URL: {}", url);
//!
//! Ok(())
//! }
//! ```
//!
//! ## Blocking API
//!
//! ```ignore
//! use weedforge::BlockingWeedClient;
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = BlockingWeedClient::builder()
//! .master_url("http://localhost:9333")
//! .build()?;
//!
//! let file_id = client.write(b"Hello!".to_vec(), Some("hello.txt"))?;
//! let data = client.read(&file_id)?;
//!
//! Ok(())
//! }
//! ```
// Re-export domain types
pub use ;
// Re-export application types
pub use ;
// Re-export infrastructure types for advanced usage
pub use ;
// Export main client types
pub use ;