4 releases

0.0.1 Mar 20, 2024
0.0.1-alpha3 Oct 21, 2021
0.0.1-alpha1 Oct 20, 2021

#9 in #alibaba

Apache-2.0

33KB
846 lines

Aliyun OSS Rust SDK

GitHub Actions Workflow Status Codecov Crates.io Version Crates.io Total Downloads GitHub Tag GitHub License

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
~508K SLoC