Go to file
Russell Cohen fe0b125dd7
Fix label & query URI encoding (#953)
* Fix label & query URI encoding

https://github.com/awslabs/aws-sdk-rust/issues/331 demonstrated that we were failing to properly encode characters for URI path components and query components in several situation. This:
- Fixes the specific bugs
- Adds proptests (run locally with 16K cases) to verify that this is the complete set.
- Adds an S3-specific protocol test that targets this issue

* Make the test a bit stronger

* Update changelog
2021-12-09 11:57:05 -05:00
.cargo Include SDK example/test projects in CI and centralize Cargo target directory (#636) 2021-08-09 12:25:40 -07:00
.github Reorganize CI and add per-crate CI checks (#942) 2021-12-08 15:43:13 -08:00
.pre-commit-hooks Add license header checker & missing headers (#917) 2021-12-02 13:39:30 +00:00
aws Fix label & query URI encoding (#953) 2021-12-09 11:57:05 -05:00
buildSrc Improve generated docs for crates and clients (#898) 2021-11-26 21:28:58 +00:00
codegen remove: default features from runtime crates (#935) 2021-12-08 16:57:12 +00:00
codegen-server Fix errors discovered with RestJson protocol tests (#926) 2021-12-07 13:47:19 +00:00
codegen-server-test Fix errors discovered with RestJson protocol tests (#926) 2021-12-07 13:47:19 +00:00
codegen-test Upgrade to Smithy 1.12 (#812) 2021-10-26 21:19:52 +00:00
design Fix a small typo in tenets (#856) 2021-11-12 00:27:23 +00:00
gradle Add more docs to codegen (#776) 2021-10-15 16:49:27 -07:00
rust-runtime Fix label & query URI encoding (#953) 2021-12-09 11:57:05 -05:00
tools Reorganize CI and add per-crate CI checks (#942) 2021-12-08 15:43:13 -08:00
.gitignore Sensitive trait (#229) 2021-02-23 23:09:03 +00:00
.pre-commit-config.yaml Add license header checker & missing headers (#917) 2021-12-02 13:39:30 +00:00
CHANGELOG.md Changelog Automation (#922) 2021-12-03 11:47:52 -08:00
CHANGELOG.next.toml Fix label & query URI encoding (#953) 2021-12-09 11:57:05 -05:00
CODEOWNERS Implement FromRequest / ToResponse traits for inputs/outputs/errors. (#839) 2021-11-12 16:27:36 +00:00
CODE_OF_CONDUCT.md Initial commit 2020-10-28 06:37:45 -07:00
CONTRIBUTING.md master -> main in Contributing.md (#300) 2021-04-14 14:46:50 +00:00
LICENSE Initial commit 2020-10-28 06:37:45 -07:00
NOTICE Initial commit 2020-10-28 06:37:45 -07:00
README.md Update MSRV to 1.54.0 (#844) 2021-11-10 12:51:31 +00:00
build.gradle.kts Remove jcenter / bintray from gradle (#651) 2021-08-16 22:02:04 +00:00
gradle.properties Version bump to fix crates.io conflict with aws-sigv4 (#919) 2021-12-01 22:06:46 -08:00
gradlew Aws config connector timeouts (#740) 2021-10-06 13:35:24 -04:00
gradlew.bat Add gradle files 2020-10-28 11:01:13 -04:00
settings.gradle.kts [POC] Basic server type serde for RestJson1 (#737) 2021-10-05 13:05:00 -04:00
test.sh Credentials Provider Initial Implementation (#179) 2021-01-28 10:39:05 -05:00

README.md

Smithy Rust status

Smithy code generators for Rust

The nightly SDK build can be found under Actions -> CI (take latest run) -> Artifacts

Design documentation (WIP)

All internal and external interfaces are considered unstable and subject to change without notice.

Setup

  1. ./gradlew will setup gradle for you. JDK 11 is required.
  2. Running tests requires a working Rust installation. See Rust docs for installation instructions on your platform. Minimum supported Rust version is the latest released Rust version, although older versions may work.

Generate an AWS SDK

The generated SDK will be placed in aws/sdk/build/aws-sdk.

./gradlew :aws:sdk:assemble # Generate an SDK. Do not attempt to compile / run tests
./gradlew :aws:sdk:test # Run all the tests
./gradlew :aws:sdk:cargoCheck # only validate that it compiles

Run tests

./test.sh

This will run all the unit tests, codegen example models & Dynamo DB, validate that the generated code compiles, and run any tests targeting the generated code.

Development

For development, pre-commit hooks may be useful. Setup:

brew install pre-commit # (or appropriate for your platform: https://pre-commit.com/)
pre-commit install

Project Layout

  • aws: AWS specific codegen & Rust code (signing, endpoints, customizations, etc.) Common commands:
    • ./gradlew :aws:sdk:assemble: Generate (but do not test / compile etc.) a fresh SDK into sdk/build/aws-sdk
    • ./gradlew :aws:sdk:test: Generate & run all tests for a fresh SDK
    • ./gradlew :aws:sdk:{cargoCheck, cargoTest, cargoDocs, cargoClippy}: Generate & run specified cargo command.
  • codegen: Whitelabel Smithy client code generation
  • codegen-test: Smithy protocol test generation & integration tests for Smithy client whitelabel code
  • design: Design documentation. See the design/README.md for details about building / viewing.
  • codegen-server: Whitelabel Smithy server code generation
  • codegen-server-test: Smithy protocol test generation & integration tests for Smithy server whitelabel code