yunoss

Crates.ioyunoss
lib.rsyunoss
version0.0.1
sourcesrc
created_at2021-10-20 13:50:23.347926
updated_at2024-03-20 07:35:20.131733
descriptionAn unoffical Aliyun OSS SDK
homepagehttps://github.com/jjeffcaii/aliyun-oss-rust-sdk
repositoryhttps://github.com/jjeffcaii/aliyun-oss-rust-sdk
max_upload_size
id467926
size86,363
Jeffsky (jjeffcaii)

documentation

README

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(())
}
Commit count: 13

cargo fmt