Crates.io | yunoss |
lib.rs | yunoss |
version | 0.0.1 |
source | src |
created_at | 2021-10-20 13:50:23.347926 |
updated_at | 2024-03-20 07:35:20.131733 |
description | An unoffical Aliyun OSS SDK |
homepage | https://github.com/jjeffcaii/aliyun-oss-rust-sdk |
repository | https://github.com/jjeffcaii/aliyun-oss-rust-sdk |
max_upload_size | |
id | 467926 |
size | 86,363 |
An unofficial Alibaba Cloud OSS SDK for Rust.
Still in work progress!
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(())
}