Skip to main content

Crate aliyun_oss

Crate aliyun_oss 

Source
Expand description

Alibaba Cloud OSS (Object Storage Service) Rust SDK.

§Quick Start

use aliyun_oss::client::OSSClient;
use aliyun_oss::types::region::Region;

let client = OSSClient::builder()
    .region(Region::CnHangzhou)
    .credentials("your-access-key-id", "your-access-key-secret")
    .build()?;

let output = client
    .bucket("my-bucket")?
    .put_object("hello.txt")?
    .body("Hello OSS")
    .send()
    .await?;

§Features

  • V4 (HMAC-SHA256) and V1 (HMAC-SHA1) request signing
  • Full Object CRUD with metadata, ACL, tagging, and server-side encryption
  • Multipart upload with automatic Content-MD5 computation
  • Bucket configuration (lifecycle, CORS, policy, encryption, versioning, etc.)
  • Pre-signed URL generation (V1)
  • Credentials chain (environment variables, static, custom providers)

Modules§

client
config
error
Error types for the Alibaba Cloud OSS SDK.
http
operations
signer
Signer trait and factory for request signing.
types
util