Commit Graph

175 Commits

Author SHA1 Message Date
Russell Cohen b23ccb7bf8
Fix toolchain setting in CI (#532)
* Fix toolchain setting in CI

Due to a misunderstanding of the actions-rs toolchain action, we were installing a toolchain but _not actually using it_!

* Update ci.yaml

set toolchain components explicitly

* Fixes to get code compiling on 1.51 again

* Update ci.yaml

Add rustdoc

* Update ci.yaml

switch to 1.52.1 for rustdoc links

* Update JSON fuzz target

* Fix missed refactoring in ci.yaml
2021-06-23 17:27:31 +00:00
John DiSanti 1fd6e978ae
Add benchmark for DynamoDB serialization/deserialization (#507)
* Add benchmark for DynamoDB serialization/deserialization

* CR feedback

* Remove async from benches and add benches to CI

* Update cargo check command in CI
2021-06-17 16:16:05 -07:00
Russell Cohen ae11859b2d
fixes regression in rustdoc ci (#469)
When ci.yaml was updated, the warning flags for `cargo doc` were not set properly which allowed documentation warnings to be present in the final build.
2021-06-07 18:37:23 -04:00
Russell Cohen 513a5a5009
Update ci.yaml (#446)
* Update ci.yaml

Split SDK CI jobs for better parallelism and reporting

* Update ci.yaml

* restructure gradle build to avoid skipped steps

* take 2

* again?

* Update ci.yaml

run test, docs, & clippy

* Update ci.yaml

Fix job name typo
2021-06-01 21:02:28 +00:00
Russell Cohen 99693db02b
Update ci.yaml (#365)
* Update ci.yaml

Change CI to `pull_request` so that forks will also build PRs

* Update ci.yaml

all tags, pull requests
2021-05-11 18:07:55 -04:00
Russell Cohen d4bf8e6e2a
Update rustfmt hook to run on all files (#348)
* Update rustfmt hook to run on all files

* Add missing --check
2021-04-30 17:33:20 -04:00
Shing Lyu 521a201e6a
docs: update JDK version requirement (#329)
* docs: update JDK version requirement

* fix: stick with JDK 11

Co-authored-by: Shing Lyu <shinglyu@amazon.nl>
Co-authored-by: Russell Cohen <rcoh@amazon.com>
2021-04-26 09:30:12 +00:00
Russell Cohen e7a0f1fa60
Update Rust version (#276)
* Update Rust version

* wip

* Refactor handling of clippy lints

* Delete old version of clippy lints

* Delete unused code
2021-04-19 14:21:42 -04:00
Russell Cohen 60841ef279
Rename the 'fluent' feature to `client` and rename module (#285)
* Rename the 'fluent' dynamodb feature to client

* Update examples

* Don't upload a broken SDK
2021-04-02 11:13:17 -04:00
Russell Cohen 6b605892c7
Add ApiGateway accept header customization (#287)
* Add ApiGateway accept header customization

* Update Java version in CI to match local

* Fix bug in dependency relative paths

* Add path validation
2021-04-01 17:16:13 +00:00
Russell Cohen 8f844c579c
Add Retry support (#232)
* Add Retry support

* Fixup some broken tests

* Refactor, add docs, rename retry strategy

* Some more renames, some more docs
2021-03-02 22:32:55 +00:00
Russell Cohen 27fb78ac63
Fix a few clippy issues & add clippy to CI (#231) 2021-02-24 20:22:32 +00:00
Russell Cohen 36f67c5f40
Add AwsEndpointResolver when constructing operations (#198)
* Add AwsEndpointResolver when constructing operations

This commit adds a customization for AWS-services to allow specifying an EndpointResolver, with a default fallback provided.

* Enforce no doc warnings, fix bug, add cargoCheck to CI
2021-02-15 17:35:51 -05:00
Russell Cohen e499bbd991
Bump Rust version (#199) 2021-02-15 12:56:02 -05:00
Russell Cohen 88ca4fedd8
[chore] Move AWS codegeneration into its own folder (#166)
This allows us to deliniate AWS runtime vs. Smithy runtime and will make a future separation easier
2021-01-19 15:23:07 -05:00
Russell Cohen c819930d0f
[chore] Upgrade to Rust 1.49.0 (#99) 2020-12-31 16:09:58 -05:00
Russell Cohen e1b881b6d8
Remove target from actions output (#98)
* Remove target from actions output

* Better artifact name

* take two for the correct artifact name

* fixup step names

* Take 3 on artifact name
2020-12-31 15:58:58 -05:00
Russell Cohen 5c0bfa4f1b
Generate Crate Documentation (#93)
* Generate Crate Documentation

This commit utilizes the documentation trait attached to the relevant service shape to generate crate-level documentation for services.

* Test fixes

* Don't upload integration test docs
2020-12-30 09:59:20 -05:00
Russell Cohen 883fc05795
Generate an AWS-SDK shaped artifact (#92)
* Generate an AWS-SDK shaped artifact

* Fix gradle dependency tree

* Rename artifact to 'sdk'

* Load SdkId from the service shape
2020-12-30 09:48:51 -05:00
Russell Cohen be16c2f225
Generate documentation for structures (#47)
* Generate documentation for structures

The first of many commits to generate docs. This is a first pass for structures, we still need to document enums & unions. Some serious design also needs to occur to figure out the best practice for turning the Smithy documentation into nice Rust documentation.

* Bump Java version to 9

* Remove exclusion of `target`

* Don't build docs for deps

* Update to use getMemberTrait
2020-11-24 11:26:11 -05:00
Russell Cohen e171459643
Update to Rust 1.48.0 (#46) 2020-11-20 15:45:32 -05:00
Russell Cohen 16e513bd5d
Pin Rust version & fix lint error (#41)
Every 6 weeks, a new version of Rust and Clippy comes out—we were upgrading implicitly which meant that our clippy (lint) checks started failing if they added new lints. This makes the Rust version explicit so we can upgrade and fix lints on our schedule.
2020-11-19 13:58:38 -05:00
Russell Cohen 86dc5db504
Add pre-commit hooks (#17)
* Setup pre-commit

* Run precommit hook across all files

* Update README.md
2020-11-04 22:09:00 -05:00
Russell Cohen 44720f4dc0
Productionize Integration Test Machinery (#15)
* Productionize Integration Test Machinery

smithy-build.json is now dynamically generated along with a Cargo.toml to facilitate easy adding of new integration tests.

* We don't need REPO_ROOT anymore
2020-11-03 18:44:38 -05:00
Russell Cohen 9983057a4b
Add inital CI workflow (#12)
* Add inital CI workflow

* Run unit tests

* Run integration tests & ktlint

* Split job, set REPO_ROOT

* Update to satisfy new cargo clippy

* Upload an artifact

* Run runtime tests in CI

* Add missing test.sh

* Make script path indepdendent

* Run clippy on Rust runtime

* move artifact upload to the correct job

* Don't upload target

* Fix Rust code formatting

* Fix kotlin codestyle

* Fix merge issue
2020-11-02 15:30:04 -05:00