rusoto

AWS SDK for Rust

  • 所有者: rusoto/rusoto
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Rusoto

Rusoto is an AWS SDK for Rust


You may be looking for:

Installation

Rusoto is available on crates.io.
To use Rusoto in your Rust program built with Cargo, add it as a dependency and rusoto_$SERVICENAME for any supported AWS service you want to use.

For example, to include only S3 and SQS:

[dependencies]
rusoto_core = "0.43.0-beta.1"
rusoto_sqs = "0.43.0-beta.1"
rusoto_s3 = "0.43.0-beta.1"

Migration notes

Breaking changes and migration details are documented at https://rusoto.org/migrations.html.

Note that from v0.43.0 onward, Rusoto uses Rust's std::future::Future, and the Tokio 0.2 ecosystem.

Usage

Rusoto has a crate for each AWS service, containing Rust types for that service's API.
A full list of these services can be found here.
All other public types are reexported to the crate root.
Consult the rustdoc documentation for full details by running cargo doc or visiting the online documentation for the latest crates.io release.

A simple example of using Rusoto's DynamoDB API to list the names of all tables in a database:

use rusoto_core::Region;
use rusoto_dynamodb::{DynamoDb, DynamoDbClient, ListTablesInput};

#[tokio::main]
async fn main() {
    let client = DynamoDbClient::new(Region::UsEast1);
    let list_tables_input: ListTablesInput = Default::default();

    match client.list_tables(list_tables_input).await {
        Ok(output) => match output.table_names {
            Some(table_name_list) => {
                println!("Tables in database:");

                for table_name in table_name_list {
                    println!("{}", table_name);
                }
            }
            None => println!("No tables in database!"),
        },
        Err(error) => {
            println!("Error: {:?}", error);
        }
    }
}

Credentials

For more information on Rusoto's use of AWS credentials such as priority and refreshing, see AWS Credentials.

Semantic versioning

Rusoto complies with semantic versioning 2.0.0.
Until reaching 1.0.0 the API is to be considered unstable.
See Cargo.toml or rusoto on crates.io for current version.

Releases

Information on release schedules and procedures are in RELEASING.

Contributing

Discussions take place on the Rusoto Discord channel.

See CONTRIBUTING for more information.

Supported OSs, Rust versions and non-AWS projects

Linux, OSX and Windows are supported and tested via Azure Pipelines and Appveyor.

Rust stable, beta and nightly are supported.

Rusoto's primary aim is to be used with AWS. Other projects that provide AWS-like APIs, such as Ceph, Minio, Yandex Object Storage, etc... are not a focus at this time. PRs to fix issues with Rusoto and AWS-like APIs are welcome but generally won't be created by Rusoto maintainers.

License

Rusoto is distributed under the terms of the MIT license.

See LICENSE for details.

主要指標

概覽
名稱與所有者rusoto/rusoto
主編程語言Rust
編程語言Rust (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2015-07-15 00:22:17
推送於2023-12-11 09:58:15
最后一次提交2022-04-24 19:34:29
發布數114
最新版本名稱signature-v0.48.0 (發布於 2022-04-24 22:10:09)
第一版名稱v0.1.1 (發布於 )
用户参与
星數2.7k
關注者數33
派生數447
提交數3.2k
已啟用問題?
問題數913
打開的問題數224
拉請求數916
打開的拉請求數36
關閉的拉請求數150
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?