4 releases
0.0.1 | Mar 20, 2024 |
---|---|
0.0.1-alpha3 | Oct 21, 2021 |
0.0.1-alpha1 | Oct 20, 2021 |
#8 in #alibaba
110 downloads per month
33KB
846 lines
Aliyun OSS Rust SDK
An unofficial Alibaba Cloud OSS SDK for Rust.
Still in work progress!
Example
use yunoss::Client;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let cli = Client::builder()
.endpoint("your.endpoint.com")
.access_key("your_access_key")
.access_secret("your_access_secret")
.build()?;
let b = cli
.bucket("your_bucket")?
.get_object("your_object.txt")
.await?;
println!("bingo: {}", String::from_utf8_lossy(b));
Ok(())
}
Dependencies
~14–27MB
~507K SLoC