Skip to content

Commit 1bbc4d6

Browse files
authored
Updated README.md and Guide.md (#198)
* Updated README.md and Guide.md * Fix typo
1 parent ce01df4 commit 1bbc4d6

File tree

2 files changed

+45
-38
lines changed

2 files changed

+45
-38
lines changed

Guide.md

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ The SDK currently requires a minimum of Rust 1.52.1, and is not guaranteed to bu
2929
### Using packages
3030

3131
To access an Amazon or AWS service using the AWS SDK for Rust you must specify the service’s crate in your **Cargo.toml** file.
32-
For example, to access Amazon Simple Storage Service (Amazon S3) APIs using the v1.0 version of the Rust SDK, you must include the following entry in the `dependencies `section:
32+
For example, to access Amazon Simple Storage Service (Amazon S3) APIs using the vN.n version of the Rust SDK, you must include the following entry in the `dependencies `section:
3333

3434
```
35-
s3 = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v1.0", package = "aws-sdk-s3" }
35+
aws-sdk-s3 = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "vN.n", package = "aws-sdk-s3" }
3636
```
3737

3838
## Using the SDK
@@ -78,36 +78,38 @@ The following example creates a client for Amazon S3:
7878
let client = s3::Client::from_env();
7979
```
8080

81+
The code examples typically construct a client from a command-line argument, the environment, or a specific AWS Region.
82+
8183
## API reference
8284

8385
You can find the API reference for the AWS SDK for Rust at [https://awslabs.github.io/aws-sdk-rust/](https://awslabs.github.io/aws-sdk-rust/).
8486

8587
## Code examples
8688

87-
The AWS SDK for Rust examples can help you write your own Rust applications that use Amazon Web Services. The examples assume you have already set up and configured the SDK (that is, you have imported all required packages and set your credentials and region).
89+
The AWS SDK for Rust examples can help you write your own Rust applications that use Amazon Web Services. To use the examples, you must have already set up and configured the SDK, as described in the **Getting Started** section at the beginning of this document.
8890

89-
You can find the source code for these examples and others in the [sdk/examples](sdk/examples) section of this repository. To propose a new code example, create an issue and describe what you want the cod example to do.
91+
You can find the source code for these examples and others in the [sdk/examples](sdk/examples) section of this repository. To propose a new code example, create an issue and describe what you want the code example to do.
9092
The **sdk/examples** section contains code examples for the following services:
9193

92-
[AWS Batch](sdk/examples/batch)
93-
[AWS CloudFormation](sdk/examples/cloudformation)
94-
[Amazon DynamoDB](sdk/examples/dynamodb)
95-
[Amazon EC2](sdk/examples/ec2)
96-
[Amazon Kinesis](sdk/examples/kinesis)
97-
[AWS KMS](sdk/examples/kms)
98-
[AWS Lambda](sdk/examples/lambda)
99-
[AWS Elemental MediaLive](sdk/examples/medialive)
100-
[AWS Elemental MediaPackage](sdk/examples/mediapackage)
101-
[Amazon Polly](sdk/examples/polly)
102-
[Amazon QLDB](sdk/examples/qldb)
103-
[Amazon RDS](sdk/examples/rds)
104-
[Amazon RDS Data](sdk/examples/rdsdata)
105-
[Amazon Route 53](sdk/examples/route53)
106-
[Amazon S3](sdk/examples/s3)
107-
[Amazon SageMaker](sdk/examples/sagemaker)
108-
[AWS Secrets Manager](sdk/examples/secretsmanager)
109-
[Amazon SES](sdk/examples/ses)
110-
[Amazon SNS](sdk/examples/sns)
111-
[Amazon SQS](sdk/examples/sqs)
112-
[AWS Systems Manager](sdk/examples/ssm)
113-
[AWS STS](sdk/examples/sts)
94+
- [AWS Batch](sdk/examples/batch)
95+
- [AWS CloudFormation](sdk/examples/cloudformation)
96+
- [Amazon DynamoDB](sdk/examples/dynamodb)
97+
- [Amazon EC2](sdk/examples/ec2)
98+
- [Amazon Kinesis](sdk/examples/kinesis)
99+
- [AWS KMS](sdk/examples/kms)
100+
- [AWS Lambda](sdk/examples/lambda)
101+
- [AWS Elemental MediaLive](sdk/examples/medialive)
102+
- [AWS Elemental MediaPackage](sdk/examples/mediapackage)
103+
- [Amazon Polly](sdk/examples/polly)
104+
- [Amazon QLDB](sdk/examples/qldb)
105+
- [Amazon RDS](sdk/examples/rds)
106+
- [Amazon RDS Data](sdk/examples/rdsdata)
107+
- [Amazon Route 53](sdk/examples/route53)
108+
- [Amazon S3](sdk/examples/s3)
109+
- [Amazon SageMaker](sdk/examples/sagemaker)
110+
- [AWS Secrets Manager](sdk/examples/secretsmanager)
111+
- [Amazon SES](sdk/examples/ses)
112+
- [Amazon SNS](sdk/examples/sns)
113+
- [Amazon SQS](sdk/examples/sqs)
114+
- [AWS Systems Manager](sdk/examples/ssm)
115+
- [AWS STS](sdk/examples/sts)

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# The AWS SDK for Rust [![Docs](https://img.shields.io/badge/docs-v0.0.15--alpha-blue)](https://awslabs.github.io/aws-sdk-rust/) ![MSRV](https://img.shields.io/badge/msrv-1.52.1-red)
22

3-
This repo contains the new AWS SDK for Rust and its [public roadmap](https://github.com/awslabs/aws-sdk-rust/projects/1)
3+
This repo contains the new AWS SDK for Rust (the SDK) and its [public roadmap](https://github.com/awslabs/aws-sdk-rust/projects/1)
44

55
**Please Note: The SDK is currently released as an alpha and is intended strictly for feedback purposes only. Do not use this SDK for production workloads.**
66

7-
This SDK for Rust is code generated from [Smithy models](https://awslabs.github.io/smithy/) that represent each AWS service. Code used to generate the SDK can be found in [smithy-rs](https://github.com/awslabs/smithy-rs).
7+
The SDK is code generated from [Smithy models](https://awslabs.github.io/smithy/) that represent each AWS service. The code used to generate the SDK can be found in [smithy-rs](https://github.com/awslabs/smithy-rs).
88

99
## Getting Started with the SDK
1010

11-
The new AWS SDK for Rust is built with one crate per AWS service. [Tokio](https://crates.io/crates/tokio) must also be added as a dependency within your Rust project to execute asynchronous code. During the alpha, the SDK will not be pushed to crates.io and must be used via a Git dependency.
11+
The SDK provides one crate per AWS service. You must add [Tokio](https://crates.io/crates/tokio) as a dependency within your Rust project to execute asynchronous code. We will not push the SDK to **crates.io** during Alpha; you must use it via a Git dependency.
1212

1313
1. Create a new Rust project: `cargo new sdk-example`
14-
2. Within your Cargo.toml file, add dependencies for DynamoDB and Tokio:
14+
2. Add dependencies to DynamoDB and Tokio to your **Cargo.toml** file:
1515

1616
```toml
1717
[dependencies]
18-
dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v0.0.15-alpha", package = "aws-sdk-dynamodb" }
18+
aws-sdk-dynamodb = { git = "https://github.com/awslabs/aws-sdk-rust", tag = "v0.0.15-alpha", package = "aws-sdk-dynamodb" }
1919
tokio = { version = "1", features = ["full"] }
2020
```
2121
3. Provide your AWS credentials as environment variables:
22-
> **Note:** The alpha SDK only supports environment variable credential providers at this time.
22+
> **Note:** The alpha version of the SDK only supports credentials through environment variables at this time.
2323
2424
**Linux/MacOS**
2525
```bash
@@ -37,10 +37,11 @@ set AWS_REGION=... # eg. us-east-1
3737
4. Make a request using DynamoDB
3838

3939
```rust
40+
use aws_sdk_dynamodb::{Client, Error};
4041

4142
#[tokio::main]
42-
async fn main() -> Result<(), dynamodb::Error> {
43-
let client = dynamodb::Client::from_env();
43+
async fn main() -> Result<(), Error> {
44+
let client = Client::from_env();
4445
let req = client.list_tables().limit(10);
4546
let resp = req.send().await?;
4647
println!("Current DynamoDB tables: {:?}", resp.table_names);
@@ -50,7 +51,11 @@ async fn main() -> Result<(), dynamodb::Error> {
5051

5152
### Prerequisites
5253

53-
In order to use the SDK for Rust, you must already have Rust and Cargo installed. If you don't, these instructions will show you how to install Rust and Cargo: https://doc.rust-lang.org/book/ch01-01-installation.html
54+
In order to use the SDK, you must already have Rust and Cargo installed. If you don't, [these instructions](https://doc.rust-lang.org/book/ch01-01-installation.html) describe how to install Rust and Cargo.
55+
56+
## Using the SDK
57+
58+
Until the SDK is released, we will be adding information about using the SDK to the [Guide](https://github.com/awslabs/aws-sdk-rust/guide.md). Feel free to suggest additional sections for the guide by opening an issue and describing what you are trying to do.
5459

5560
## Getting Help
5661

@@ -63,17 +68,17 @@ In order to use the SDK for Rust, you must already have Rust and Cargo installed
6368

6469
### Feedback
6570

66-
The alpha SDK uses **GitHub Issues** to track feature requests and issues with the SDK. In addition, we use **GitHub Projects** to provide users with a high level view of our roadmap and the features we're actively working on.
71+
The SDK uses **GitHub Issues** to track feature requests and issues with the SDK. In addition, we use **GitHub Projects** to provide users with a high level view of our roadmap and the features we're actively working on.
6772

6873
You can provide feedback or report a bug by submitting a **GitHub issue**. This is the preferred mechanism to give feedback so that other users can engage in the conversation, +1 issues, etc. Issues you open will be evaluated for our roadmap in the Developer Preview launch.
6974

7075
### Contributing
7176

72-
If you are interested in contributing to the new AWS SDK for Rust, please take a look at [CONTRIBUTING](CONTRIBUTING.md)
77+
If you are interested in contributing to the SDK, please take a look at [CONTRIBUTING](CONTRIBUTING.md)
7378

7479
## AWS Services Supported
7580

76-
This alpha SDK currently does not provide support for every AWS service. You can see all the services currently supported on [AWS_SERVICES_SUPPORTED](AWS_SERVICES_SUPPORTED.md)
81+
The SDK currently does not provide support for every AWS service. You can see all the services currently supported on [AWS_SERVICES_SUPPORTED](AWS_SERVICES_SUPPORTED.md)
7782

7883
## Supported Rust Versions (MSRV)
7984

0 commit comments

Comments
 (0)