6. rusotoとaws-sdk-rustの比較
#[tokio::main]
async fn main() -> Result<(), rusoto_core::RusotoError> {
let client = rusoto_dynamodb::DynamoDbClient::new(rusoto_core::Region::UsEast1);
let req = rusoto_dynamodb::ListTablesInput {
limit: Some(10),
..Default::default()
};
let resp = client.list_tables(req).await?;
Ok(())
}
7. rusotoとaws-sdk-rustの比較
#[tokio::main]
async fn main() -> Result<(), aws_sdk_dynamodb::Error> {
let client = aws_sdk_dynamodb::Client::from_env();
let req = client.list_tables().limit(10);
let resp = req.send().await?;
Ok(())
}
8. 参考
Matthew Mayer. Farewell to Rusoto.
https://matthewkmayer.github.io/blag/public/post/farewell-rusoto
iliana etaoin. The std::future::Future of Rusoto.
https://linuxwit.ch/blog/2020/02/the-future-of-rusoto/
iliana etaoin. A New AWS SDK for Rust - Alpha Launch.
https://aws.amazon.com/jp/blogs/developer/a-new-aws-sdk-for-rust-alpha-launch/