Go to file
Ian Botsford 155d24aaf8
Fix a small typo in tenets (#856)
2021-11-12 00:27:23 +00:00
.cargo Include SDK example/test projects in CI and centralize Cargo target directory (#636) 2021-08-09 12:25:40 -07:00
.github Update MSRV to 1.54.0 (#844) 2021-11-10 12:51:31 +00:00
.pre-commit-hooks Add pre-commit hook to fix code gen block quote indentation (#825) 2021-11-02 19:02:57 +00:00
aws Relegate `chrono` to an optional feature in a new conversion crate (#849) 2021-11-11 16:01:30 -08:00
codegen Relegate `chrono` to an optional feature in a new conversion crate (#849) 2021-11-11 16:01:30 -08:00
codegen-server Relegate `chrono` to an optional feature in a new conversion crate (#849) 2021-11-11 16:01:30 -08:00
codegen-server-test Use the same protocol dispatcher logic used in the client codegen (#827) 2021-11-03 19:00:06 +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 Relegate `chrono` to an optional feature in a new conversion crate (#849) 2021-11-11 16:01:30 -08:00
tools Generate server diff in CI (#835) 2021-11-04 21:03:30 +00:00
.gitignore Sensitive trait (#229) 2021-02-23 23:09:03 +00:00
.pre-commit-config.yaml Add pre-commit hook to fix code gen block quote indentation (#825) 2021-11-02 19:02:57 +00:00
CHANGELOG.md Relegate `chrono` to an optional feature in a new conversion crate (#849) 2021-11-11 16:01:30 -08:00
CODEOWNERS Add CODEOWNERS file (#848) 2021-11-09 18:54:06 +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 Prepare `v0.28.0-alpha` release (#852) (#854) 2021-11-11 11:53:06 -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