qm_s3/lib.rs
1#![deny(missing_docs)]
2
3//! S3 helper functions.
4//!
5//! This crate provides utilities for interacting with Amazon S3-compatible
6//! object storage services.
7//!
8//! ## Features
9//!
10//! - Object upload/download operations
11//! - Pre-signed URL generation
12//! - Bucket management utilities
13//! - Multipart upload support
14//!
15//! ## Usage
16//!
17//! \```ignore
18//! use qm_s3::S3Client;
19//!
20//! #[tokio::main]
21//! async fn main() -> anyhow::Result<()> {
22//! let client = S3Client::new("bucket-name").await?;
23//! client.put_object("key", data).await?;
24//! Ok(())
25//! }
26//! \```
27
28/// Adds two numbers together.
29pub fn add(left: usize, right: usize) -> usize {
30 left + right
31}
32
33#[cfg(test)]
34mod tests {
35 use super::*;
36
37 #[test]
38 fn it_works() {
39 let result = add(2, 2);
40 assert_eq!(result, 4);
41 }
42}