diff --git a/.github/workflows/ci-merge-queue.yml b/.github/workflows/ci-merge-queue.yml index cfad5aab2fa57a5138276aaab44710059f561392..53a754d5890f3d3edd53f5dd3a48ab5d83b91a2c 100644 --- a/.github/workflows/ci-merge-queue.yml +++ b/.github/workflows/ci-merge-queue.yml @@ -84,7 +84,7 @@ jobs: needs: - save-docker-login-token - acquire-base-image - if: ${{ github.event.pull_request.head.repo.full_name == 'awslabs/smithy-rs' || toJSON(github.event.merge_group) != '{}' }} + if: ${{ github.event.pull_request.head.repo.full_name == 'smithy-lang/smithy-rs' || toJSON(github.event.merge_group) != '{}' }} uses: ./.github/workflows/ci.yml with: run_sdk_examples: true diff --git a/.github/workflows/ci-pr-forks.yml b/.github/workflows/ci-pr-forks.yml index ad1d291f9a1d5ec54a3771aa448236cfc751a82e..719f1c9eabc96b568820d21301e14e03fbbae81f 100644 --- a/.github/workflows/ci-pr-forks.yml +++ b/.github/workflows/ci-pr-forks.yml @@ -18,7 +18,7 @@ jobs: # it uploads the image as a build artifact for other jobs to download and use. acquire-base-image: name: Acquire Base Image - if: ${{ github.event.pull_request.head.repo.full_name != 'awslabs/smithy-rs' }} + if: ${{ github.event.pull_request.head.repo.full_name != 'smithy-lang/smithy-rs' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -39,7 +39,7 @@ jobs: # Run shared CI after the Docker build image has either been rebuilt or found in ECR ci: needs: acquire-base-image - if: ${{ github.event.pull_request.head.repo.full_name != 'awslabs/smithy-rs' }} + if: ${{ github.event.pull_request.head.repo.full_name != 'smithy-lang/smithy-rs' }} uses: ./.github/workflows/ci.yml with: run_sdk_examples: true diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 1b4400189908d5ca68d97065bcdecc2de444f458..6e7b00603fdcf3eca4a9c25e2827a2d600727bc1 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -21,7 +21,7 @@ jobs: # The login password is encrypted with the repo secret DOCKER_LOGIN_TOKEN_PASSPHRASE save-docker-login-token: name: Save a docker login token - if: ${{ github.event.pull_request.head.repo.full_name == 'awslabs/smithy-rs' }} + if: ${{ github.event.pull_request.head.repo.full_name == 'smithy-lang/smithy-rs' }} outputs: docker-login-password: ${{ steps.set-token.outputs.docker-login-password }} permissions: @@ -51,7 +51,7 @@ jobs: acquire-base-image: name: Acquire Base Image needs: save-docker-login-token - if: ${{ github.event.pull_request.head.repo.full_name == 'awslabs/smithy-rs' }} + if: ${{ github.event.pull_request.head.repo.full_name == 'smithy-lang/smithy-rs' }} runs-on: smithy_ubuntu-latest_8-core env: ENCRYPTED_DOCKER_PASSWORD: ${{ needs.save-docker-login-token.outputs.docker-login-password }} @@ -86,7 +86,7 @@ jobs: needs: - save-docker-login-token - acquire-base-image - if: ${{ github.event.pull_request.head.repo.full_name == 'awslabs/smithy-rs' }} + if: ${{ github.event.pull_request.head.repo.full_name == 'smithy-lang/smithy-rs' }} uses: ./.github/workflows/ci.yml with: run_sdk_examples: true @@ -97,7 +97,7 @@ jobs: # The PR bot requires a Docker build image, so make it depend on the `acquire-base-image` job. pr_bot: name: PR Bot - if: ${{ github.event.pull_request.head.repo.full_name == 'awslabs/smithy-rs' }} + if: ${{ github.event.pull_request.head.repo.full_name == 'smithy-lang/smithy-rs' }} needs: acquire-base-image uses: ./.github/workflows/pull-request-bot.yml with: diff --git a/.github/workflows/update-sdk-next.yml b/.github/workflows/update-sdk-next.yml index 01432266695925f0036b62d690d49e403c0bf97b..5de480ab41a17aa7c1b8f458e0158af781c1defa 100644 --- a/.github/workflows/update-sdk-next.yml +++ b/.github/workflows/update-sdk-next.yml @@ -25,7 +25,7 @@ jobs: - name: Check out `smithy-rs` uses: actions/checkout@v3 with: - repository: awslabs/smithy-rs + repository: smithy-lang/smithy-rs ref: ${{ inputs.generate_ref }} path: smithy-rs - name: Check out `aws-sdk-rust` diff --git a/CHANGELOG.md b/CHANGELOG.md index ded725b1e71f67d6d14b3e17fea99390467eb646..e113222c6d585e99053e32015290e9622016e7ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,25 +2,25 @@ November 1st, 2023 ================== **New this release:** -- (client, [smithy-rs#3112](https://github.com/awslabs/smithy-rs/issues/3112), [smithy-rs#3116](https://github.com/awslabs/smithy-rs/issues/3116)) Upgrade `ring` to 0.17.5. +- (client, [smithy-rs#3112](https://github.com/smithy-lang/smithy-rs/issues/3112), [smithy-rs#3116](https://github.com/smithy-lang/smithy-rs/issues/3116)) Upgrade `ring` to 0.17.5. October 31st, 2023 ================== **Breaking Changes:** -- :warning::tada: (client, [smithy-rs#2417](https://github.com/awslabs/smithy-rs/issues/2417), [smithy-rs#3018](https://github.com/awslabs/smithy-rs/issues/3018)) Retry classifiers are now configurable at the service and operation levels. Users may also define their own custom retry classifiers. - - For more information, see the [guide](https://github.com/awslabs/smithy-rs/discussions/3050). -- :warning: (client, [smithy-rs#3011](https://github.com/awslabs/smithy-rs/issues/3011)) HTTP connector configuration has changed significantly. See the [upgrade guidance](https://github.com/awslabs/smithy-rs/discussions/3022) for details. -- :warning: (client, [smithy-rs#3038](https://github.com/awslabs/smithy-rs/issues/3038)) The `enableNewSmithyRuntime: middleware` opt-out flag in smithy-build.json has been removed and no longer opts out of the client orchestrator implementation. Middleware is no longer supported. If you haven't already upgraded to the orchestrator, see [the guide](https://github.com/awslabs/smithy-rs/discussions/2887). -- :warning: (client, [smithy-rs#2909](https://github.com/awslabs/smithy-rs/issues/2909)) It's now possible to nest runtime components with the `RuntimePlugin` trait. A `current_components` argument was added to the `runtime_components` method so that components configured from previous runtime plugins can be referenced in the current runtime plugin. Ordering of runtime plugins was also introduced via a new `RuntimePlugin::order` method. -- :warning: (all, [smithy-rs#2948](https://github.com/awslabs/smithy-rs/issues/2948)) Update MSRV to Rust 1.70.0 -- :warning: (client, [smithy-rs#2970](https://github.com/awslabs/smithy-rs/issues/2970)) `aws_smithy_client::hyper_ext::Adapter` was moved/renamed to `aws_smithy_runtime::client::connectors::hyper_connector::HyperConnector`. -- :warning: (client, [smithy-rs#2970](https://github.com/awslabs/smithy-rs/issues/2970)) Test connectors moved into `aws_smithy_runtime::client::connectors::test_util` behind the `test-util` feature. -- :warning: (client, [smithy-rs#2970](https://github.com/awslabs/smithy-rs/issues/2970)) DVR's RecordingConnection and ReplayingConnection were renamed to RecordingConnector and ReplayingConnector respectively. -- :warning: (client, [smithy-rs#2970](https://github.com/awslabs/smithy-rs/issues/2970)) TestConnection was renamed to EventConnector. -- :warning: (all, [smithy-rs#2973](https://github.com/awslabs/smithy-rs/issues/2973)) Remove `once_cell` from public API. -- :warning: (all, [smithy-rs#2995](https://github.com/awslabs/smithy-rs/issues/2995)) Structure members with the type `Option>` now produce an accessor with the type `&[T]` instead of `Option<&[T]>`. This is enabled by default for clients and can be disabled by updating your smithy-build.json with the following setting: +- :warning::tada: (client, [smithy-rs#2417](https://github.com/smithy-lang/smithy-rs/issues/2417), [smithy-rs#3018](https://github.com/smithy-lang/smithy-rs/issues/3018)) Retry classifiers are now configurable at the service and operation levels. Users may also define their own custom retry classifiers. + + For more information, see the [guide](https://github.com/smithy-lang/smithy-rs/discussions/3050). +- :warning: (client, [smithy-rs#3011](https://github.com/smithy-lang/smithy-rs/issues/3011)) HTTP connector configuration has changed significantly. See the [upgrade guidance](https://github.com/smithy-lang/smithy-rs/discussions/3022) for details. +- :warning: (client, [smithy-rs#3038](https://github.com/smithy-lang/smithy-rs/issues/3038)) The `enableNewSmithyRuntime: middleware` opt-out flag in smithy-build.json has been removed and no longer opts out of the client orchestrator implementation. Middleware is no longer supported. If you haven't already upgraded to the orchestrator, see [the guide](https://github.com/smithy-lang/smithy-rs/discussions/2887). +- :warning: (client, [smithy-rs#2909](https://github.com/smithy-lang/smithy-rs/issues/2909)) It's now possible to nest runtime components with the `RuntimePlugin` trait. A `current_components` argument was added to the `runtime_components` method so that components configured from previous runtime plugins can be referenced in the current runtime plugin. Ordering of runtime plugins was also introduced via a new `RuntimePlugin::order` method. +- :warning: (all, [smithy-rs#2948](https://github.com/smithy-lang/smithy-rs/issues/2948)) Update MSRV to Rust 1.70.0 +- :warning: (client, [smithy-rs#2970](https://github.com/smithy-lang/smithy-rs/issues/2970)) `aws_smithy_client::hyper_ext::Adapter` was moved/renamed to `aws_smithy_runtime::client::connectors::hyper_connector::HyperConnector`. +- :warning: (client, [smithy-rs#2970](https://github.com/smithy-lang/smithy-rs/issues/2970)) Test connectors moved into `aws_smithy_runtime::client::connectors::test_util` behind the `test-util` feature. +- :warning: (client, [smithy-rs#2970](https://github.com/smithy-lang/smithy-rs/issues/2970)) DVR's RecordingConnection and ReplayingConnection were renamed to RecordingConnector and ReplayingConnector respectively. +- :warning: (client, [smithy-rs#2970](https://github.com/smithy-lang/smithy-rs/issues/2970)) TestConnection was renamed to EventConnector. +- :warning: (all, [smithy-rs#2973](https://github.com/smithy-lang/smithy-rs/issues/2973)) Remove `once_cell` from public API. +- :warning: (all, [smithy-rs#2995](https://github.com/smithy-lang/smithy-rs/issues/2995)) Structure members with the type `Option>` now produce an accessor with the type `&[T]` instead of `Option<&[T]>`. This is enabled by default for clients and can be disabled by updating your smithy-build.json with the following setting: ```json { "codegen": { @@ -29,16 +29,16 @@ October 31st, 2023 } } ``` -- :warning: (client, [smithy-rs#2978](https://github.com/awslabs/smithy-rs/issues/2978)) The `futures_core::stream::Stream` trait has been removed from public API. `FnStream` only supports `next`, `try_next`, `collect`, and `try_collect` methods. [`TryFlatMap::flat_map`](https://docs.rs/aws-smithy-async/latest/aws_smithy_async/future/pagination_stream/struct.TryFlatMap.html#method.flat_map) returns [`PaginationStream`](https://docs.rs/aws-smithy-async/latest/aws_smithy_async/future/pagination_stream/struct.PaginationStream.html), which should be preferred to `FnStream` at an interface level. Other stream operations that were previously available through the trait or its extension traits can be added later in a backward compatible manner. Finally, `fn_stream` has been moved to be a child module of `pagination_stream`. -- :warning: (client, [smithy-rs#2983](https://github.com/awslabs/smithy-rs/issues/2983)) The `futures_core::stream::Stream` trait has been removed from [`ByteStream`](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/byte_stream/struct.ByteStream.html). The methods mentioned in the [doc](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/byte_stream/struct.ByteStream.html#getting-data-out-of-a-bytestream) will continue to be supported. Other stream operations that were previously available through the trait or its extension traits can be added later in a backward compatible manner. -- :warning: (client, [smithy-rs#2997](https://github.com/awslabs/smithy-rs/issues/2997)) `StaticUriEndpointResolver`'s `uri` constructor now takes a `String` instead of a `Uri`. -- :warning: (server, [smithy-rs#3038](https://github.com/awslabs/smithy-rs/issues/3038)) `SdkError` is no longer re-exported in generated server crates. -- :warning: (client, [smithy-rs#3039](https://github.com/awslabs/smithy-rs/issues/3039)) The `customize()` method is now sync and infallible. Remove any `await`s and error handling from it to make things compile again. -- :bug::warning: (all, [smithy-rs#3037](https://github.com/awslabs/smithy-rs/issues/3037), [aws-sdk-rust#756](https://github.com/awslabs/aws-sdk-rust/issues/756)) Our algorithm for converting identifiers to `snake_case` has been updated. This may result in a small change for some identifiers, particularly acronyms ending in `s`, e.g. `ACLs`. -- :warning: (client, [smithy-rs#3055](https://github.com/awslabs/smithy-rs/issues/3055)) The future return types on traits `EndpointResolver` and `IdentityResolver` changed to new-types `EndpointFuture` and `IdentityFuture` respectively. -- :warning: (client, [smithy-rs#3032](https://github.com/awslabs/smithy-rs/issues/3032)) [`EndpointPrefix::new`](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/endpoint/struct.EndpointPrefix.html#method.new) no longer returns `crate::operation::error::BuildError` for an Err variant, instead returns a more specific [`InvalidEndpointError`](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/endpoint/error/struct.InvalidEndpointError.html). -- :warning: (client, [smithy-rs#3061](https://github.com/awslabs/smithy-rs/issues/3061)) Lifetimes have been added to the `EndpointResolver` trait. -- :warning: (client, [smithy-rs#3065](https://github.com/awslabs/smithy-rs/issues/3065)) Several traits have been renamed from noun form to verb form to be more idiomatic: +- :warning: (client, [smithy-rs#2978](https://github.com/smithy-lang/smithy-rs/issues/2978)) The `futures_core::stream::Stream` trait has been removed from public API. `FnStream` only supports `next`, `try_next`, `collect`, and `try_collect` methods. [`TryFlatMap::flat_map`](https://docs.rs/aws-smithy-async/latest/aws_smithy_async/future/pagination_stream/struct.TryFlatMap.html#method.flat_map) returns [`PaginationStream`](https://docs.rs/aws-smithy-async/latest/aws_smithy_async/future/pagination_stream/struct.PaginationStream.html), which should be preferred to `FnStream` at an interface level. Other stream operations that were previously available through the trait or its extension traits can be added later in a backward compatible manner. Finally, `fn_stream` has been moved to be a child module of `pagination_stream`. +- :warning: (client, [smithy-rs#2983](https://github.com/smithy-lang/smithy-rs/issues/2983)) The `futures_core::stream::Stream` trait has been removed from [`ByteStream`](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/byte_stream/struct.ByteStream.html). The methods mentioned in the [doc](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/byte_stream/struct.ByteStream.html#getting-data-out-of-a-bytestream) will continue to be supported. Other stream operations that were previously available through the trait or its extension traits can be added later in a backward compatible manner. +- :warning: (client, [smithy-rs#2997](https://github.com/smithy-lang/smithy-rs/issues/2997)) `StaticUriEndpointResolver`'s `uri` constructor now takes a `String` instead of a `Uri`. +- :warning: (server, [smithy-rs#3038](https://github.com/smithy-lang/smithy-rs/issues/3038)) `SdkError` is no longer re-exported in generated server crates. +- :warning: (client, [smithy-rs#3039](https://github.com/smithy-lang/smithy-rs/issues/3039)) The `customize()` method is now sync and infallible. Remove any `await`s and error handling from it to make things compile again. +- :bug::warning: (all, [smithy-rs#3037](https://github.com/smithy-lang/smithy-rs/issues/3037), [aws-sdk-rust#756](https://github.com/awslabs/aws-sdk-rust/issues/756)) Our algorithm for converting identifiers to `snake_case` has been updated. This may result in a small change for some identifiers, particularly acronyms ending in `s`, e.g. `ACLs`. +- :warning: (client, [smithy-rs#3055](https://github.com/smithy-lang/smithy-rs/issues/3055)) The future return types on traits `EndpointResolver` and `IdentityResolver` changed to new-types `EndpointFuture` and `IdentityFuture` respectively. +- :warning: (client, [smithy-rs#3032](https://github.com/smithy-lang/smithy-rs/issues/3032)) [`EndpointPrefix::new`](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/endpoint/struct.EndpointPrefix.html#method.new) no longer returns `crate::operation::error::BuildError` for an Err variant, instead returns a more specific [`InvalidEndpointError`](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/endpoint/error/struct.InvalidEndpointError.html). +- :warning: (client, [smithy-rs#3061](https://github.com/smithy-lang/smithy-rs/issues/3061)) Lifetimes have been added to the `EndpointResolver` trait. +- :warning: (client, [smithy-rs#3065](https://github.com/smithy-lang/smithy-rs/issues/3065)) Several traits have been renamed from noun form to verb form to be more idiomatic: - `AuthSchemeOptionResolver` -> `ResolveAuthSchemeOptions` - `EndpointResolver` -> `ResolveEndpoint` - `IdentityResolver` -> `ResolveIdentity` @@ -46,52 +46,52 @@ October 31st, 2023 - `RequestSerializer` -> `SerializeRequest` - `ResponseDeserializer` -> `DeserializeResponse` - `Interceptor` -> `Intercept` -- :warning: (client, [smithy-rs#3059](https://github.com/awslabs/smithy-rs/issues/3059)) **This change has [detailed upgrade guidance](https://github.com/awslabs/smithy-rs/discussions/3067)**. A summary is below.

The `HttpRequest` type alias now points to `aws-smithy-runtime-api::client::http::Request`. This is a first-party request type to allow us to gracefully support `http = 1.0` when it arrives. Most customer code using this method should be unaffected. `TryFrom`/`TryInto` conversions are provided for `http = 0.2.*`. -- :warning: (client, [smithy-rs#2917](https://github.com/awslabs/smithy-rs/issues/2917)) `RuntimeComponents` have been added as an argument to the `IdentityResolver::resolve_identity` trait function. -- :warning: (client, [smithy-rs#3072](https://github.com/awslabs/smithy-rs/issues/3072)) The `idempotency_provider` field has been removed from config as a public field. If you need access to this field, it is still available from the context of an interceptor. -- :warning: (client, [smithy-rs#3078](https://github.com/awslabs/smithy-rs/issues/3078)) The `config::Builder::endpoint_resolver` method no longer accepts `&'static str`. Use `config::Builder::endpoint_url` instead. -- :warning: (client, [smithy-rs#3043](https://github.com/awslabs/smithy-rs/issues/3043), [smithy-rs#3078](https://github.com/awslabs/smithy-rs/issues/3078)) **This change has [detailed upgrade guidance](https://github.com/awslabs/smithy-rs/discussions/3079).**

The endpoint interfaces from `aws-smithy-http` have been removed. Service-specific endpoint resolver traits have been added. -- :warning: (all, [smithy-rs#3054](https://github.com/awslabs/smithy-rs/issues/3054), [smithy-rs#3070](https://github.com/awslabs/smithy-rs/issues/3070)) `aws_smithy_http::operation::error::{BuildError, SerializationError}` have been moved to `aws_smithy_types::error::operation::{BuildError, SerializationError}`. Type aliases for them are left in `aws_smithy_http` for backwards compatibility but are deprecated. -- :warning: (all, [smithy-rs#3076](https://github.com/awslabs/smithy-rs/issues/3076)) `aws_smithy_http::body::{BoxBody, Error, SdkBody}` have been moved to `aws_smithy_types::body::{BoxBody, Error, SdkBody}`. Type aliases for them are left in `aws_smithy_http` for backwards compatibility but are deprecated. -- :warning: (all, [smithy-rs#3076](https://github.com/awslabs/smithy-rs/issues/3076), [smithy-rs#3091](https://github.com/awslabs/smithy-rs/issues/3091)) `aws_smithy_http::byte_stream::{AggregatedBytes, ByteStream, error::Error, FsBuilder, Length}` have been moved to `aws_smithy_types::byte_stream::{AggregatedBytes, ByteStream, error::Error, FsBuilder, Length}`. Type aliases for them are left in `aws_smithy_http` for backwards compatibility but are deprecated. -- :warning: (client, [smithy-rs#3077](https://github.com/awslabs/smithy-rs/issues/3077)) **Behavior Break!** Identities for auth are now cached by default. See the `Config` builder's `identity_cache()` method docs for an example of how to disable this caching. -- :warning: (all, [smithy-rs#3033](https://github.com/awslabs/smithy-rs/issues/3033), [smithy-rs#3088](https://github.com/awslabs/smithy-rs/issues/3088), [smithy-rs#3101](https://github.com/awslabs/smithy-rs/issues/3101)) Publicly exposed types from `http-body` and `hyper` crates within `aws-smithy-types` are now feature-gated. See the [upgrade guidance](https://github.com/awslabs/smithy-rs/discussions/3089) for details. -- :warning: (all, [smithy-rs#3033](https://github.com/awslabs/smithy-rs/issues/3033), [smithy-rs#3088](https://github.com/awslabs/smithy-rs/issues/3088)) `ByteStream::poll_next` is now feature-gated. You can turn on a cargo feature `byte-stream-poll-next` in `aws-smithy-types` to use it. -- :warning: (client, [smithy-rs#3092](https://github.com/awslabs/smithy-rs/issues/3092), [smithy-rs#3093](https://github.com/awslabs/smithy-rs/issues/3093)) The [`connection`](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/connection/index.html) and [`result`](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/result/index.html) modules in `aws-smithy-http` have been moved to `aws-smithy-runtime-api`. Type aliases for all affected pub items, except for a trait, are left in `aws-smithy-http` for backwards compatibility but are deprecated. Due to lack of trait aliases, the moved trait `CreateUnhandledError` needs to be used from `aws-smithy-runtime-api`. -- :bug::warning: (server, [smithy-rs#3095](https://github.com/awslabs/smithy-rs/issues/3095), [smithy-rs#3096](https://github.com/awslabs/smithy-rs/issues/3096)) Service builder initialization now takes in a `${serviceName}Config` object on which plugins and layers should be registered. The `builder_with_plugins` and `builder_without_plugins` methods on the service builder, as well as the `layer` method on the built service have been deprecated, and will be removed in a future release. See the [upgrade guidance](https://github.com/awslabs/smithy-rs/discussions/3096) for more details. +- :warning: (client, [smithy-rs#3059](https://github.com/smithy-lang/smithy-rs/issues/3059)) **This change has [detailed upgrade guidance](https://github.com/smithy-lang/smithy-rs/discussions/3067)**. A summary is below.

The `HttpRequest` type alias now points to `aws-smithy-runtime-api::client::http::Request`. This is a first-party request type to allow us to gracefully support `http = 1.0` when it arrives. Most customer code using this method should be unaffected. `TryFrom`/`TryInto` conversions are provided for `http = 0.2.*`. +- :warning: (client, [smithy-rs#2917](https://github.com/smithy-lang/smithy-rs/issues/2917)) `RuntimeComponents` have been added as an argument to the `IdentityResolver::resolve_identity` trait function. +- :warning: (client, [smithy-rs#3072](https://github.com/smithy-lang/smithy-rs/issues/3072)) The `idempotency_provider` field has been removed from config as a public field. If you need access to this field, it is still available from the context of an interceptor. +- :warning: (client, [smithy-rs#3078](https://github.com/smithy-lang/smithy-rs/issues/3078)) The `config::Builder::endpoint_resolver` method no longer accepts `&'static str`. Use `config::Builder::endpoint_url` instead. +- :warning: (client, [smithy-rs#3043](https://github.com/smithy-lang/smithy-rs/issues/3043), [smithy-rs#3078](https://github.com/smithy-lang/smithy-rs/issues/3078)) **This change has [detailed upgrade guidance](https://github.com/smithy-lang/smithy-rs/discussions/3079).**

The endpoint interfaces from `aws-smithy-http` have been removed. Service-specific endpoint resolver traits have been added. +- :warning: (all, [smithy-rs#3054](https://github.com/smithy-lang/smithy-rs/issues/3054), [smithy-rs#3070](https://github.com/smithy-lang/smithy-rs/issues/3070)) `aws_smithy_http::operation::error::{BuildError, SerializationError}` have been moved to `aws_smithy_types::error::operation::{BuildError, SerializationError}`. Type aliases for them are left in `aws_smithy_http` for backwards compatibility but are deprecated. +- :warning: (all, [smithy-rs#3076](https://github.com/smithy-lang/smithy-rs/issues/3076)) `aws_smithy_http::body::{BoxBody, Error, SdkBody}` have been moved to `aws_smithy_types::body::{BoxBody, Error, SdkBody}`. Type aliases for them are left in `aws_smithy_http` for backwards compatibility but are deprecated. +- :warning: (all, [smithy-rs#3076](https://github.com/smithy-lang/smithy-rs/issues/3076), [smithy-rs#3091](https://github.com/smithy-lang/smithy-rs/issues/3091)) `aws_smithy_http::byte_stream::{AggregatedBytes, ByteStream, error::Error, FsBuilder, Length}` have been moved to `aws_smithy_types::byte_stream::{AggregatedBytes, ByteStream, error::Error, FsBuilder, Length}`. Type aliases for them are left in `aws_smithy_http` for backwards compatibility but are deprecated. +- :warning: (client, [smithy-rs#3077](https://github.com/smithy-lang/smithy-rs/issues/3077)) **Behavior Break!** Identities for auth are now cached by default. See the `Config` builder's `identity_cache()` method docs for an example of how to disable this caching. +- :warning: (all, [smithy-rs#3033](https://github.com/smithy-lang/smithy-rs/issues/3033), [smithy-rs#3088](https://github.com/smithy-lang/smithy-rs/issues/3088), [smithy-rs#3101](https://github.com/smithy-lang/smithy-rs/issues/3101)) Publicly exposed types from `http-body` and `hyper` crates within `aws-smithy-types` are now feature-gated. See the [upgrade guidance](https://github.com/smithy-lang/smithy-rs/discussions/3089) for details. +- :warning: (all, [smithy-rs#3033](https://github.com/smithy-lang/smithy-rs/issues/3033), [smithy-rs#3088](https://github.com/smithy-lang/smithy-rs/issues/3088)) `ByteStream::poll_next` is now feature-gated. You can turn on a cargo feature `byte-stream-poll-next` in `aws-smithy-types` to use it. +- :warning: (client, [smithy-rs#3092](https://github.com/smithy-lang/smithy-rs/issues/3092), [smithy-rs#3093](https://github.com/smithy-lang/smithy-rs/issues/3093)) The [`connection`](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/connection/index.html) and [`result`](https://docs.rs/aws-smithy-http/latest/aws_smithy_http/result/index.html) modules in `aws-smithy-http` have been moved to `aws-smithy-runtime-api`. Type aliases for all affected pub items, except for a trait, are left in `aws-smithy-http` for backwards compatibility but are deprecated. Due to lack of trait aliases, the moved trait `CreateUnhandledError` needs to be used from `aws-smithy-runtime-api`. +- :bug::warning: (server, [smithy-rs#3095](https://github.com/smithy-lang/smithy-rs/issues/3095), [smithy-rs#3096](https://github.com/smithy-lang/smithy-rs/issues/3096)) Service builder initialization now takes in a `${serviceName}Config` object on which plugins and layers should be registered. The `builder_with_plugins` and `builder_without_plugins` methods on the service builder, as well as the `layer` method on the built service have been deprecated, and will be removed in a future release. See the [upgrade guidance](https://github.com/smithy-lang/smithy-rs/discussions/3096) for more details. **New this release:** -- :tada: (client, [smithy-rs#2916](https://github.com/awslabs/smithy-rs/issues/2916), [smithy-rs#1767](https://github.com/awslabs/smithy-rs/issues/1767)) Support for Smithy IDLv2 nullability is now enabled by default. You can maintain the old behavior by setting `nullabilityCheckMode: "CLIENT_ZERO_VALUE_V1" in your codegen config. - For upgrade guidance and more info, see [here](https://github.com/awslabs/smithy-rs/discussions/2929). -- :tada: (server, [smithy-rs#3005](https://github.com/awslabs/smithy-rs/issues/3005)) Python middleware can set URI. This can be used to route a request to a different handler. -- :tada: (client, [smithy-rs#3071](https://github.com/awslabs/smithy-rs/issues/3071)) Clients now have a default async sleep implementation so that one does not need to be specified if you're using Tokio. -- :bug: (client, [smithy-rs#2944](https://github.com/awslabs/smithy-rs/issues/2944), [smithy-rs#2951](https://github.com/awslabs/smithy-rs/issues/2951)) `CustomizableOperation`, created as a result of calling the `.customize` method on a fluent builder, ceased to be `Send` and `Sync` in the previous releases. It is now `Send` and `Sync` again. -- :bug: (client, [smithy-rs#2960](https://github.com/awslabs/smithy-rs/issues/2960)) Generate a region setter when a model uses SigV4. -- :bug: (all, [smithy-rs#2969](https://github.com/awslabs/smithy-rs/issues/2969), [smithy-rs#1896](https://github.com/awslabs/smithy-rs/issues/1896)) Fix code generation for union members with the `@httpPayload` trait. -- (client, [smithy-rs#2964](https://github.com/awslabs/smithy-rs/issues/2964)) Required members with @contextParam are now treated as client-side required. -- :bug: (client, [smithy-rs#2926](https://github.com/awslabs/smithy-rs/issues/2926), [smithy-rs#2972](https://github.com/awslabs/smithy-rs/issues/2972)) Fix regression with redacting sensitive HTTP response bodies. -- :bug: (all, [smithy-rs#2831](https://github.com/awslabs/smithy-rs/issues/2831), [aws-sdk-rust#818](https://github.com/awslabs/aws-sdk-rust/issues/818)) Omit fractional seconds from `http-date` format. -- :bug: (client, [smithy-rs#2985](https://github.com/awslabs/smithy-rs/issues/2985)) Source defaults from the default trait instead of implicitly based on type. This has minimal changes in the generated code. -- (client, [smithy-rs#2996](https://github.com/awslabs/smithy-rs/issues/2996)) Produce better docs when items are marked @required -- :bug: (client, [smithy-rs#3034](https://github.com/awslabs/smithy-rs/issues/3034), [smithy-rs#3087](https://github.com/awslabs/smithy-rs/issues/3087)) Enable custom auth schemes to work by changing the code generated auth options to be set at the client level at `DEFAULTS` priority. +- :tada: (client, [smithy-rs#2916](https://github.com/smithy-lang/smithy-rs/issues/2916), [smithy-rs#1767](https://github.com/smithy-lang/smithy-rs/issues/1767)) Support for Smithy IDLv2 nullability is now enabled by default. You can maintain the old behavior by setting `nullabilityCheckMode: "CLIENT_ZERO_VALUE_V1" in your codegen config. + For upgrade guidance and more info, see [here](https://github.com/smithy-lang/smithy-rs/discussions/2929). +- :tada: (server, [smithy-rs#3005](https://github.com/smithy-lang/smithy-rs/issues/3005)) Python middleware can set URI. This can be used to route a request to a different handler. +- :tada: (client, [smithy-rs#3071](https://github.com/smithy-lang/smithy-rs/issues/3071)) Clients now have a default async sleep implementation so that one does not need to be specified if you're using Tokio. +- :bug: (client, [smithy-rs#2944](https://github.com/smithy-lang/smithy-rs/issues/2944), [smithy-rs#2951](https://github.com/smithy-lang/smithy-rs/issues/2951)) `CustomizableOperation`, created as a result of calling the `.customize` method on a fluent builder, ceased to be `Send` and `Sync` in the previous releases. It is now `Send` and `Sync` again. +- :bug: (client, [smithy-rs#2960](https://github.com/smithy-lang/smithy-rs/issues/2960)) Generate a region setter when a model uses SigV4. +- :bug: (all, [smithy-rs#2969](https://github.com/smithy-lang/smithy-rs/issues/2969), [smithy-rs#1896](https://github.com/smithy-lang/smithy-rs/issues/1896)) Fix code generation for union members with the `@httpPayload` trait. +- (client, [smithy-rs#2964](https://github.com/smithy-lang/smithy-rs/issues/2964)) Required members with @contextParam are now treated as client-side required. +- :bug: (client, [smithy-rs#2926](https://github.com/smithy-lang/smithy-rs/issues/2926), [smithy-rs#2972](https://github.com/smithy-lang/smithy-rs/issues/2972)) Fix regression with redacting sensitive HTTP response bodies. +- :bug: (all, [smithy-rs#2831](https://github.com/smithy-lang/smithy-rs/issues/2831), [aws-sdk-rust#818](https://github.com/awslabs/aws-sdk-rust/issues/818)) Omit fractional seconds from `http-date` format. +- :bug: (client, [smithy-rs#2985](https://github.com/smithy-lang/smithy-rs/issues/2985)) Source defaults from the default trait instead of implicitly based on type. This has minimal changes in the generated code. +- (client, [smithy-rs#2996](https://github.com/smithy-lang/smithy-rs/issues/2996)) Produce better docs when items are marked @required +- :bug: (client, [smithy-rs#3034](https://github.com/smithy-lang/smithy-rs/issues/3034), [smithy-rs#3087](https://github.com/smithy-lang/smithy-rs/issues/3087)) Enable custom auth schemes to work by changing the code generated auth options to be set at the client level at `DEFAULTS` priority. August 22nd, 2023 ================= **Breaking Changes:** -- :bug::warning: (client, [smithy-rs#2931](https://github.com/awslabs/smithy-rs/issues/2931), [aws-sdk-rust#875](https://github.com/awslabs/aws-sdk-rust/issues/875)) Fixed re-exported `SdkError` type. The previous release had the wrong type for `SdkError` when generating code for orchestrator mode, which caused projects to fail to compile when upgrading. +- :bug::warning: (client, [smithy-rs#2931](https://github.com/smithy-lang/smithy-rs/issues/2931), [aws-sdk-rust#875](https://github.com/awslabs/aws-sdk-rust/issues/875)) Fixed re-exported `SdkError` type. The previous release had the wrong type for `SdkError` when generating code for orchestrator mode, which caused projects to fail to compile when upgrading. **New this release:** -- (client, [smithy-rs#2904](https://github.com/awslabs/smithy-rs/issues/2904)) `RuntimeComponents` and `RuntimeComponentsBuilder` are now re-exported in generated clients so that implementing a custom interceptor or runtime plugin doens't require directly depending on `aws-smithy-runtime-api`. -- :bug: (client, [smithy-rs#2914](https://github.com/awslabs/smithy-rs/issues/2914), [aws-sdk-rust#825](https://github.com/awslabs/aws-sdk-rust/issues/825)) Fix incorrect summary docs for builders -- :bug: (client, [smithy-rs#2934](https://github.com/awslabs/smithy-rs/issues/2934), [aws-sdk-rust#872](https://github.com/awslabs/aws-sdk-rust/issues/872)) Logging via `#[instrument]` in the `aws_smithy_runtime::client::orchestrator` module is now emitted at the `DEBUG` level to reduce the amount of logging when emitted at the `INFO` level. -- :bug: (client, [smithy-rs#2935](https://github.com/awslabs/smithy-rs/issues/2935)) Fix `SDK::Endpoint` built-in for `@endpointRuleSet`. +- (client, [smithy-rs#2904](https://github.com/smithy-lang/smithy-rs/issues/2904)) `RuntimeComponents` and `RuntimeComponentsBuilder` are now re-exported in generated clients so that implementing a custom interceptor or runtime plugin doens't require directly depending on `aws-smithy-runtime-api`. +- :bug: (client, [smithy-rs#2914](https://github.com/smithy-lang/smithy-rs/issues/2914), [aws-sdk-rust#825](https://github.com/awslabs/aws-sdk-rust/issues/825)) Fix incorrect summary docs for builders +- :bug: (client, [smithy-rs#2934](https://github.com/smithy-lang/smithy-rs/issues/2934), [aws-sdk-rust#872](https://github.com/awslabs/aws-sdk-rust/issues/872)) Logging via `#[instrument]` in the `aws_smithy_runtime::client::orchestrator` module is now emitted at the `DEBUG` level to reduce the amount of logging when emitted at the `INFO` level. +- :bug: (client, [smithy-rs#2935](https://github.com/smithy-lang/smithy-rs/issues/2935)) Fix `SDK::Endpoint` built-in for `@endpointRuleSet`. August 1st, 2023 ================ **Breaking Changes:** -- ⚠🎉 (server, [smithy-rs#2740](https://github.com/awslabs/smithy-rs/issues/2740), [smithy-rs#2759](https://github.com/awslabs/smithy-rs/issues/2759), [smithy-rs#2779](https://github.com/awslabs/smithy-rs/issues/2779), [smithy-rs#2827](https://github.com/awslabs/smithy-rs/issues/2827), @hlbarber) The middleware system has been reworked as we push for a unified, simple, and consistent API. The following changes have been made in service of this goal: +- ⚠🎉 (server, [smithy-rs#2740](https://github.com/smithy-lang/smithy-rs/issues/2740), [smithy-rs#2759](https://github.com/smithy-lang/smithy-rs/issues/2759), [smithy-rs#2779](https://github.com/smithy-lang/smithy-rs/issues/2779), [smithy-rs#2827](https://github.com/smithy-lang/smithy-rs/issues/2827), @hlbarber) The middleware system has been reworked as we push for a unified, simple, and consistent API. The following changes have been made in service of this goal: - A `ServiceShape` trait has been added. - The `Plugin` trait has been simplified. @@ -103,7 +103,7 @@ August 1st, 2023 ## Addition of `ServiceShape` - Since the [0.52 release](https://github.com/awslabs/smithy-rs/releases/tag/release-2022-12-12) the `OperationShape` has existed. + Since the [0.52 release](https://github.com/smithy-lang/smithy-rs/releases/tag/release-2022-12-12) the `OperationShape` has existed. ```rust /// Models the [Smithy Operation shape]. @@ -123,7 +123,7 @@ August 1st, 2023 } ``` - This allowed `Plugin` authors to access these associated types and constants. See the [`PrintPlugin`](https://github.com/awslabs/smithy-rs/blob/main/examples/pokemon-service/src/plugin.rs) as an example. + This allowed `Plugin` authors to access these associated types and constants. See the [`PrintPlugin`](https://github.com/smithy-lang/smithy-rs/blob/main/examples/pokemon-service/src/plugin.rs) as an example. We continue with this approach and introduce the following trait: @@ -177,7 +177,7 @@ August 1st, 2023 maps a `tower::Service` to a `tower::Service`. This is equivalent to `tower::Layer` with two extra type parameters: `Service` and `Operation`, which implement `ServiceShape` and `OperationShape` respectively. - Having both `Service` and `Operation` as type parameters also provides an even surface for advanced users to extend the codegenerator in a structured way. See [this issue](https://github.com/awslabs/smithy-rs/issues/2777) for more context. + Having both `Service` and `Operation` as type parameters also provides an even surface for advanced users to extend the codegenerator in a structured way. See [this issue](https://github.com/smithy-lang/smithy-rs/issues/2777) for more context. The following middleware setup @@ -415,28 +415,28 @@ August 1st, 2023 let scoped_plugin = Scoped::new::(plugin); ``` -- ⚠ (all, [smithy-rs#2675](https://github.com/awslabs/smithy-rs/issues/2675)) Remove native-tls and add a migration guide. -- ⚠ (client, [smithy-rs#2671](https://github.com/awslabs/smithy-rs/issues/2671))
+- ⚠ (all, [smithy-rs#2675](https://github.com/smithy-lang/smithy-rs/issues/2675)) Remove native-tls and add a migration guide. +- ⚠ (client, [smithy-rs#2671](https://github.com/smithy-lang/smithy-rs/issues/2671))
Breaking change in how event stream signing works (click to expand more details) This change will only impact you if you are wiring up their own event stream signing/authentication scheme. If you're using `aws-sig-auth` to use AWS SigV4 event stream signing, then this change will **not** impact you. Previously, event stream signing was configured at codegen time by placing a `new_event_stream_signer` method on the `Config`. This function was called at serialization time to connect the signer to the streaming body. Now, instead, a special `DeferredSigner` is wired up at serialization time that relies on a signing implementation to be sent on a channel by the HTTP request signer. To do this, a `DeferredSignerSender` must be pulled out of the property bag, and its `send()` method called with the desired event stream signing implementation. - See the changes in https://github.com/awslabs/smithy-rs/pull/2671 for an example of how this was done for SigV4. + See the changes in https://github.com/smithy-lang/smithy-rs/pull/2671 for an example of how this was done for SigV4.
-- ⚠ (all, [smithy-rs#2673](https://github.com/awslabs/smithy-rs/issues/2673)) For event stream operations, the `EventStreamSender` in inputs/outputs now requires the passed in `Stream` impl to implement `Sync`. -- ⚠ (server, [smithy-rs#2539](https://github.com/awslabs/smithy-rs/issues/2539)) Code generation will abort if the `ignoreUnsupportedConstraints` codegen flag has no effect, that is, if all constraint traits used in your model are well-supported. Please remove the flag in such case. -- ⚠ (client, [smithy-rs#2728](https://github.com/awslabs/smithy-rs/issues/2728), [smithy-rs#2262](https://github.com/awslabs/smithy-rs/issues/2262), [aws-sdk-rust#2087](https://github.com/awslabs/aws-sdk-rust/issues/2087)) The property bag type for Time is now `SharedTimeSource`, not `SystemTime`. If your code relies on setting request time, use `aws_smithy_async::time::SharedTimeSource`. -- ⚠ (server, [smithy-rs#2676](https://github.com/awslabs/smithy-rs/issues/2676), [smithy-rs#2685](https://github.com/awslabs/smithy-rs/issues/2685)) Bump dependency on `lambda_http` by `aws-smithy-http-server` to 0.8.0. This version of `aws-smithy-http-server` is only guaranteed to be compatible with 0.8.0, or semver-compatible versions of 0.8.0 of the `lambda_http` crate. It will not work with versions prior to 0.8.0 _at runtime_, making requests to your smithy-rs service unroutable, so please make sure you're running your service in a compatible configuration -- ⚠ (server, [smithy-rs#2457](https://github.com/awslabs/smithy-rs/issues/2457), @hlbarber) Remove `PollError` from an operations `Service::Error`. +- ⚠ (all, [smithy-rs#2673](https://github.com/smithy-lang/smithy-rs/issues/2673)) For event stream operations, the `EventStreamSender` in inputs/outputs now requires the passed in `Stream` impl to implement `Sync`. +- ⚠ (server, [smithy-rs#2539](https://github.com/smithy-lang/smithy-rs/issues/2539)) Code generation will abort if the `ignoreUnsupportedConstraints` codegen flag has no effect, that is, if all constraint traits used in your model are well-supported. Please remove the flag in such case. +- ⚠ (client, [smithy-rs#2728](https://github.com/smithy-lang/smithy-rs/issues/2728), [smithy-rs#2262](https://github.com/smithy-lang/smithy-rs/issues/2262), [aws-sdk-rust#2087](https://github.com/awslabs/aws-sdk-rust/issues/2087)) The property bag type for Time is now `SharedTimeSource`, not `SystemTime`. If your code relies on setting request time, use `aws_smithy_async::time::SharedTimeSource`. +- ⚠ (server, [smithy-rs#2676](https://github.com/smithy-lang/smithy-rs/issues/2676), [smithy-rs#2685](https://github.com/smithy-lang/smithy-rs/issues/2685)) Bump dependency on `lambda_http` by `aws-smithy-http-server` to 0.8.0. This version of `aws-smithy-http-server` is only guaranteed to be compatible with 0.8.0, or semver-compatible versions of 0.8.0 of the `lambda_http` crate. It will not work with versions prior to 0.8.0 _at runtime_, making requests to your smithy-rs service unroutable, so please make sure you're running your service in a compatible configuration +- ⚠ (server, [smithy-rs#2457](https://github.com/smithy-lang/smithy-rs/issues/2457), @hlbarber) Remove `PollError` from an operations `Service::Error`. Any [`tower::Service`](https://docs.rs/tower/latest/tower/trait.Service.html) provided to [`Operation::from_service`](https://docs.rs/aws-smithy-http-server/latest/aws_smithy_http_server/operation/struct.Operation.html#method.from_service) no longer requires `Service::Error = OperationError`, instead requiring just `Service::Error = Op::Error`. -- ⚠ (client, [smithy-rs#2742](https://github.com/awslabs/smithy-rs/issues/2742)) A newtype wrapper `SharedAsyncSleep` has been introduced and occurrences of `Arc` that appear in public APIs have been replaced with it. -- ⚠ (all, [smithy-rs#2893](https://github.com/awslabs/smithy-rs/issues/2893)) Update MSRV to Rust 1.69.0 -- ⚠ (server, [smithy-rs#2678](https://github.com/awslabs/smithy-rs/issues/2678)) `ShapeId` is the new structure used to represent a shape, with its absolute name, namespace and name. +- ⚠ (client, [smithy-rs#2742](https://github.com/smithy-lang/smithy-rs/issues/2742)) A newtype wrapper `SharedAsyncSleep` has been introduced and occurrences of `Arc` that appear in public APIs have been replaced with it. +- ⚠ (all, [smithy-rs#2893](https://github.com/smithy-lang/smithy-rs/issues/2893)) Update MSRV to Rust 1.69.0 +- ⚠ (server, [smithy-rs#2678](https://github.com/smithy-lang/smithy-rs/issues/2678)) `ShapeId` is the new structure used to represent a shape, with its absolute name, namespace and name. `OperationExtension`'s members are replaced by the `ShapeId` and operations' names are now replced by a `ShapeId`. Before you had an operation and an absolute name as its `NAME` member. You could apply a plugin only to some selected operation: @@ -459,8 +459,8 @@ August 1st, 2023 filter_by_operation_id(plugin, |id| id.namespace() != "namespace"); filter_by_operation_id(plugin, |id| id.absolute() != "namespace#name"); ``` -- ⚠ (client, [smithy-rs#2758](https://github.com/awslabs/smithy-rs/issues/2758)) The occurrences of `Arc` have now been replaced with `SharedEndpointResolver` in public APIs. -- ⚠ (server, [smithy-rs#2740](https://github.com/awslabs/smithy-rs/issues/2740), [smithy-rs#2759](https://github.com/awslabs/smithy-rs/issues/2759), [smithy-rs#2779](https://github.com/awslabs/smithy-rs/issues/2779), @hlbarber) Remove `filter_by_operation_id` and `plugin_from_operation_id_fn` in favour of `filter_by_operation` and `plugin_from_operation_fn`. +- ⚠ (client, [smithy-rs#2758](https://github.com/smithy-lang/smithy-rs/issues/2758)) The occurrences of `Arc` have now been replaced with `SharedEndpointResolver` in public APIs. +- ⚠ (server, [smithy-rs#2740](https://github.com/smithy-lang/smithy-rs/issues/2740), [smithy-rs#2759](https://github.com/smithy-lang/smithy-rs/issues/2759), [smithy-rs#2779](https://github.com/smithy-lang/smithy-rs/issues/2779), @hlbarber) Remove `filter_by_operation_id` and `plugin_from_operation_id_fn` in favour of `filter_by_operation` and `plugin_from_operation_fn`. Previously, we provided `filter_by_operation_id` which filtered `Plugin` application via a predicate over the Shape ID. @@ -496,23 +496,23 @@ August 1st, 2023 let plugin = plugin_from_operation_fn(map); ``` -- ⚠ (client, [smithy-rs#2783](https://github.com/awslabs/smithy-rs/issues/2783)) The naming `make_token` for fields and the API of `IdempotencyTokenProvider` in service configs and their builders has now been updated to `idempotency_token_provider`. -- ⚠ (client, [smithy-rs#2845](https://github.com/awslabs/smithy-rs/issues/2845)) `aws_smithy_async::future::rendezvous::Sender::send` no longer exposes `tokio::sync::mpsc::error::SendError` for the error of its return type and instead exposes a new-type wrapper called `aws_smithy_async::future::rendezvous::error::SendError`. In addition, the `aws_smithy_xml` crate no longer exposes types from `xmlparser`. -- ⚠ (client, [smithy-rs#2848](https://github.com/awslabs/smithy-rs/issues/2848)) The implementation `From` for `aws_smithy_http::event_stream::RawMessage` has been removed. -- ⚠ (server, [smithy-rs#2865](https://github.com/awslabs/smithy-rs/issues/2865)) The `alb_health_check` module has been moved out of the `plugin` module into a new `layer` module. ALB health checks should be enacted before routing, and plugins run after routing, so the module location was misleading. Examples have been corrected to reflect the intended application of the layer. -- ⚠ (client, [smithy-rs#2873](https://github.com/awslabs/smithy-rs/issues/2873)) The `test-util` feature in aws-smithy-client has been split to include a separate `wiremock` feature. This allows test-util to be used without a Hyper server dependency making it usable in webassembly targets. -- ⚠ (client) The entire architecture of generated clients has been overhauled. See the [upgrade guide](https://github.com/awslabs/smithy-rs/discussions/2887) to get your code working again. +- ⚠ (client, [smithy-rs#2783](https://github.com/smithy-lang/smithy-rs/issues/2783)) The naming `make_token` for fields and the API of `IdempotencyTokenProvider` in service configs and their builders has now been updated to `idempotency_token_provider`. +- ⚠ (client, [smithy-rs#2845](https://github.com/smithy-lang/smithy-rs/issues/2845)) `aws_smithy_async::future::rendezvous::Sender::send` no longer exposes `tokio::sync::mpsc::error::SendError` for the error of its return type and instead exposes a new-type wrapper called `aws_smithy_async::future::rendezvous::error::SendError`. In addition, the `aws_smithy_xml` crate no longer exposes types from `xmlparser`. +- ⚠ (client, [smithy-rs#2848](https://github.com/smithy-lang/smithy-rs/issues/2848)) The implementation `From` for `aws_smithy_http::event_stream::RawMessage` has been removed. +- ⚠ (server, [smithy-rs#2865](https://github.com/smithy-lang/smithy-rs/issues/2865)) The `alb_health_check` module has been moved out of the `plugin` module into a new `layer` module. ALB health checks should be enacted before routing, and plugins run after routing, so the module location was misleading. Examples have been corrected to reflect the intended application of the layer. +- ⚠ (client, [smithy-rs#2873](https://github.com/smithy-lang/smithy-rs/issues/2873)) The `test-util` feature in aws-smithy-client has been split to include a separate `wiremock` feature. This allows test-util to be used without a Hyper server dependency making it usable in webassembly targets. +- ⚠ (client) The entire architecture of generated clients has been overhauled. See the [upgrade guide](https://github.com/smithy-lang/smithy-rs/discussions/2887) to get your code working again. **New this release:** -- 🎉 (all, [smithy-rs#2647](https://github.com/awslabs/smithy-rs/issues/2647), [smithy-rs#2645](https://github.com/awslabs/smithy-rs/issues/2645), [smithy-rs#2646](https://github.com/awslabs/smithy-rs/issues/2646), [smithy-rs#2616](https://github.com/awslabs/smithy-rs/issues/2616), @thomas-k-cameron) Implement unstable serde support for the `Number`, `Blob`, `Document`, `DateTime` primitives -- 🎉 (client, [smithy-rs#2652](https://github.com/awslabs/smithy-rs/issues/2652), @thomas-k-cameron) Add a `send_with` function on `-Input` types for sending requests without fluent builders -- (client, [smithy-rs#2791](https://github.com/awslabs/smithy-rs/issues/2791), @davidsouther) Add accessors to Builders -- (all, [smithy-rs#2786](https://github.com/awslabs/smithy-rs/issues/2786), @yotamofek) Avoid intermediate vec allocations in AggregatedBytes::to_vec. -- 🐛 (server, [smithy-rs#2733](https://github.com/awslabs/smithy-rs/issues/2733), @thor-bjorgvinsson) Fix bug in AWS JSON 1.x routers where, if a service had more than 14 operations, the router was created without the route for the 15th operation. -- (client, [smithy-rs#2728](https://github.com/awslabs/smithy-rs/issues/2728), [smithy-rs#2262](https://github.com/awslabs/smithy-rs/issues/2262), [aws-sdk-rust#2087](https://github.com/awslabs/aws-sdk-rust/issues/2087)) Time is now controlled by the `TimeSource` trait. This facilitates testing as well as use cases like WASM where `SystemTime::now()` is not supported. -- 🐛 (client, [smithy-rs#2767](https://github.com/awslabs/smithy-rs/issues/2767), @mcmasn-amzn) Fix bug in client generation when using smithy.rules#endpointTests and operation and service shapes are in different namespaces. -- (client, [smithy-rs#2854](https://github.com/awslabs/smithy-rs/issues/2854)) Public fields in structs are no longer marked as `#[doc(hidden)]`, and they are now visible. -- (server, [smithy-rs#2866](https://github.com/awslabs/smithy-rs/issues/2866)) [RestJson1](https://awslabs.github.io/smithy/2.0/aws/protocols/aws-restjson1-protocol.html#operation-error-serialization) server SDKs now serialize only the [shape name](https://smithy.io/2.0/spec/model.html#shape-id) in operation error responses. Previously (from versions 0.52.0 to 0.55.4), the full shape ID was rendered. +- 🎉 (all, [smithy-rs#2647](https://github.com/smithy-lang/smithy-rs/issues/2647), [smithy-rs#2645](https://github.com/smithy-lang/smithy-rs/issues/2645), [smithy-rs#2646](https://github.com/smithy-lang/smithy-rs/issues/2646), [smithy-rs#2616](https://github.com/smithy-lang/smithy-rs/issues/2616), @thomas-k-cameron) Implement unstable serde support for the `Number`, `Blob`, `Document`, `DateTime` primitives +- 🎉 (client, [smithy-rs#2652](https://github.com/smithy-lang/smithy-rs/issues/2652), @thomas-k-cameron) Add a `send_with` function on `-Input` types for sending requests without fluent builders +- (client, [smithy-rs#2791](https://github.com/smithy-lang/smithy-rs/issues/2791), @davidsouther) Add accessors to Builders +- (all, [smithy-rs#2786](https://github.com/smithy-lang/smithy-rs/issues/2786), @yotamofek) Avoid intermediate vec allocations in AggregatedBytes::to_vec. +- 🐛 (server, [smithy-rs#2733](https://github.com/smithy-lang/smithy-rs/issues/2733), @thor-bjorgvinsson) Fix bug in AWS JSON 1.x routers where, if a service had more than 14 operations, the router was created without the route for the 15th operation. +- (client, [smithy-rs#2728](https://github.com/smithy-lang/smithy-rs/issues/2728), [smithy-rs#2262](https://github.com/smithy-lang/smithy-rs/issues/2262), [aws-sdk-rust#2087](https://github.com/awslabs/aws-sdk-rust/issues/2087)) Time is now controlled by the `TimeSource` trait. This facilitates testing as well as use cases like WASM where `SystemTime::now()` is not supported. +- 🐛 (client, [smithy-rs#2767](https://github.com/smithy-lang/smithy-rs/issues/2767), @mcmasn-amzn) Fix bug in client generation when using smithy.rules#endpointTests and operation and service shapes are in different namespaces. +- (client, [smithy-rs#2854](https://github.com/smithy-lang/smithy-rs/issues/2854)) Public fields in structs are no longer marked as `#[doc(hidden)]`, and they are now visible. +- (server, [smithy-rs#2866](https://github.com/smithy-lang/smithy-rs/issues/2866)) [RestJson1](https://awslabs.github.io/smithy/2.0/aws/protocols/aws-restjson1-protocol.html#operation-error-serialization) server SDKs now serialize only the [shape name](https://smithy.io/2.0/spec/model.html#shape-id) in operation error responses. Previously (from versions 0.52.0 to 0.55.4), the full shape ID was rendered. Example server error response by a smithy-rs server version 0.52.0 until 0.55.4: ``` HTTP/1.1 400 Bad Request @@ -530,50 +530,50 @@ August 1st, 2023 **Contributors** Thank you for your contributions! ❤ -- @davidsouther ([smithy-rs#2791](https://github.com/awslabs/smithy-rs/issues/2791)) -- @hlbarber ([smithy-rs#2457](https://github.com/awslabs/smithy-rs/issues/2457), [smithy-rs#2740](https://github.com/awslabs/smithy-rs/issues/2740), [smithy-rs#2759](https://github.com/awslabs/smithy-rs/issues/2759), [smithy-rs#2779](https://github.com/awslabs/smithy-rs/issues/2779), [smithy-rs#2827](https://github.com/awslabs/smithy-rs/issues/2827)) -- @mcmasn-amzn ([smithy-rs#2767](https://github.com/awslabs/smithy-rs/issues/2767)) -- @thomas-k-cameron ([smithy-rs#2616](https://github.com/awslabs/smithy-rs/issues/2616), [smithy-rs#2645](https://github.com/awslabs/smithy-rs/issues/2645), [smithy-rs#2646](https://github.com/awslabs/smithy-rs/issues/2646), [smithy-rs#2647](https://github.com/awslabs/smithy-rs/issues/2647), [smithy-rs#2652](https://github.com/awslabs/smithy-rs/issues/2652)) -- @thor-bjorgvinsson ([smithy-rs#2733](https://github.com/awslabs/smithy-rs/issues/2733)) -- @yotamofek ([smithy-rs#2786](https://github.com/awslabs/smithy-rs/issues/2786)) +- @davidsouther ([smithy-rs#2791](https://github.com/smithy-lang/smithy-rs/issues/2791)) +- @hlbarber ([smithy-rs#2457](https://github.com/smithy-lang/smithy-rs/issues/2457), [smithy-rs#2740](https://github.com/smithy-lang/smithy-rs/issues/2740), [smithy-rs#2759](https://github.com/smithy-lang/smithy-rs/issues/2759), [smithy-rs#2779](https://github.com/smithy-lang/smithy-rs/issues/2779), [smithy-rs#2827](https://github.com/smithy-lang/smithy-rs/issues/2827)) +- @mcmasn-amzn ([smithy-rs#2767](https://github.com/smithy-lang/smithy-rs/issues/2767)) +- @thomas-k-cameron ([smithy-rs#2616](https://github.com/smithy-lang/smithy-rs/issues/2616), [smithy-rs#2645](https://github.com/smithy-lang/smithy-rs/issues/2645), [smithy-rs#2646](https://github.com/smithy-lang/smithy-rs/issues/2646), [smithy-rs#2647](https://github.com/smithy-lang/smithy-rs/issues/2647), [smithy-rs#2652](https://github.com/smithy-lang/smithy-rs/issues/2652)) +- @thor-bjorgvinsson ([smithy-rs#2733](https://github.com/smithy-lang/smithy-rs/issues/2733)) +- @yotamofek ([smithy-rs#2786](https://github.com/smithy-lang/smithy-rs/issues/2786)) May 23rd, 2023 ============== **New this release:** -- (all, [smithy-rs#2612](https://github.com/awslabs/smithy-rs/issues/2612)) The `Debug` implementation for `PropertyBag` now prints a list of the types it contains. This significantly improves debuggability. -- (all, [smithy-rs#2653](https://github.com/awslabs/smithy-rs/issues/2653), [smithy-rs#2656](https://github.com/awslabs/smithy-rs/issues/2656), @henriiik) Implement `Ord` and `PartialOrd` for `DateTime`. -- 🐛 (client, [smithy-rs#2696](https://github.com/awslabs/smithy-rs/issues/2696)) Fix compiler errors in generated code when naming shapes after types in the Rust standard library prelude. +- (all, [smithy-rs#2612](https://github.com/smithy-lang/smithy-rs/issues/2612)) The `Debug` implementation for `PropertyBag` now prints a list of the types it contains. This significantly improves debuggability. +- (all, [smithy-rs#2653](https://github.com/smithy-lang/smithy-rs/issues/2653), [smithy-rs#2656](https://github.com/smithy-lang/smithy-rs/issues/2656), @henriiik) Implement `Ord` and `PartialOrd` for `DateTime`. +- 🐛 (client, [smithy-rs#2696](https://github.com/smithy-lang/smithy-rs/issues/2696)) Fix compiler errors in generated code when naming shapes after types in the Rust standard library prelude. **Contributors** Thank you for your contributions! ❤ -- @henriiik ([smithy-rs#2653](https://github.com/awslabs/smithy-rs/issues/2653), [smithy-rs#2656](https://github.com/awslabs/smithy-rs/issues/2656)) +- @henriiik ([smithy-rs#2653](https://github.com/smithy-lang/smithy-rs/issues/2653), [smithy-rs#2656](https://github.com/smithy-lang/smithy-rs/issues/2656)) April 26th, 2023 ================ **Breaking Changes:** -- ⚠ (all, [smithy-rs#2611](https://github.com/awslabs/smithy-rs/issues/2611)) Update MSRV to Rust 1.67.1 +- ⚠ (all, [smithy-rs#2611](https://github.com/smithy-lang/smithy-rs/issues/2611)) Update MSRV to Rust 1.67.1 **New this release:** -- 🎉 (server, [smithy-rs#2540](https://github.com/awslabs/smithy-rs/issues/2540)) Implement layer for servers to handle [ALB health checks](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html). +- 🎉 (server, [smithy-rs#2540](https://github.com/smithy-lang/smithy-rs/issues/2540)) Implement layer for servers to handle [ALB health checks](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html). Take a look at `aws_smithy_http_server::plugin::alb_health_check` to learn about it. -- 🎉 (client, [smithy-rs#2254](https://github.com/awslabs/smithy-rs/issues/2254), @eduardomourar) Clients now compile for the `wasm32-unknown-unknown` and `wasm32-wasi` targets when no default features are enabled. WebAssembly is not officially supported yet, but this is a great first step towards it! -- (server, [smithy-rs#2540](https://github.com/awslabs/smithy-rs/issues/2540)) Implement `PluginPipeline::http_layer` which allows you to apply a `tower::Layer` to all operations. +- 🎉 (client, [smithy-rs#2254](https://github.com/smithy-lang/smithy-rs/issues/2254), @eduardomourar) Clients now compile for the `wasm32-unknown-unknown` and `wasm32-wasi` targets when no default features are enabled. WebAssembly is not officially supported yet, but this is a great first step towards it! +- (server, [smithy-rs#2540](https://github.com/smithy-lang/smithy-rs/issues/2540)) Implement `PluginPipeline::http_layer` which allows you to apply a `tower::Layer` to all operations. - (client, [aws-sdk-rust#784](https://github.com/awslabs/aws-sdk-rust/issues/784), @abusch) Implement std::error::Error#source() properly for the service meta Error enum. -- 🐛 (all, [smithy-rs#2496](https://github.com/awslabs/smithy-rs/issues/2496)) The outputs for event stream operations now implement the `Sync` auto-trait. -- 🐛 (all, [smithy-rs#2495](https://github.com/awslabs/smithy-rs/issues/2495)) Streaming operations now emit the request ID at the `debug` log level like their non-streaming counterparts. -- 🐛 (client, [smithy-rs#2495](https://github.com/awslabs/smithy-rs/issues/2495)) Streaming operations now emit the request ID at the `debug` log level like their non-streaming counterparts. -- (client, [smithy-rs#2507](https://github.com/awslabs/smithy-rs/issues/2507)) The `enableNewCrateOrganizationScheme` codegen flag has been removed. If you opted out of the new crate organization scheme, it must be adopted now in order to upgrade (see [the upgrade guidance](https://github.com/awslabs/smithy-rs/discussions/2449) from March 23rd's release). -- (client, [smithy-rs#2534](https://github.com/awslabs/smithy-rs/issues/2534)) `aws_smithy_types::date_time::Format` has been re-exported in service client crates. -- 🐛 (server, [smithy-rs#2582](https://github.com/awslabs/smithy-rs/issues/2582), [smithy-rs#2585](https://github.com/awslabs/smithy-rs/issues/2585)) Fix generation of constrained shapes reaching `@sensitive` shapes -- 🐛 (server, [smithy-rs#2583](https://github.com/awslabs/smithy-rs/issues/2583), [smithy-rs#2584](https://github.com/awslabs/smithy-rs/issues/2584)) Fix server code generation bug affecting constrained shapes bound with `@httpPayload` -- (client, [smithy-rs#2603](https://github.com/awslabs/smithy-rs/issues/2603)) Add a sensitive method to `ParseHttpResponse`. When this returns true, logging of the HTTP response body will be suppressed. +- 🐛 (all, [smithy-rs#2496](https://github.com/smithy-lang/smithy-rs/issues/2496)) The outputs for event stream operations now implement the `Sync` auto-trait. +- 🐛 (all, [smithy-rs#2495](https://github.com/smithy-lang/smithy-rs/issues/2495)) Streaming operations now emit the request ID at the `debug` log level like their non-streaming counterparts. +- 🐛 (client, [smithy-rs#2495](https://github.com/smithy-lang/smithy-rs/issues/2495)) Streaming operations now emit the request ID at the `debug` log level like their non-streaming counterparts. +- (client, [smithy-rs#2507](https://github.com/smithy-lang/smithy-rs/issues/2507)) The `enableNewCrateOrganizationScheme` codegen flag has been removed. If you opted out of the new crate organization scheme, it must be adopted now in order to upgrade (see [the upgrade guidance](https://github.com/smithy-lang/smithy-rs/discussions/2449) from March 23rd's release). +- (client, [smithy-rs#2534](https://github.com/smithy-lang/smithy-rs/issues/2534)) `aws_smithy_types::date_time::Format` has been re-exported in service client crates. +- 🐛 (server, [smithy-rs#2582](https://github.com/smithy-lang/smithy-rs/issues/2582), [smithy-rs#2585](https://github.com/smithy-lang/smithy-rs/issues/2585)) Fix generation of constrained shapes reaching `@sensitive` shapes +- 🐛 (server, [smithy-rs#2583](https://github.com/smithy-lang/smithy-rs/issues/2583), [smithy-rs#2584](https://github.com/smithy-lang/smithy-rs/issues/2584)) Fix server code generation bug affecting constrained shapes bound with `@httpPayload` +- (client, [smithy-rs#2603](https://github.com/smithy-lang/smithy-rs/issues/2603)) Add a sensitive method to `ParseHttpResponse`. When this returns true, logging of the HTTP response body will be suppressed. **Contributors** Thank you for your contributions! ❤ - @abusch ([aws-sdk-rust#784](https://github.com/awslabs/aws-sdk-rust/issues/784)) -- @eduardomourar ([smithy-rs#2254](https://github.com/awslabs/smithy-rs/issues/2254)) +- @eduardomourar ([smithy-rs#2254](https://github.com/smithy-lang/smithy-rs/issues/2254)) April 11th, 2023 @@ -583,10 +583,10 @@ April 11th, 2023 March 23rd, 2023 ================ **Breaking Changes:** -- ⚠🎉 (all, [smithy-rs#2467](https://github.com/awslabs/smithy-rs/issues/2467)) Update MSRV to 1.66.1 -- ⚠ (client, [smithy-rs#76](https://github.com/awslabs/smithy-rs/issues/76), [smithy-rs#2129](https://github.com/awslabs/smithy-rs/issues/2129)) Generic clients no longer expose a `request_id()` function on errors. To get request ID functionality, use the SDK code generator. -- ⚠ (client, [smithy-rs#76](https://github.com/awslabs/smithy-rs/issues/76), [smithy-rs#2129](https://github.com/awslabs/smithy-rs/issues/2129)) The `message()` and `code()` methods on errors have been moved into `ProvideErrorMetadata` trait. This trait will need to be imported to continue calling these. -- ⚠ (client, [smithy-rs#76](https://github.com/awslabs/smithy-rs/issues/76), [smithy-rs#2129](https://github.com/awslabs/smithy-rs/issues/2129), [smithy-rs#2075](https://github.com/awslabs/smithy-rs/issues/2075)) The `*Error` and `*ErrorKind` types have been combined to make error matching simpler. +- ⚠🎉 (all, [smithy-rs#2467](https://github.com/smithy-lang/smithy-rs/issues/2467)) Update MSRV to 1.66.1 +- ⚠ (client, [smithy-rs#76](https://github.com/smithy-lang/smithy-rs/issues/76), [smithy-rs#2129](https://github.com/smithy-lang/smithy-rs/issues/2129)) Generic clients no longer expose a `request_id()` function on errors. To get request ID functionality, use the SDK code generator. +- ⚠ (client, [smithy-rs#76](https://github.com/smithy-lang/smithy-rs/issues/76), [smithy-rs#2129](https://github.com/smithy-lang/smithy-rs/issues/2129)) The `message()` and `code()` methods on errors have been moved into `ProvideErrorMetadata` trait. This trait will need to be imported to continue calling these. +- ⚠ (client, [smithy-rs#76](https://github.com/smithy-lang/smithy-rs/issues/76), [smithy-rs#2129](https://github.com/smithy-lang/smithy-rs/issues/2129), [smithy-rs#2075](https://github.com/smithy-lang/smithy-rs/issues/2075)) The `*Error` and `*ErrorKind` types have been combined to make error matching simpler.
Example with S3 **Before:** @@ -634,11 +634,11 @@ March 23rd, 2023 } ```
-- ⚠ (client, [smithy-rs#76](https://github.com/awslabs/smithy-rs/issues/76), [smithy-rs#2129](https://github.com/awslabs/smithy-rs/issues/2129)) `aws_smithy_types::Error` has been renamed to `aws_smithy_types::error::ErrorMetadata`. -- ⚠ (server, [smithy-rs#2436](https://github.com/awslabs/smithy-rs/issues/2436)) Remove unnecessary type parameter `B` from `Upgrade` service. -- 🐛⚠ (server, [smithy-rs#2382](https://github.com/awslabs/smithy-rs/issues/2382)) Smithy members named `send` were previously renamed to `send_value` at codegen time. These will now be called `send` in the generated code. -- ⚠ (client, [smithy-rs#2448](https://github.com/awslabs/smithy-rs/issues/2448)) The modules in generated client crates have been reorganized. See the [Client Crate Reorganization Upgrade Guidance](https://github.com/awslabs/smithy-rs/discussions/2449) to see how to fix your code after this change. -- ⚠ (server, [smithy-rs#2438](https://github.com/awslabs/smithy-rs/issues/2438)) Servers can send the `ServerRequestId` in the response headers. +- ⚠ (client, [smithy-rs#76](https://github.com/smithy-lang/smithy-rs/issues/76), [smithy-rs#2129](https://github.com/smithy-lang/smithy-rs/issues/2129)) `aws_smithy_types::Error` has been renamed to `aws_smithy_types::error::ErrorMetadata`. +- ⚠ (server, [smithy-rs#2436](https://github.com/smithy-lang/smithy-rs/issues/2436)) Remove unnecessary type parameter `B` from `Upgrade` service. +- 🐛⚠ (server, [smithy-rs#2382](https://github.com/smithy-lang/smithy-rs/issues/2382)) Smithy members named `send` were previously renamed to `send_value` at codegen time. These will now be called `send` in the generated code. +- ⚠ (client, [smithy-rs#2448](https://github.com/smithy-lang/smithy-rs/issues/2448)) The modules in generated client crates have been reorganized. See the [Client Crate Reorganization Upgrade Guidance](https://github.com/smithy-lang/smithy-rs/discussions/2449) to see how to fix your code after this change. +- ⚠ (server, [smithy-rs#2438](https://github.com/smithy-lang/smithy-rs/issues/2438)) Servers can send the `ServerRequestId` in the response headers. Servers need to create their service using the new layer builder `ServerRequestIdProviderLayer::new_with_response_header`: ``` let app = app @@ -647,7 +647,7 @@ March 23rd, 2023 **New this release:** - 🐛🎉 (client, [aws-sdk-rust#740](https://github.com/awslabs/aws-sdk-rust/issues/740)) Fluent builder methods on the client are now marked as deprecated when the related operation is deprecated. -- 🎉 (all, [smithy-rs#2398](https://github.com/awslabs/smithy-rs/issues/2398)) Add support for the `awsQueryCompatible` trait. This allows services to continue supporting a custom error code (via the `awsQueryError` trait) when the services migrate their protocol from `awsQuery` to `awsJson1_0` annotated with `awsQueryCompatible`. +- 🎉 (all, [smithy-rs#2398](https://github.com/smithy-lang/smithy-rs/issues/2398)) Add support for the `awsQueryCompatible` trait. This allows services to continue supporting a custom error code (via the `awsQueryError` trait) when the services migrate their protocol from `awsQuery` to `awsJson1_0` annotated with `awsQueryCompatible`.
Click to expand for more details... @@ -681,31 +681,31 @@ March 23rd, 2023 }
``` -- 🎉 (client, [smithy-rs#2428](https://github.com/awslabs/smithy-rs/issues/2428), [smithy-rs#2208](https://github.com/awslabs/smithy-rs/issues/2208)) `SdkError` variants can now be constructed for easier unit testing. -- 🐛 (server, [smithy-rs#2441](https://github.com/awslabs/smithy-rs/issues/2441)) Fix `FilterByOperationName` plugin. This previous caused services with this applied to fail to compile due to mismatched bounds. -- (client, [smithy-rs#2437](https://github.com/awslabs/smithy-rs/issues/2437), [aws-sdk-rust#600](https://github.com/awslabs/aws-sdk-rust/issues/600)) Add more client re-exports. Specifically, it re-exports `aws_smithy_http::body::SdkBody`, `aws_smithy_http::byte_stream::error::Error`, and `aws_smithy_http::operation::{Request, Response}`. -- 🐛 (all, [smithy-rs#2226](https://github.com/awslabs/smithy-rs/issues/2226)) Fix bug in timestamp format resolution. Prior to this fix, the timestamp format may have been incorrect if set on the target instead of on the member. -- (all, [smithy-rs#2226](https://github.com/awslabs/smithy-rs/issues/2226)) Add support for offsets when parsing datetimes. RFC3339 date times now support offsets like `-0200` -- (client, [aws-sdk-rust#160](https://github.com/awslabs/aws-sdk-rust/issues/160), [smithy-rs#2445](https://github.com/awslabs/smithy-rs/issues/2445)) Reconnect on transient errors. +- 🎉 (client, [smithy-rs#2428](https://github.com/smithy-lang/smithy-rs/issues/2428), [smithy-rs#2208](https://github.com/smithy-lang/smithy-rs/issues/2208)) `SdkError` variants can now be constructed for easier unit testing. +- 🐛 (server, [smithy-rs#2441](https://github.com/smithy-lang/smithy-rs/issues/2441)) Fix `FilterByOperationName` plugin. This previous caused services with this applied to fail to compile due to mismatched bounds. +- (client, [smithy-rs#2437](https://github.com/smithy-lang/smithy-rs/issues/2437), [aws-sdk-rust#600](https://github.com/awslabs/aws-sdk-rust/issues/600)) Add more client re-exports. Specifically, it re-exports `aws_smithy_http::body::SdkBody`, `aws_smithy_http::byte_stream::error::Error`, and `aws_smithy_http::operation::{Request, Response}`. +- 🐛 (all, [smithy-rs#2226](https://github.com/smithy-lang/smithy-rs/issues/2226)) Fix bug in timestamp format resolution. Prior to this fix, the timestamp format may have been incorrect if set on the target instead of on the member. +- (all, [smithy-rs#2226](https://github.com/smithy-lang/smithy-rs/issues/2226)) Add support for offsets when parsing datetimes. RFC3339 date times now support offsets like `-0200` +- (client, [aws-sdk-rust#160](https://github.com/awslabs/aws-sdk-rust/issues/160), [smithy-rs#2445](https://github.com/smithy-lang/smithy-rs/issues/2445)) Reconnect on transient errors. Note: **this behavior is disabled by default for generic clients**. It can be enabled with `aws_smithy_client::Builder::reconnect_on_transient_errors` If a transient error (timeout, 500, 503, 503) is encountered, the connection will be evicted from the pool and will not be reused. -- (all, [smithy-rs#2474](https://github.com/awslabs/smithy-rs/issues/2474)) Increase Tokio version to 1.23.1 for all crates. This is to address [RUSTSEC-2023-0001](https://rustsec.org/advisories/RUSTSEC-2023-0001) +- (all, [smithy-rs#2474](https://github.com/smithy-lang/smithy-rs/issues/2474)) Increase Tokio version to 1.23.1 for all crates. This is to address [RUSTSEC-2023-0001](https://rustsec.org/advisories/RUSTSEC-2023-0001) January 25th, 2023 ================== **New this release:** -- 🐛 (server, [smithy-rs#920](https://github.com/awslabs/smithy-rs/issues/920)) Fix bug in `OperationExtensionFuture`s `Future::poll` implementation +- 🐛 (server, [smithy-rs#920](https://github.com/smithy-lang/smithy-rs/issues/920)) Fix bug in `OperationExtensionFuture`s `Future::poll` implementation January 24th, 2023 ================== **Breaking Changes:** -- ⚠ (server, [smithy-rs#2161](https://github.com/awslabs/smithy-rs/issues/2161)) Remove deprecated service builder, this includes: +- ⚠ (server, [smithy-rs#2161](https://github.com/smithy-lang/smithy-rs/issues/2161)) Remove deprecated service builder, this includes: - Remove `aws_smithy_http_server::routing::Router` and `aws_smithy_http_server::request::RequestParts`. - Move the `aws_smithy_http_server::routers::Router` trait and `aws_smithy_http_server::routing::RoutingService` into `aws_smithy_http_server::routing`. @@ -714,42 +714,42 @@ January 24th, 2023 - `operation_handler.rs` - `server_operation_handler_trait.rs` - If migration to the new service builder API has not already been completed a brief summary of required changes can be seen in [previous release notes](https://github.com/awslabs/smithy-rs/releases/tag/release-2022-12-12) and in API documentation of the root crate. + If migration to the new service builder API has not already been completed a brief summary of required changes can be seen in [previous release notes](https://github.com/smithy-lang/smithy-rs/releases/tag/release-2022-12-12) and in API documentation of the root crate. **New this release:** -- 🐛 (server, [smithy-rs#2213](https://github.com/awslabs/smithy-rs/issues/2213)) `@sparse` list shapes and map shapes with constraint traits and with constrained members are now supported -- 🐛 (server, [smithy-rs#2200](https://github.com/awslabs/smithy-rs/pull/2200)) Event streams no longer generate empty error enums when their operations don’t have modeled errors -- (all, [smithy-rs#2223](https://github.com/awslabs/smithy-rs/issues/2223)) `aws_smithy_types::date_time::DateTime`, `aws_smithy_types::Blob` now implement the `Eq` and `Hash` traits -- (server, [smithy-rs#2223](https://github.com/awslabs/smithy-rs/issues/2223)) Code-generated types for server SDKs now implement the `Eq` and `Hash` traits when possible +- 🐛 (server, [smithy-rs#2213](https://github.com/smithy-lang/smithy-rs/issues/2213)) `@sparse` list shapes and map shapes with constraint traits and with constrained members are now supported +- 🐛 (server, [smithy-rs#2200](https://github.com/smithy-lang/smithy-rs/pull/2200)) Event streams no longer generate empty error enums when their operations don’t have modeled errors +- (all, [smithy-rs#2223](https://github.com/smithy-lang/smithy-rs/issues/2223)) `aws_smithy_types::date_time::DateTime`, `aws_smithy_types::Blob` now implement the `Eq` and `Hash` traits +- (server, [smithy-rs#2223](https://github.com/smithy-lang/smithy-rs/issues/2223)) Code-generated types for server SDKs now implement the `Eq` and `Hash` traits when possible January 12th, 2023 ================== **New this release:** -- 🐛 (server, [smithy-rs#2201](https://github.com/awslabs/smithy-rs/issues/2201)) Fix severe bug where a router fails to deserialize percent-encoded query strings, reporting no operation match when there could be one. If your Smithy model uses an operation with a request URI spec containing [query string literals](https://smithy.io/2.0/spec/http-bindings.html#query-string-literals), you are affected. This fix was released in `aws-smithy-http-server` v0.53.1. +- 🐛 (server, [smithy-rs#2201](https://github.com/smithy-lang/smithy-rs/issues/2201)) Fix severe bug where a router fails to deserialize percent-encoded query strings, reporting no operation match when there could be one. If your Smithy model uses an operation with a request URI spec containing [query string literals](https://smithy.io/2.0/spec/http-bindings.html#query-string-literals), you are affected. This fix was released in `aws-smithy-http-server` v0.53.1. January 11th, 2023 ================== **Breaking Changes:** -- ⚠ (client, [smithy-rs#2099](https://github.com/awslabs/smithy-rs/issues/2099)) The Rust client codegen plugin is now called `rust-client-codegen` instead of `rust-codegen`. Be sure to update your `smithy-build.json` files to refer to the correct plugin name. -- ⚠ (client, [smithy-rs#2099](https://github.com/awslabs/smithy-rs/issues/2099)) Client codegen plugins need to define a service named `software.amazon.smithy.rust.codegen.client.smithy.customize.ClientCodegenDecorator` (this is the new file name for the plugin definition in `resources/META-INF/services`). -- ⚠ (server, [smithy-rs#2099](https://github.com/awslabs/smithy-rs/issues/2099)) Server codegen plugins need to define a service named `software.amazon.smithy.rust.codegen.server.smithy.customize.ServerCodegenDecorator` (this is the new file name for the plugin definition in `resources/META-INF/services`). +- ⚠ (client, [smithy-rs#2099](https://github.com/smithy-lang/smithy-rs/issues/2099)) The Rust client codegen plugin is now called `rust-client-codegen` instead of `rust-codegen`. Be sure to update your `smithy-build.json` files to refer to the correct plugin name. +- ⚠ (client, [smithy-rs#2099](https://github.com/smithy-lang/smithy-rs/issues/2099)) Client codegen plugins need to define a service named `software.amazon.smithy.rust.codegen.client.smithy.customize.ClientCodegenDecorator` (this is the new file name for the plugin definition in `resources/META-INF/services`). +- ⚠ (server, [smithy-rs#2099](https://github.com/smithy-lang/smithy-rs/issues/2099)) Server codegen plugins need to define a service named `software.amazon.smithy.rust.codegen.server.smithy.customize.ServerCodegenDecorator` (this is the new file name for the plugin definition in `resources/META-INF/services`). **New this release:** -- 🐛 (server, [smithy-rs#2103](https://github.com/awslabs/smithy-rs/issues/2103)) In 0.52, `@length`-constrained collection shapes whose members are not constrained made the server code generator crash. This has been fixed. -- (server, [smithy-rs#1879](https://github.com/awslabs/smithy-rs/issues/1879)) Servers support the `@default` trait: models can specify default values. Default values will be automatically supplied when not manually set. -- (server, [smithy-rs#2131](https://github.com/awslabs/smithy-rs/issues/2131)) The constraint `@length` on non-streaming blob shapes is supported. -- 🐛 (client, [smithy-rs#2150](https://github.com/awslabs/smithy-rs/issues/2150)) Fix bug where string default values were not supported for endpoint parameters -- 🐛 (all, [smithy-rs#2170](https://github.com/awslabs/smithy-rs/issues/2170), [aws-sdk-rust#706](https://github.com/awslabs/aws-sdk-rust/issues/706)) Remove the webpki-roots feature from `hyper-rustls` -- 🐛 (server, [smithy-rs#2054](https://github.com/awslabs/smithy-rs/issues/2054)) Servers can generate a unique request ID and use it in their handlers. +- 🐛 (server, [smithy-rs#2103](https://github.com/smithy-lang/smithy-rs/issues/2103)) In 0.52, `@length`-constrained collection shapes whose members are not constrained made the server code generator crash. This has been fixed. +- (server, [smithy-rs#1879](https://github.com/smithy-lang/smithy-rs/issues/1879)) Servers support the `@default` trait: models can specify default values. Default values will be automatically supplied when not manually set. +- (server, [smithy-rs#2131](https://github.com/smithy-lang/smithy-rs/issues/2131)) The constraint `@length` on non-streaming blob shapes is supported. +- 🐛 (client, [smithy-rs#2150](https://github.com/smithy-lang/smithy-rs/issues/2150)) Fix bug where string default values were not supported for endpoint parameters +- 🐛 (all, [smithy-rs#2170](https://github.com/smithy-lang/smithy-rs/issues/2170), [aws-sdk-rust#706](https://github.com/awslabs/aws-sdk-rust/issues/706)) Remove the webpki-roots feature from `hyper-rustls` +- 🐛 (server, [smithy-rs#2054](https://github.com/smithy-lang/smithy-rs/issues/2054)) Servers can generate a unique request ID and use it in their handlers. December 12th, 2022 =================== **Breaking Changes:** -- ⚠🎉 (all, [smithy-rs#1938](https://github.com/awslabs/smithy-rs/issues/1938), @jjantdev) Upgrade Rust MSRV to 1.62.1 -- ⚠🎉 (server, [smithy-rs#1199](https://github.com/awslabs/smithy-rs/issues/1199), [smithy-rs#1342](https://github.com/awslabs/smithy-rs/issues/1342), [smithy-rs#1401](https://github.com/awslabs/smithy-rs/issues/1401), [smithy-rs#1998](https://github.com/awslabs/smithy-rs/issues/1998), [smithy-rs#2005](https://github.com/awslabs/smithy-rs/issues/2005), [smithy-rs#2028](https://github.com/awslabs/smithy-rs/issues/2028), [smithy-rs#2034](https://github.com/awslabs/smithy-rs/issues/2034), [smithy-rs#2036](https://github.com/awslabs/smithy-rs/issues/2036)) [Constraint traits](https://awslabs.github.io/smithy/2.0/spec/constraint-traits.html) in server SDKs are beginning to be supported. The following are now supported: +- ⚠🎉 (all, [smithy-rs#1938](https://github.com/smithy-lang/smithy-rs/issues/1938), @jjantdev) Upgrade Rust MSRV to 1.62.1 +- ⚠🎉 (server, [smithy-rs#1199](https://github.com/smithy-lang/smithy-rs/issues/1199), [smithy-rs#1342](https://github.com/smithy-lang/smithy-rs/issues/1342), [smithy-rs#1401](https://github.com/smithy-lang/smithy-rs/issues/1401), [smithy-rs#1998](https://github.com/smithy-lang/smithy-rs/issues/1998), [smithy-rs#2005](https://github.com/smithy-lang/smithy-rs/issues/2005), [smithy-rs#2028](https://github.com/smithy-lang/smithy-rs/issues/2028), [smithy-rs#2034](https://github.com/smithy-lang/smithy-rs/issues/2034), [smithy-rs#2036](https://github.com/smithy-lang/smithy-rs/issues/2036)) [Constraint traits](https://awslabs.github.io/smithy/2.0/spec/constraint-traits.html) in server SDKs are beginning to be supported. The following are now supported: * The `length` trait on `string` shapes. * The `length` trait on `map` shapes. @@ -775,7 +775,7 @@ December 12th, 2022 } } ``` -- ⚠🎉 (server, [smithy-rs#1342](https://github.com/awslabs/smithy-rs/issues/1342), [smithy-rs#1119](https://github.com/awslabs/smithy-rs/issues/1119)) Server SDKs now generate "constrained types" for constrained shapes. Constrained types are [newtypes](https://rust-unofficial.github.io/patterns/patterns/behavioural/newtype.html) that encapsulate the modeled constraints. They constitute a [widespread pattern to guarantee domain invariants](https://www.lpalmieri.com/posts/2020-12-11-zero-to-production-6-domain-modelling/) and promote correctness in your business logic. So, for example, the model: +- ⚠🎉 (server, [smithy-rs#1342](https://github.com/smithy-lang/smithy-rs/issues/1342), [smithy-rs#1119](https://github.com/smithy-lang/smithy-rs/issues/1119)) Server SDKs now generate "constrained types" for constrained shapes. Constrained types are [newtypes](https://rust-unofficial.github.io/patterns/patterns/behavioural/newtype.html) that encapsulate the modeled constraints. They constitute a [widespread pattern to guarantee domain invariants](https://www.lpalmieri.com/posts/2020-12-11-zero-to-production-6-domain-modelling/) and promote correctness in your business logic. So, for example, the model: ```smithy @length(min: 1, max: 69) @@ -791,7 +791,7 @@ December 12th, 2022 A failed attempt to instantiate a constrained type will yield a `ConstraintViolation` error type you may want to handle. This type's API is subject to change. - Constrained types _guarantee_, by virtue of the type system, that your service's operation outputs adhere to the modeled constraints. To learn more about the motivation for constrained types and how they work, see [the RFC](https://github.com/awslabs/smithy-rs/pull/1199). + Constrained types _guarantee_, by virtue of the type system, that your service's operation outputs adhere to the modeled constraints. To learn more about the motivation for constrained types and how they work, see [the RFC](https://github.com/smithy-lang/smithy-rs/pull/1199). If you'd like to opt-out of generating constrained types, you can set `codegen.publicConstrainedTypes` to `false`. Note that if you do, the generated server SDK will still honor your operation input's modeled constraints upon receiving a request, but will not help you in writing business logic code that adheres to the constraints, and _will not prevent you from returning responses containing operation outputs that violate said constraints_. @@ -806,7 +806,7 @@ December 12th, 2022 } } ``` -- 🐛⚠🎉 (server, [smithy-rs#1714](https://github.com/awslabs/smithy-rs/issues/1714), [smithy-rs#1342](https://github.com/awslabs/smithy-rs/issues/1342)) Structure builders in server SDKs have undergone significant changes. +- 🐛⚠🎉 (server, [smithy-rs#1714](https://github.com/smithy-lang/smithy-rs/issues/1714), [smithy-rs#1342](https://github.com/smithy-lang/smithy-rs/issues/1342)) Structure builders in server SDKs have undergone significant changes. The API surface has been reduced. It is now simpler and closely follows what you would get when using the [`derive_builder`](https://docs.rs/derive_builder/latest/derive_builder/) crate: @@ -875,7 +875,7 @@ December 12th, 2022 // (5) Builder type can be fallibly converted to the structure using `TryFrom` or `TryInto`. let _error = Pokemon::try_from(eevee_builder).expect_err("name was not provided"); ``` -- ⚠🎉 (server, [smithy-rs#1620](https://github.com/awslabs/smithy-rs/issues/1620), [smithy-rs#1666](https://github.com/awslabs/smithy-rs/issues/1666), [smithy-rs#1731](https://github.com/awslabs/smithy-rs/issues/1731), [smithy-rs#1736](https://github.com/awslabs/smithy-rs/issues/1736), [smithy-rs#1753](https://github.com/awslabs/smithy-rs/issues/1753), [smithy-rs#1738](https://github.com/awslabs/smithy-rs/issues/1738), [smithy-rs#1782](https://github.com/awslabs/smithy-rs/issues/1782), [smithy-rs#1829](https://github.com/awslabs/smithy-rs/issues/1829), [smithy-rs#1837](https://github.com/awslabs/smithy-rs/issues/1837), [smithy-rs#1891](https://github.com/awslabs/smithy-rs/issues/1891), [smithy-rs#1840](https://github.com/awslabs/smithy-rs/issues/1840), [smithy-rs#1844](https://github.com/awslabs/smithy-rs/issues/1844), [smithy-rs#1858](https://github.com/awslabs/smithy-rs/issues/1858), [smithy-rs#1930](https://github.com/awslabs/smithy-rs/issues/1930), [smithy-rs#1999](https://github.com/awslabs/smithy-rs/issues/1999), [smithy-rs#2003](https://github.com/awslabs/smithy-rs/issues/2003), [smithy-rs#2008](https://github.com/awslabs/smithy-rs/issues/2008), [smithy-rs#2010](https://github.com/awslabs/smithy-rs/issues/2010), [smithy-rs#2019](https://github.com/awslabs/smithy-rs/issues/2019), [smithy-rs#2020](https://github.com/awslabs/smithy-rs/issues/2020), [smithy-rs#2021](https://github.com/awslabs/smithy-rs/issues/2021), [smithy-rs#2038](https://github.com/awslabs/smithy-rs/issues/2038), [smithy-rs#2039](https://github.com/awslabs/smithy-rs/issues/2039), [smithy-rs#2041](https://github.com/awslabs/smithy-rs/issues/2041)) ### Plugins/New Service Builder API +- ⚠🎉 (server, [smithy-rs#1620](https://github.com/smithy-lang/smithy-rs/issues/1620), [smithy-rs#1666](https://github.com/smithy-lang/smithy-rs/issues/1666), [smithy-rs#1731](https://github.com/smithy-lang/smithy-rs/issues/1731), [smithy-rs#1736](https://github.com/smithy-lang/smithy-rs/issues/1736), [smithy-rs#1753](https://github.com/smithy-lang/smithy-rs/issues/1753), [smithy-rs#1738](https://github.com/smithy-lang/smithy-rs/issues/1738), [smithy-rs#1782](https://github.com/smithy-lang/smithy-rs/issues/1782), [smithy-rs#1829](https://github.com/smithy-lang/smithy-rs/issues/1829), [smithy-rs#1837](https://github.com/smithy-lang/smithy-rs/issues/1837), [smithy-rs#1891](https://github.com/smithy-lang/smithy-rs/issues/1891), [smithy-rs#1840](https://github.com/smithy-lang/smithy-rs/issues/1840), [smithy-rs#1844](https://github.com/smithy-lang/smithy-rs/issues/1844), [smithy-rs#1858](https://github.com/smithy-lang/smithy-rs/issues/1858), [smithy-rs#1930](https://github.com/smithy-lang/smithy-rs/issues/1930), [smithy-rs#1999](https://github.com/smithy-lang/smithy-rs/issues/1999), [smithy-rs#2003](https://github.com/smithy-lang/smithy-rs/issues/2003), [smithy-rs#2008](https://github.com/smithy-lang/smithy-rs/issues/2008), [smithy-rs#2010](https://github.com/smithy-lang/smithy-rs/issues/2010), [smithy-rs#2019](https://github.com/smithy-lang/smithy-rs/issues/2019), [smithy-rs#2020](https://github.com/smithy-lang/smithy-rs/issues/2020), [smithy-rs#2021](https://github.com/smithy-lang/smithy-rs/issues/2021), [smithy-rs#2038](https://github.com/smithy-lang/smithy-rs/issues/2038), [smithy-rs#2039](https://github.com/smithy-lang/smithy-rs/issues/2039), [smithy-rs#2041](https://github.com/smithy-lang/smithy-rs/issues/2041)) ### Plugins/New Service Builder API The `Router` struct has been replaced by a new `Service` located at the root of the generated crate. Its name coincides with the same name as the Smithy service you are generating. @@ -883,7 +883,7 @@ December 12th, 2022 use pokemon_service_server_sdk::PokemonService; ``` - The new service builder infrastructure comes with a `Plugin` system which supports middleware on `smithy-rs`. See the [mididleware documentation](https://github.com/awslabs/smithy-rs/blob/main/design/src/server/middleware.md) and the [API documentation](https://docs.rs/aws-smithy-http-server/latest/aws_smithy_http_server/plugin/index.html) for more details. + The new service builder infrastructure comes with a `Plugin` system which supports middleware on `smithy-rs`. See the [mididleware documentation](https://github.com/smithy-lang/smithy-rs/blob/main/design/src/server/middleware.md) and the [API documentation](https://docs.rs/aws-smithy-http-server/latest/aws_smithy_http_server/plugin/index.html) for more details. Usage of the new service builder API: @@ -931,28 +931,28 @@ December 12th, 2022 In addition to the [`ConnectInfo`](https://docs.rs/aws-smithy-http-server/latest/aws_smithy_http_server/request/connect_info/struct.ConnectInfo.html) extractor, we also have added [lambda extractors](https://docs.rs/aws-smithy-http-server/latest/aws_smithy_http_server/request/lambda/index.html) which are feature gated with `aws-lambda`. - [`FromParts` documentation](https://github.com/awslabs/smithy-rs/blob/main/design/src/server/from_parts.md) has been added. + [`FromParts` documentation](https://github.com/smithy-lang/smithy-rs/blob/main/design/src/server/from_parts.md) has been added. ### New Documentation - New sections to have been added to the [server side of the book](https://github.com/awslabs/smithy-rs/blob/main/design/src/server/overview.md). + New sections to have been added to the [server side of the book](https://github.com/smithy-lang/smithy-rs/blob/main/design/src/server/overview.md). These include: - - [Middleware](https://github.com/awslabs/smithy-rs/blob/main/design/src/server/middleware.md) - - [Accessing Un-modelled Data](https://github.com/awslabs/smithy-rs/blob/main/design/src/server/from_parts.md) - - [Anatomy of a Service](https://github.com/awslabs/smithy-rs/blob/main/design/src/server/anatomy.md) + - [Middleware](https://github.com/smithy-lang/smithy-rs/blob/main/design/src/server/middleware.md) + - [Accessing Un-modelled Data](https://github.com/smithy-lang/smithy-rs/blob/main/design/src/server/from_parts.md) + - [Anatomy of a Service](https://github.com/smithy-lang/smithy-rs/blob/main/design/src/server/anatomy.md) This release also introduces extensive documentation at the root of the generated crate. For best results compile documentation with `cargo +nightly doc --open`. ### Deprecations The existing service builder infrastructure, `OperationRegistryBuilder`/`OperationRegistry`/`Router`, is now deprecated. Customers should migrate to the newer scheme described above. The deprecated types will be removed in a future release. -- ⚠ (client, [smithy-rs#1875](https://github.com/awslabs/smithy-rs/issues/1875)) Replace bool with enum for a function parameter of `label::fmt_string`. -- ⚠ (all, [smithy-rs#1980](https://github.com/awslabs/smithy-rs/issues/1980)) aws_smithy_types_convert::date_time::DateTimeExt::to_chrono_utc returns a Result<> -- ⚠ (client, [smithy-rs#1926](https://github.com/awslabs/smithy-rs/issues/1926), [smithy-rs#1819](https://github.com/awslabs/smithy-rs/issues/1819)) Several breaking changes have been made to errors. See [the upgrade guide](https://github.com/awslabs/smithy-rs/issues/1950) for more information. -- 🐛⚠ (server, [smithy-rs#1714](https://github.com/awslabs/smithy-rs/issues/1714), [smithy-rs#1342](https://github.com/awslabs/smithy-rs/issues/1342), [smithy-rs#1860](https://github.com/awslabs/smithy-rs/issues/1860)) Server SDKs now correctly reject operation inputs that don't set values for `required` structure members. Previously, in some scenarios, server SDKs would accept the request and set a default value for the member (e.g. `""` for a `String`), even when the member shape did not have [Smithy IDL v2's `default` trait](https://awslabs.github.io/smithy/2.0/spec/type-refinement-traits.html#smithy-api-default-trait) attached. The `default` trait is [still unsupported](https://github.com/awslabs/smithy-rs/issues/1860). -- ⚠ (client, [smithy-rs#1945](https://github.com/awslabs/smithy-rs/issues/1945)) Generate enums that guide the users to write match expressions in a forward-compatible way. +- ⚠ (client, [smithy-rs#1875](https://github.com/smithy-lang/smithy-rs/issues/1875)) Replace bool with enum for a function parameter of `label::fmt_string`. +- ⚠ (all, [smithy-rs#1980](https://github.com/smithy-lang/smithy-rs/issues/1980)) aws_smithy_types_convert::date_time::DateTimeExt::to_chrono_utc returns a Result<> +- ⚠ (client, [smithy-rs#1926](https://github.com/smithy-lang/smithy-rs/issues/1926), [smithy-rs#1819](https://github.com/smithy-lang/smithy-rs/issues/1819)) Several breaking changes have been made to errors. See [the upgrade guide](https://github.com/smithy-lang/smithy-rs/issues/1950) for more information. +- 🐛⚠ (server, [smithy-rs#1714](https://github.com/smithy-lang/smithy-rs/issues/1714), [smithy-rs#1342](https://github.com/smithy-lang/smithy-rs/issues/1342), [smithy-rs#1860](https://github.com/smithy-lang/smithy-rs/issues/1860)) Server SDKs now correctly reject operation inputs that don't set values for `required` structure members. Previously, in some scenarios, server SDKs would accept the request and set a default value for the member (e.g. `""` for a `String`), even when the member shape did not have [Smithy IDL v2's `default` trait](https://awslabs.github.io/smithy/2.0/spec/type-refinement-traits.html#smithy-api-default-trait) attached. The `default` trait is [still unsupported](https://github.com/smithy-lang/smithy-rs/issues/1860). +- ⚠ (client, [smithy-rs#1945](https://github.com/smithy-lang/smithy-rs/issues/1945)) Generate enums that guide the users to write match expressions in a forward-compatible way. Before this change, users could write a match expression against an enum in a non-forward-compatible way: ```rust match some_enum { @@ -973,10 +973,10 @@ December 12th, 2022 } ``` This is forward-compatible because the execution will hit the second last match arm regardless of whether the enum defines `SomeEnum::NewVariant` or not. -- ⚠ (client, [smithy-rs#1984](https://github.com/awslabs/smithy-rs/issues/1984), [smithy-rs#1496](https://github.com/awslabs/smithy-rs/issues/1496)) Functions on `aws_smithy_http::endpoint::Endpoint` now return a `Result` instead of panicking. -- ⚠ (client, [smithy-rs#1984](https://github.com/awslabs/smithy-rs/issues/1984), [smithy-rs#1496](https://github.com/awslabs/smithy-rs/issues/1496)) `Endpoint::mutable` now takes `impl AsRef` instead of `Uri`. For the old functionality, use `Endpoint::mutable_uri`. -- ⚠ (client, [smithy-rs#1984](https://github.com/awslabs/smithy-rs/issues/1984), [smithy-rs#1496](https://github.com/awslabs/smithy-rs/issues/1496)) `Endpoint::immutable` now takes `impl AsRef` instead of `Uri`. For the old functionality, use `Endpoint::immutable_uri`. -- ⚠ (server, [smithy-rs#1982](https://github.com/awslabs/smithy-rs/issues/1982)) [RestJson1](https://awslabs.github.io/smithy/2.0/aws/protocols/aws-restjson1-protocol.html#operation-error-serialization) server SDKs now serialize the [full shape ID](https://smithy.io/2.0/spec/model.html#shape-id) (including namespace) in operation error responses. +- ⚠ (client, [smithy-rs#1984](https://github.com/smithy-lang/smithy-rs/issues/1984), [smithy-rs#1496](https://github.com/smithy-lang/smithy-rs/issues/1496)) Functions on `aws_smithy_http::endpoint::Endpoint` now return a `Result` instead of panicking. +- ⚠ (client, [smithy-rs#1984](https://github.com/smithy-lang/smithy-rs/issues/1984), [smithy-rs#1496](https://github.com/smithy-lang/smithy-rs/issues/1496)) `Endpoint::mutable` now takes `impl AsRef` instead of `Uri`. For the old functionality, use `Endpoint::mutable_uri`. +- ⚠ (client, [smithy-rs#1984](https://github.com/smithy-lang/smithy-rs/issues/1984), [smithy-rs#1496](https://github.com/smithy-lang/smithy-rs/issues/1496)) `Endpoint::immutable` now takes `impl AsRef` instead of `Uri`. For the old functionality, use `Endpoint::immutable_uri`. +- ⚠ (server, [smithy-rs#1982](https://github.com/smithy-lang/smithy-rs/issues/1982)) [RestJson1](https://awslabs.github.io/smithy/2.0/aws/protocols/aws-restjson1-protocol.html#operation-error-serialization) server SDKs now serialize the [full shape ID](https://smithy.io/2.0/spec/model.html#shape-id) (including namespace) in operation error responses. Example server error response before: @@ -995,90 +995,90 @@ December 12th, 2022 x-amzn-errortype: com.example.service#InvalidRequestException ... ``` -- ⚠ (server, [smithy-rs#2035](https://github.com/awslabs/smithy-rs/issues/2035)) All types that are exclusively relevant within the context of an AWS Lambda function are now gated behind the +- ⚠ (server, [smithy-rs#2035](https://github.com/smithy-lang/smithy-rs/issues/2035)) All types that are exclusively relevant within the context of an AWS Lambda function are now gated behind the `aws-lambda` feature flag. This will reduce the number of dependencies (and improve build times) for users that are running their Smithy services in non-serverless environments (e.g. via `hyper`). -- ⚠ (all, [smithy-rs#1983](https://github.com/awslabs/smithy-rs/issues/1983), [smithy-rs#2029](https://github.com/awslabs/smithy-rs/issues/2029)) Implementation of the Debug trait for container shapes now redacts what is printed per the sensitive trait. -- ⚠ (client, [smithy-rs#2065](https://github.com/awslabs/smithy-rs/issues/2065)) `SdkBody` callbacks have been removed. If you were using these, please [file an issue](https://github.com/awslabs/smithy-rs/issues/new) so that we can better understand your use-case and provide the support you need. -- ⚠ (client, [smithy-rs#2063](https://github.com/awslabs/smithy-rs/issues/2063)) Added SmithyEndpointStage which can be used to set an endpoint for smithy-native clients -- ⚠ (all, [smithy-rs#1989](https://github.com/awslabs/smithy-rs/issues/1989)) The Unit type for a Union member is no longer rendered. The serializers and parsers generated now function accordingly in the absence of the inner data associated with the Unit type. +- ⚠ (all, [smithy-rs#1983](https://github.com/smithy-lang/smithy-rs/issues/1983), [smithy-rs#2029](https://github.com/smithy-lang/smithy-rs/issues/2029)) Implementation of the Debug trait for container shapes now redacts what is printed per the sensitive trait. +- ⚠ (client, [smithy-rs#2065](https://github.com/smithy-lang/smithy-rs/issues/2065)) `SdkBody` callbacks have been removed. If you were using these, please [file an issue](https://github.com/smithy-lang/smithy-rs/issues/new) so that we can better understand your use-case and provide the support you need. +- ⚠ (client, [smithy-rs#2063](https://github.com/smithy-lang/smithy-rs/issues/2063)) Added SmithyEndpointStage which can be used to set an endpoint for smithy-native clients +- ⚠ (all, [smithy-rs#1989](https://github.com/smithy-lang/smithy-rs/issues/1989)) The Unit type for a Union member is no longer rendered. The serializers and parsers generated now function accordingly in the absence of the inner data associated with the Unit type. **New this release:** -- 🎉 (all, [smithy-rs#1929](https://github.com/awslabs/smithy-rs/issues/1929)) Upgrade Smithy to v1.26 -- 🎉 (client, [smithy-rs#2044](https://github.com/awslabs/smithy-rs/issues/2044), [smithy-rs#371](https://github.com/awslabs/smithy-rs/issues/371)) Fixed and improved the request `tracing` span hierarchy to improve log messages, profiling, and debuggability. -- 🐛 (all, [smithy-rs#1847](https://github.com/awslabs/smithy-rs/issues/1847)) Support Sigv4 signature generation on PowerPC 32 and 64 bit. This architecture cannot compile `ring`, so the implementation has been updated to rely on `hamc` + `sha2` to achive the same result with broader platform compatibility and higher performance. We also updated the CI which is now running as many tests as possible against i686 and PowerPC 32 and 64 bit. -- 🐛 (server, [smithy-rs#1910](https://github.com/awslabs/smithy-rs/issues/1910)) `aws_smithy_http_server::routing::Router` is exported from the crate root again. This reverts unintentional breakage that was introduced in `aws-smithy-http-server` v0.51.0 only. -- 🐛 (client, [smithy-rs#1903](https://github.com/awslabs/smithy-rs/issues/1903), [smithy-rs#1902](https://github.com/awslabs/smithy-rs/issues/1902)) Fix bug that can cause panics in paginators -- (client, [smithy-rs#1919](https://github.com/awslabs/smithy-rs/issues/1919)) Operation metadata is now added to the property bag before sending requests allowing middlewares to behave +- 🎉 (all, [smithy-rs#1929](https://github.com/smithy-lang/smithy-rs/issues/1929)) Upgrade Smithy to v1.26 +- 🎉 (client, [smithy-rs#2044](https://github.com/smithy-lang/smithy-rs/issues/2044), [smithy-rs#371](https://github.com/smithy-lang/smithy-rs/issues/371)) Fixed and improved the request `tracing` span hierarchy to improve log messages, profiling, and debuggability. +- 🐛 (all, [smithy-rs#1847](https://github.com/smithy-lang/smithy-rs/issues/1847)) Support Sigv4 signature generation on PowerPC 32 and 64 bit. This architecture cannot compile `ring`, so the implementation has been updated to rely on `hamc` + `sha2` to achive the same result with broader platform compatibility and higher performance. We also updated the CI which is now running as many tests as possible against i686 and PowerPC 32 and 64 bit. +- 🐛 (server, [smithy-rs#1910](https://github.com/smithy-lang/smithy-rs/issues/1910)) `aws_smithy_http_server::routing::Router` is exported from the crate root again. This reverts unintentional breakage that was introduced in `aws-smithy-http-server` v0.51.0 only. +- 🐛 (client, [smithy-rs#1903](https://github.com/smithy-lang/smithy-rs/issues/1903), [smithy-rs#1902](https://github.com/smithy-lang/smithy-rs/issues/1902)) Fix bug that can cause panics in paginators +- (client, [smithy-rs#1919](https://github.com/smithy-lang/smithy-rs/issues/1919)) Operation metadata is now added to the property bag before sending requests allowing middlewares to behave differently depending on the operation being sent. -- (all, [smithy-rs#1907](https://github.com/awslabs/smithy-rs/issues/1907)) Fix cargo audit issue on chrono. -- 🐛 (client, [smithy-rs#1957](https://github.com/awslabs/smithy-rs/issues/1957)) It was previously possible to send requests without setting query parameters modeled as required. Doing this may cause a +- (all, [smithy-rs#1907](https://github.com/smithy-lang/smithy-rs/issues/1907)) Fix cargo audit issue on chrono. +- 🐛 (client, [smithy-rs#1957](https://github.com/smithy-lang/smithy-rs/issues/1957)) It was previously possible to send requests without setting query parameters modeled as required. Doing this may cause a service to interpret a request incorrectly instead of just sending back a 400 error. Now, when an operation has query parameters that are marked as required, the omission of those query parameters will cause a BuildError, preventing the invalid operation from being sent. -- (all, [smithy-rs#1972](https://github.com/awslabs/smithy-rs/issues/1972)) Upgrade to Smithy 1.26.2 -- (all, [smithy-rs#2011](https://github.com/awslabs/smithy-rs/issues/2011), @lsr0) Make generated enum `values()` functions callable in const contexts. -- (client, [smithy-rs#2064](https://github.com/awslabs/smithy-rs/issues/2064), [aws-sdk-rust#632](https://github.com/awslabs/aws-sdk-rust/issues/632)) Clients now default max idle connections to 70 (previously unlimited) to reduce the likelihood of hitting max file handles in AWS Lambda. -- (client, [smithy-rs#2057](https://github.com/awslabs/smithy-rs/issues/2057), [smithy-rs#371](https://github.com/awslabs/smithy-rs/issues/371)) Add more `tracing` events to signing and event streams +- (all, [smithy-rs#1972](https://github.com/smithy-lang/smithy-rs/issues/1972)) Upgrade to Smithy 1.26.2 +- (all, [smithy-rs#2011](https://github.com/smithy-lang/smithy-rs/issues/2011), @lsr0) Make generated enum `values()` functions callable in const contexts. +- (client, [smithy-rs#2064](https://github.com/smithy-lang/smithy-rs/issues/2064), [aws-sdk-rust#632](https://github.com/awslabs/aws-sdk-rust/issues/632)) Clients now default max idle connections to 70 (previously unlimited) to reduce the likelihood of hitting max file handles in AWS Lambda. +- (client, [smithy-rs#2057](https://github.com/smithy-lang/smithy-rs/issues/2057), [smithy-rs#371](https://github.com/smithy-lang/smithy-rs/issues/371)) Add more `tracing` events to signing and event streams **Contributors** Thank you for your contributions! ❤ -- @jjantdev ([smithy-rs#1938](https://github.com/awslabs/smithy-rs/issues/1938)) -- @lsr0 ([smithy-rs#2011](https://github.com/awslabs/smithy-rs/issues/2011)) +- @jjantdev ([smithy-rs#1938](https://github.com/smithy-lang/smithy-rs/issues/1938)) +- @lsr0 ([smithy-rs#2011](https://github.com/smithy-lang/smithy-rs/issues/2011)) October 24th, 2022 ================== **Breaking Changes:** -- ⚠ (all, [smithy-rs#1825](https://github.com/awslabs/smithy-rs/issues/1825)) Bump MSRV to be 1.62.0. -- ⚠ (server, [smithy-rs#1825](https://github.com/awslabs/smithy-rs/issues/1825)) Bump pyo3 and pyo3-asyncio from 0.16.x to 0.17.0 for aws-smithy-http-server-python. -- ⚠ (client, [smithy-rs#1811](https://github.com/awslabs/smithy-rs/issues/1811)) Replace all usages of `AtomicU64` with `AtomicUsize` to support 32bit targets. -- ⚠ (server, [smithy-rs#1803](https://github.com/awslabs/smithy-rs/issues/1803)) Mark `operation` and `operation_handler` modules as private in the generated server crate. +- ⚠ (all, [smithy-rs#1825](https://github.com/smithy-lang/smithy-rs/issues/1825)) Bump MSRV to be 1.62.0. +- ⚠ (server, [smithy-rs#1825](https://github.com/smithy-lang/smithy-rs/issues/1825)) Bump pyo3 and pyo3-asyncio from 0.16.x to 0.17.0 for aws-smithy-http-server-python. +- ⚠ (client, [smithy-rs#1811](https://github.com/smithy-lang/smithy-rs/issues/1811)) Replace all usages of `AtomicU64` with `AtomicUsize` to support 32bit targets. +- ⚠ (server, [smithy-rs#1803](https://github.com/smithy-lang/smithy-rs/issues/1803)) Mark `operation` and `operation_handler` modules as private in the generated server crate. Both modules did not contain any public types, therefore there should be no actual breakage when updating. -- ⚠ (client, [smithy-rs#1740](https://github.com/awslabs/smithy-rs/issues/1740), [smithy-rs#256](https://github.com/awslabs/smithy-rs/issues/256)) A large list of breaking changes were made to accomodate default timeouts in the AWS SDK. - See [the smithy-rs upgrade guide](https://github.com/awslabs/smithy-rs/issues/1760) for a full list +- ⚠ (client, [smithy-rs#1740](https://github.com/smithy-lang/smithy-rs/issues/1740), [smithy-rs#256](https://github.com/smithy-lang/smithy-rs/issues/256)) A large list of breaking changes were made to accomodate default timeouts in the AWS SDK. + See [the smithy-rs upgrade guide](https://github.com/smithy-lang/smithy-rs/issues/1760) for a full list of breaking changes and how to resolve them. -- ⚠ (server, [smithy-rs#1829](https://github.com/awslabs/smithy-rs/issues/1829)) Remove `Protocol` enum, removing an obstruction to extending smithy to third-party protocols. -- ⚠ (server, [smithy-rs#1829](https://github.com/awslabs/smithy-rs/issues/1829)) Convert the `protocol` argument on `PyMiddlewares::new` constructor to a type parameter. -- ⚠ (server, [smithy-rs#1753](https://github.com/awslabs/smithy-rs/issues/1753)) `aws_smithy_http_server::routing::Router` is no longer exported from the crate root. This was unintentional breakage that will be reverted in the next release. +- ⚠ (server, [smithy-rs#1829](https://github.com/smithy-lang/smithy-rs/issues/1829)) Remove `Protocol` enum, removing an obstruction to extending smithy to third-party protocols. +- ⚠ (server, [smithy-rs#1829](https://github.com/smithy-lang/smithy-rs/issues/1829)) Convert the `protocol` argument on `PyMiddlewares::new` constructor to a type parameter. +- ⚠ (server, [smithy-rs#1753](https://github.com/smithy-lang/smithy-rs/issues/1753)) `aws_smithy_http_server::routing::Router` is no longer exported from the crate root. This was unintentional breakage that will be reverted in the next release. **New this release:** -- (server, [smithy-rs#1811](https://github.com/awslabs/smithy-rs/issues/1811)) Replace all usages of `AtomicU64` with `AtomicUsize` to support 32bit targets. -- 🐛 (all, [smithy-rs#1802](https://github.com/awslabs/smithy-rs/issues/1802)) Sensitive fields in errors now respect @sensitive trait and are properly redacted. -- (server, [smithy-rs#1727](https://github.com/awslabs/smithy-rs/issues/1727), @GeneralSwiss) Pokémon Service example code now runs clippy during build. -- (server, [smithy-rs#1734](https://github.com/awslabs/smithy-rs/issues/1734)) Implement support for pure Python request middleware. Improve idiomatic logging support over tracing. -- 🐛 (client, [aws-sdk-rust#620](https://github.com/awslabs/aws-sdk-rust/issues/620), [smithy-rs#1748](https://github.com/awslabs/smithy-rs/issues/1748)) Paginators now stop on encountering a duplicate token by default rather than panic. This behavior can be customized by toggling the `stop_on_duplicate_token` property on the paginator before calling `send`. -- 🐛 (all, [smithy-rs#1817](https://github.com/awslabs/smithy-rs/issues/1817), @ethyi) Update aws-types zeroize to flexible version to prevent downstream version conflicts. -- (all, [smithy-rs#1852](https://github.com/awslabs/smithy-rs/issues/1852), @ogudavid) Enable local maven repo dependency override. +- (server, [smithy-rs#1811](https://github.com/smithy-lang/smithy-rs/issues/1811)) Replace all usages of `AtomicU64` with `AtomicUsize` to support 32bit targets. +- 🐛 (all, [smithy-rs#1802](https://github.com/smithy-lang/smithy-rs/issues/1802)) Sensitive fields in errors now respect @sensitive trait and are properly redacted. +- (server, [smithy-rs#1727](https://github.com/smithy-lang/smithy-rs/issues/1727), @GeneralSwiss) Pokémon Service example code now runs clippy during build. +- (server, [smithy-rs#1734](https://github.com/smithy-lang/smithy-rs/issues/1734)) Implement support for pure Python request middleware. Improve idiomatic logging support over tracing. +- 🐛 (client, [aws-sdk-rust#620](https://github.com/awslabs/aws-sdk-rust/issues/620), [smithy-rs#1748](https://github.com/smithy-lang/smithy-rs/issues/1748)) Paginators now stop on encountering a duplicate token by default rather than panic. This behavior can be customized by toggling the `stop_on_duplicate_token` property on the paginator before calling `send`. +- 🐛 (all, [smithy-rs#1817](https://github.com/smithy-lang/smithy-rs/issues/1817), @ethyi) Update aws-types zeroize to flexible version to prevent downstream version conflicts. +- (all, [smithy-rs#1852](https://github.com/smithy-lang/smithy-rs/issues/1852), @ogudavid) Enable local maven repo dependency override. **Contributors** Thank you for your contributions! ❤ -- @GeneralSwiss ([smithy-rs#1727](https://github.com/awslabs/smithy-rs/issues/1727)) -- @ethyi ([smithy-rs#1817](https://github.com/awslabs/smithy-rs/issues/1817)) -- @ogudavid ([smithy-rs#1852](https://github.com/awslabs/smithy-rs/issues/1852)) +- @GeneralSwiss ([smithy-rs#1727](https://github.com/smithy-lang/smithy-rs/issues/1727)) +- @ethyi ([smithy-rs#1817](https://github.com/smithy-lang/smithy-rs/issues/1817)) +- @ogudavid ([smithy-rs#1852](https://github.com/smithy-lang/smithy-rs/issues/1852)) September 20th, 2022 ==================== **Breaking Changes:** -- ⚠ (client, [smithy-rs#1603](https://github.com/awslabs/smithy-rs/issues/1603), [aws-sdk-rust#586](https://github.com/awslabs/aws-sdk-rust/issues/586)) `aws_smithy_types::RetryConfig` no longer implements `Default`, and its `new` function has been replaced with `standard`. -- ⚠ (client, [smithy-rs#1603](https://github.com/awslabs/smithy-rs/issues/1603), [aws-sdk-rust#586](https://github.com/awslabs/aws-sdk-rust/issues/586)) Client creation now panics if retries or timeouts are enabled without an async sleep implementation. +- ⚠ (client, [smithy-rs#1603](https://github.com/smithy-lang/smithy-rs/issues/1603), [aws-sdk-rust#586](https://github.com/awslabs/aws-sdk-rust/issues/586)) `aws_smithy_types::RetryConfig` no longer implements `Default`, and its `new` function has been replaced with `standard`. +- ⚠ (client, [smithy-rs#1603](https://github.com/smithy-lang/smithy-rs/issues/1603), [aws-sdk-rust#586](https://github.com/awslabs/aws-sdk-rust/issues/586)) Client creation now panics if retries or timeouts are enabled without an async sleep implementation. If you're using the Tokio runtime and have the `rt-tokio` feature enabled (which is enabled by default), then you shouldn't notice this change at all. Otherwise, if using something other than Tokio as the async runtime, the `AsyncSleep` trait must be implemented, and that implementation given to the config builder via the `sleep_impl` method. Alternatively, retry can be explicitly turned off by setting `max_attempts` to 1, which will result in successful client creation without an async sleep implementation. -- ⚠ (client, [smithy-rs#1603](https://github.com/awslabs/smithy-rs/issues/1603), [aws-sdk-rust#586](https://github.com/awslabs/aws-sdk-rust/issues/586)) The `default_async_sleep` method on the `Client` builder has been removed. The default async sleep is +- ⚠ (client, [smithy-rs#1603](https://github.com/smithy-lang/smithy-rs/issues/1603), [aws-sdk-rust#586](https://github.com/awslabs/aws-sdk-rust/issues/586)) The `default_async_sleep` method on the `Client` builder has been removed. The default async sleep is wired up by default if none is provided. -- ⚠ (client, [smithy-rs#976](https://github.com/awslabs/smithy-rs/issues/976), [smithy-rs#1710](https://github.com/awslabs/smithy-rs/issues/1710)) Removed the need to generate operation output and retry aliases in codegen. -- ⚠ (client, [smithy-rs#1715](https://github.com/awslabs/smithy-rs/issues/1715), [smithy-rs#1717](https://github.com/awslabs/smithy-rs/issues/1717)) `ClassifyResponse` was renamed to `ClassifyRetry` and is no longer implemented for the unit type. -- ⚠ (client, [smithy-rs#1715](https://github.com/awslabs/smithy-rs/issues/1715), [smithy-rs#1717](https://github.com/awslabs/smithy-rs/issues/1717)) The `with_retry_policy` and `retry_policy` functions on `aws_smithy_http::operation::Operation` have been +- ⚠ (client, [smithy-rs#976](https://github.com/smithy-lang/smithy-rs/issues/976), [smithy-rs#1710](https://github.com/smithy-lang/smithy-rs/issues/1710)) Removed the need to generate operation output and retry aliases in codegen. +- ⚠ (client, [smithy-rs#1715](https://github.com/smithy-lang/smithy-rs/issues/1715), [smithy-rs#1717](https://github.com/smithy-lang/smithy-rs/issues/1717)) `ClassifyResponse` was renamed to `ClassifyRetry` and is no longer implemented for the unit type. +- ⚠ (client, [smithy-rs#1715](https://github.com/smithy-lang/smithy-rs/issues/1715), [smithy-rs#1717](https://github.com/smithy-lang/smithy-rs/issues/1717)) The `with_retry_policy` and `retry_policy` functions on `aws_smithy_http::operation::Operation` have been renamed to `with_retry_classifier` and `retry_classifier` respectively. Public member `retry_policy` on `aws_smithy_http::operation::Parts` has been renamed to `retry_classifier`. **New this release:** -- 🎉 (client, [smithy-rs#1647](https://github.com/awslabs/smithy-rs/issues/1647), [smithy-rs#1112](https://github.com/awslabs/smithy-rs/issues/1112)) Implemented customizable operations per [RFC-0017](https://awslabs.github.io/smithy-rs/design/rfcs/rfc0017_customizable_client_operations.html). +- 🎉 (client, [smithy-rs#1647](https://github.com/smithy-lang/smithy-rs/issues/1647), [smithy-rs#1112](https://github.com/smithy-lang/smithy-rs/issues/1112)) Implemented customizable operations per [RFC-0017](https://awslabs.github.io/smithy-rs/design/rfcs/rfc0017_customizable_client_operations.html). Before this change, modifying operations before sending them required using lower-level APIs: @@ -1119,22 +1119,22 @@ September 20th, 2022 .send() .await?; ``` -- (client, [smithy-rs#1735](https://github.com/awslabs/smithy-rs/issues/1735), @vojtechkral) Lower log level of two info-level log messages. -- (all, [smithy-rs#1710](https://github.com/awslabs/smithy-rs/issues/1710)) Added `writable` property to `RustType` and `RuntimeType` that returns them in `Writable` form -- (all, [smithy-rs#1680](https://github.com/awslabs/smithy-rs/issues/1680), @ogudavid) Smithy IDL v2 mixins are now supported -- 🐛 (client, [smithy-rs#1715](https://github.com/awslabs/smithy-rs/issues/1715), [smithy-rs#1717](https://github.com/awslabs/smithy-rs/issues/1717)) Generated clients now retry transient errors without replacing the retry policy. -- 🐛 (all, [smithy-rs#1725](https://github.com/awslabs/smithy-rs/issues/1725), @sugmanue) Correctly determine nullability of members in IDLv2 models +- (client, [smithy-rs#1735](https://github.com/smithy-lang/smithy-rs/issues/1735), @vojtechkral) Lower log level of two info-level log messages. +- (all, [smithy-rs#1710](https://github.com/smithy-lang/smithy-rs/issues/1710)) Added `writable` property to `RustType` and `RuntimeType` that returns them in `Writable` form +- (all, [smithy-rs#1680](https://github.com/smithy-lang/smithy-rs/issues/1680), @ogudavid) Smithy IDL v2 mixins are now supported +- 🐛 (client, [smithy-rs#1715](https://github.com/smithy-lang/smithy-rs/issues/1715), [smithy-rs#1717](https://github.com/smithy-lang/smithy-rs/issues/1717)) Generated clients now retry transient errors without replacing the retry policy. +- 🐛 (all, [smithy-rs#1725](https://github.com/smithy-lang/smithy-rs/issues/1725), @sugmanue) Correctly determine nullability of members in IDLv2 models **Contributors** Thank you for your contributions! ❤ -- @ogudavid ([smithy-rs#1680](https://github.com/awslabs/smithy-rs/issues/1680)) -- @sugmanue ([smithy-rs#1725](https://github.com/awslabs/smithy-rs/issues/1725)) -- @vojtechkral ([smithy-rs#1735](https://github.com/awslabs/smithy-rs/issues/1735)) +- @ogudavid ([smithy-rs#1680](https://github.com/smithy-lang/smithy-rs/issues/1680)) +- @sugmanue ([smithy-rs#1725](https://github.com/smithy-lang/smithy-rs/issues/1725)) +- @vojtechkral ([smithy-rs#1735](https://github.com/smithy-lang/smithy-rs/issues/1735)) August 31st, 2022 ================= **Breaking Changes:** -- ⚠🎉 (client, [smithy-rs#1598](https://github.com/awslabs/smithy-rs/issues/1598)) Previously, the config customizations that added functionality related to retry configs, timeout configs, and the +- ⚠🎉 (client, [smithy-rs#1598](https://github.com/smithy-lang/smithy-rs/issues/1598)) Previously, the config customizations that added functionality related to retry configs, timeout configs, and the async sleep impl were defined in the smithy codegen module but were being loaded in the AWS codegen module. They have now been updated to be loaded during smithy codegen. The affected classes are all defined in the `software.amazon.smithy.rust.codegen.smithy.customizations` module of smithy codegen.` This change does not affect @@ -1150,7 +1150,7 @@ August 31st, 2022 - `PubUseRetryConfig` is now `PubUseRetryConfigGenerator` - `SleepImplProviderConfig` is now `SleepImplProviderCustomization` - `TimeoutConfigProviderConfig` is now `TimeoutConfigProviderCustomization` -- ⚠🎉 (all, [smithy-rs#1635](https://github.com/awslabs/smithy-rs/issues/1635), [smithy-rs#1416](https://github.com/awslabs/smithy-rs/issues/1416), @weihanglo) Support granular control of specifying runtime crate versions. +- ⚠🎉 (all, [smithy-rs#1635](https://github.com/smithy-lang/smithy-rs/issues/1635), [smithy-rs#1416](https://github.com/smithy-lang/smithy-rs/issues/1416), @weihanglo) Support granular control of specifying runtime crate versions. For code generation, the field `runtimeConfig.version` in smithy-build.json has been removed. The new field `runtimeConfig.versions` is an object whose keys are runtime crate names (e.g. `aws-smithy-http`), @@ -1187,12 +1187,12 @@ August 31st, 2022 ``` implies that we're using `aws-smithy-http` 0.47.1 specifically. For the rest of the crates, it will default to 0.47.0. -- ⚠ (all, [smithy-rs#1623](https://github.com/awslabs/smithy-rs/issues/1623), @ogudavid) Remove @sensitive trait tests which applied trait to member. The ability to mark members with @sensitive was removed in Smithy 1.22. -- ⚠ (server, [smithy-rs#1544](https://github.com/awslabs/smithy-rs/issues/1544)) Servers now allow requests' ACCEPT header values to be: +- ⚠ (all, [smithy-rs#1623](https://github.com/smithy-lang/smithy-rs/issues/1623), @ogudavid) Remove @sensitive trait tests which applied trait to member. The ability to mark members with @sensitive was removed in Smithy 1.22. +- ⚠ (server, [smithy-rs#1544](https://github.com/smithy-lang/smithy-rs/issues/1544)) Servers now allow requests' ACCEPT header values to be: - `*/*` - `type/*` - `type/subtype` -- 🐛⚠ (all, [smithy-rs#1274](https://github.com/awslabs/smithy-rs/issues/1274)) Lossy converters into integer types for `aws_smithy_types::Number` have been +- 🐛⚠ (all, [smithy-rs#1274](https://github.com/smithy-lang/smithy-rs/issues/1274)) Lossy converters into integer types for `aws_smithy_types::Number` have been removed. Lossy converters into floating point types for `aws_smithy_types::Number` have been suffixed with `_lossy`. If you were directly using the integer lossy converters, we recommend you use the safe @@ -1215,33 +1215,33 @@ August 31st, 2022 let bar: u32 = n as u32; // Lossy conversion! } ``` -- ⚠ (all, [smithy-rs#1699](https://github.com/awslabs/smithy-rs/issues/1699)) Bump [MSRV](https://github.com/awslabs/aws-sdk-rust#supported-rust-versions-msrv) from 1.58.1 to 1.61.0 per our policy. +- ⚠ (all, [smithy-rs#1699](https://github.com/smithy-lang/smithy-rs/issues/1699)) Bump [MSRV](https://github.com/awslabs/aws-sdk-rust#supported-rust-versions-msrv) from 1.58.1 to 1.61.0 per our policy. **New this release:** -- 🎉 (all, [smithy-rs#1623](https://github.com/awslabs/smithy-rs/issues/1623), @ogudavid) Update Smithy dependency to 1.23.1. Models using version 2.0 of the IDL are now supported. -- 🎉 (server, [smithy-rs#1551](https://github.com/awslabs/smithy-rs/issues/1551), @hugobast) There is a canonical and easier way to run smithy-rs on Lambda [see example]. - - [see example]: https://github.com/awslabs/smithy-rs/blob/main/rust-runtime/aws-smithy-http-server/examples/pokemon-service/src/lambda.rs -- 🐛 (all, [smithy-rs#1623](https://github.com/awslabs/smithy-rs/issues/1623), @ogudavid) Fix detecting sensitive members through their target shape having the @sensitive trait applied. -- (all, [smithy-rs#1623](https://github.com/awslabs/smithy-rs/issues/1623), @ogudavid) Fix SetShape matching needing to occur before ListShape since it is now a subclass. Sets were deprecated in Smithy 1.22. -- (all, [smithy-rs#1623](https://github.com/awslabs/smithy-rs/issues/1623), @ogudavid) Fix Union shape test data having an invalid empty union. Break fixed from Smithy 1.21 to Smithy 1.22. -- (all, [smithy-rs#1612](https://github.com/awslabs/smithy-rs/issues/1612), @unexge) Add codegen version to generated package metadata +- 🎉 (all, [smithy-rs#1623](https://github.com/smithy-lang/smithy-rs/issues/1623), @ogudavid) Update Smithy dependency to 1.23.1. Models using version 2.0 of the IDL are now supported. +- 🎉 (server, [smithy-rs#1551](https://github.com/smithy-lang/smithy-rs/issues/1551), @hugobast) There is a canonical and easier way to run smithy-rs on Lambda [see example]. + + [see example]: https://github.com/smithy-lang/smithy-rs/blob/main/rust-runtime/aws-smithy-http-server/examples/pokemon-service/src/lambda.rs +- 🐛 (all, [smithy-rs#1623](https://github.com/smithy-lang/smithy-rs/issues/1623), @ogudavid) Fix detecting sensitive members through their target shape having the @sensitive trait applied. +- (all, [smithy-rs#1623](https://github.com/smithy-lang/smithy-rs/issues/1623), @ogudavid) Fix SetShape matching needing to occur before ListShape since it is now a subclass. Sets were deprecated in Smithy 1.22. +- (all, [smithy-rs#1623](https://github.com/smithy-lang/smithy-rs/issues/1623), @ogudavid) Fix Union shape test data having an invalid empty union. Break fixed from Smithy 1.21 to Smithy 1.22. +- (all, [smithy-rs#1612](https://github.com/smithy-lang/smithy-rs/issues/1612), @unexge) Add codegen version to generated package metadata - (client, [aws-sdk-rust#609](https://github.com/awslabs/aws-sdk-rust/issues/609)) It is now possible to exempt specific operations from XML body root checking. To do this, add the `AllowInvalidXmlRoot` trait to the output struct of the operation you want to exempt. **Contributors** Thank you for your contributions! ❤ -- @hugobast ([smithy-rs#1551](https://github.com/awslabs/smithy-rs/issues/1551)) -- @ogudavid ([smithy-rs#1623](https://github.com/awslabs/smithy-rs/issues/1623)) -- @unexge ([smithy-rs#1612](https://github.com/awslabs/smithy-rs/issues/1612)) -- @weihanglo ([smithy-rs#1416](https://github.com/awslabs/smithy-rs/issues/1416), [smithy-rs#1635](https://github.com/awslabs/smithy-rs/issues/1635)) +- @hugobast ([smithy-rs#1551](https://github.com/smithy-lang/smithy-rs/issues/1551)) +- @ogudavid ([smithy-rs#1623](https://github.com/smithy-lang/smithy-rs/issues/1623)) +- @unexge ([smithy-rs#1612](https://github.com/smithy-lang/smithy-rs/issues/1612)) +- @weihanglo ([smithy-rs#1416](https://github.com/smithy-lang/smithy-rs/issues/1416), [smithy-rs#1635](https://github.com/smithy-lang/smithy-rs/issues/1635)) August 4th, 2022 ================ **Breaking Changes:** -- ⚠🎉 (all, [smithy-rs#1570](https://github.com/awslabs/smithy-rs/issues/1570), @weihanglo) Support @deprecated trait for aggregate shapes -- ⚠ (all, [smithy-rs#1157](https://github.com/awslabs/smithy-rs/issues/1157)) Rename EventStreamInput to EventStreamSender -- ⚠ (all, [smithy-rs#1157](https://github.com/awslabs/smithy-rs/issues/1157)) The type of streaming unions that contain errors is generated without those errors. +- ⚠🎉 (all, [smithy-rs#1570](https://github.com/smithy-lang/smithy-rs/issues/1570), @weihanglo) Support @deprecated trait for aggregate shapes +- ⚠ (all, [smithy-rs#1157](https://github.com/smithy-lang/smithy-rs/issues/1157)) Rename EventStreamInput to EventStreamSender +- ⚠ (all, [smithy-rs#1157](https://github.com/smithy-lang/smithy-rs/issues/1157)) The type of streaming unions that contain errors is generated without those errors. Errors in a streaming union `Union` are generated as members of the type `UnionError`. Taking Transcribe as an example, the `AudioStream` streaming union generates, in the client, both the `AudioStream` type: ```rust @@ -1268,7 +1268,7 @@ August 4th, 2022 Unknown, } ``` -- ⚠ (all, [smithy-rs#1157](https://github.com/awslabs/smithy-rs/issues/1157)) `aws_smithy_http::event_stream::EventStreamSender` and `aws_smithy_http::event_stream::Receiver` are now generic over ``, +- ⚠ (all, [smithy-rs#1157](https://github.com/smithy-lang/smithy-rs/issues/1157)) `aws_smithy_http::event_stream::EventStreamSender` and `aws_smithy_http::event_stream::Receiver` are now generic over ``, where `T` is a streaming union and `E` the union's errors. This means that event stream errors are now sent as `Err` of the union's error type. With this example model: @@ -1286,18 +1286,18 @@ August 4th, 2022 ```rust stream! { yield Err(EventError::ThrottlingError ...) } ``` - An example from the SDK is in [transcribe streaming](https://github.com/awslabs/smithy-rs/blob/4f51dd450ea3234a7faf481c6025597f22f03805/aws/sdk/integration-tests/transcribestreaming/tests/test.rs#L80). + An example from the SDK is in [transcribe streaming](https://github.com/smithy-lang/smithy-rs/blob/4f51dd450ea3234a7faf481c6025597f22f03805/aws/sdk/integration-tests/transcribestreaming/tests/test.rs#L80). **New this release:** -- 🎉 (all, [smithy-rs#1482](https://github.com/awslabs/smithy-rs/issues/1482)) Update codegen to generate support for flexible checksums. -- (all, [smithy-rs#1520](https://github.com/awslabs/smithy-rs/issues/1520)) Add explicit cast during JSON deserialization in case of custom Symbol providers. -- (all, [smithy-rs#1578](https://github.com/awslabs/smithy-rs/issues/1578), @lkts) Change detailed logs in CredentialsProviderChain from info to debug -- (all, [smithy-rs#1573](https://github.com/awslabs/smithy-rs/issues/1573), [smithy-rs#1569](https://github.com/awslabs/smithy-rs/issues/1569)) Non-streaming struct members are now marked `#[doc(hidden)]` since they will be removed in the future +- 🎉 (all, [smithy-rs#1482](https://github.com/smithy-lang/smithy-rs/issues/1482)) Update codegen to generate support for flexible checksums. +- (all, [smithy-rs#1520](https://github.com/smithy-lang/smithy-rs/issues/1520)) Add explicit cast during JSON deserialization in case of custom Symbol providers. +- (all, [smithy-rs#1578](https://github.com/smithy-lang/smithy-rs/issues/1578), @lkts) Change detailed logs in CredentialsProviderChain from info to debug +- (all, [smithy-rs#1573](https://github.com/smithy-lang/smithy-rs/issues/1573), [smithy-rs#1569](https://github.com/smithy-lang/smithy-rs/issues/1569)) Non-streaming struct members are now marked `#[doc(hidden)]` since they will be removed in the future **Contributors** Thank you for your contributions! ❤ -- @lkts ([smithy-rs#1578](https://github.com/awslabs/smithy-rs/issues/1578)) -- @weihanglo ([smithy-rs#1570](https://github.com/awslabs/smithy-rs/issues/1570)) +- @lkts ([smithy-rs#1578](https://github.com/smithy-lang/smithy-rs/issues/1578)) +- @weihanglo ([smithy-rs#1570](https://github.com/smithy-lang/smithy-rs/issues/1570)) July 20th, 2022 =============== @@ -1305,14 +1305,14 @@ July 20th, 2022 - 🎉 (all, [aws-sdk-rust#567](https://github.com/awslabs/aws-sdk-rust/issues/567)) Updated the smithy client's retry behavior to allow for a configurable initial backoff. Previously, the initial backoff (named `r` in the code) was set to 2 seconds. This is not an ideal default for services that expect clients to quickly retry failed request attempts. Now, users can set quicker (or slower) backoffs according to their needs. -- (all, [smithy-rs#1263](https://github.com/awslabs/smithy-rs/issues/1263)) Add checksum calculation and validation wrappers for HTTP bodies. -- (all, [smithy-rs#1263](https://github.com/awslabs/smithy-rs/issues/1263)) `aws_smithy_http::header::append_merge_header_maps`, a function for merging two `HeaderMap`s, is now public. +- (all, [smithy-rs#1263](https://github.com/smithy-lang/smithy-rs/issues/1263)) Add checksum calculation and validation wrappers for HTTP bodies. +- (all, [smithy-rs#1263](https://github.com/smithy-lang/smithy-rs/issues/1263)) `aws_smithy_http::header::append_merge_header_maps`, a function for merging two `HeaderMap`s, is now public. v0.45.0 (June 28th, 2022) ========================= **Breaking Changes:** -- ⚠ ([smithy-rs#932](https://github.com/awslabs/smithy-rs/issues/932)) Replaced use of `pin-project` with equivalent `pin-project-lite`. For pinned enum tuple variants and tuple structs, this +- ⚠ ([smithy-rs#932](https://github.com/smithy-lang/smithy-rs/issues/932)) Replaced use of `pin-project` with equivalent `pin-project-lite`. For pinned enum tuple variants and tuple structs, this change requires that we switch to using enum struct variants and regular structs. Most of the structs and enums that were updated had only private fields/variants and so have the same public API. However, this change does affect the public API of `aws_smithy_http_tower::map_request::MapRequestFuture`. The `Inner` and `Ready` variants contained a @@ -1320,19 +1320,19 @@ v0.45.0 (June 28th, 2022) instead of the `0` field. **New this release:** -- 🎉 ([smithy-rs#1411](https://github.com/awslabs/smithy-rs/issues/1411), [smithy-rs#1167](https://github.com/awslabs/smithy-rs/issues/1167)) Upgrade to Gradle 7. This change is not a breaking change, however, users of smithy-rs will need to switch to JDK 17 -- 🐛 ([smithy-rs#1505](https://github.com/awslabs/smithy-rs/issues/1505), @kiiadi) Fix issue with codegen on Windows where module names were incorrectly determined from filenames +- 🎉 ([smithy-rs#1411](https://github.com/smithy-lang/smithy-rs/issues/1411), [smithy-rs#1167](https://github.com/smithy-lang/smithy-rs/issues/1167)) Upgrade to Gradle 7. This change is not a breaking change, however, users of smithy-rs will need to switch to JDK 17 +- 🐛 ([smithy-rs#1505](https://github.com/smithy-lang/smithy-rs/issues/1505), @kiiadi) Fix issue with codegen on Windows where module names were incorrectly determined from filenames **Contributors** Thank you for your contributions! ❤ -- @kiiadi ([smithy-rs#1505](https://github.com/awslabs/smithy-rs/issues/1505)) +- @kiiadi ([smithy-rs#1505](https://github.com/smithy-lang/smithy-rs/issues/1505)) v0.44.0 (June 22nd, 2022) ========================= **New this release:** -- ([smithy-rs#1460](https://github.com/awslabs/smithy-rs/issues/1460)) Fix a potential bug with `ByteStream`'s implementation of `futures_core::stream::Stream` and add helpful error messages +- ([smithy-rs#1460](https://github.com/smithy-lang/smithy-rs/issues/1460)) Fix a potential bug with `ByteStream`'s implementation of `futures_core::stream::Stream` and add helpful error messages for users on 32-bit systems that try to stream HTTP bodies larger than 4.29Gb. -- 🐛 ([smithy-rs#1427](https://github.com/awslabs/smithy-rs/issues/1427), [smithy-rs#1465](https://github.com/awslabs/smithy-rs/issues/1465), [smithy-rs#1459](https://github.com/awslabs/smithy-rs/issues/1459)) Fix RustWriter bugs for `rustTemplate` and `docs` utility methods +- 🐛 ([smithy-rs#1427](https://github.com/smithy-lang/smithy-rs/issues/1427), [smithy-rs#1465](https://github.com/smithy-lang/smithy-rs/issues/1465), [smithy-rs#1459](https://github.com/smithy-lang/smithy-rs/issues/1459)) Fix RustWriter bugs for `rustTemplate` and `docs` utility methods - 🐛 ([aws-sdk-rust#554](https://github.com/awslabs/aws-sdk-rust/issues/554)) Requests to Route53 that return `ResourceId`s often come with a prefix. When passing those IDs directly into another request, the request would fail unless they manually stripped the prefix. Now, when making a request with a prefixed ID, the prefix will be stripped automatically. @@ -1341,15 +1341,15 @@ v0.44.0 (June 22nd, 2022) v0.43.0 (June 9th, 2022) ======================== **New this release:** -- 🎉 ([smithy-rs#1381](https://github.com/awslabs/smithy-rs/issues/1381), @alonlud) Add ability to sign a request with all headers, or to change which headers are excluded from signing -- 🎉 ([smithy-rs#1390](https://github.com/awslabs/smithy-rs/issues/1390)) Add method `ByteStream::into_async_read`. This makes it easy to convert `ByteStream`s into a struct implementing `tokio:io::AsyncRead`. Available on **crate feature** `rt-tokio` only. -- ([smithy-rs#1404](https://github.com/awslabs/smithy-rs/issues/1404), @petrosagg) Add ability to specify a different rust crate name than the one derived from the package name -- ([smithy-rs#1404](https://github.com/awslabs/smithy-rs/issues/1404), @petrosagg) Switch to [RustCrypto](https://github.com/RustCrypto)'s implementation of MD5. +- 🎉 ([smithy-rs#1381](https://github.com/smithy-lang/smithy-rs/issues/1381), @alonlud) Add ability to sign a request with all headers, or to change which headers are excluded from signing +- 🎉 ([smithy-rs#1390](https://github.com/smithy-lang/smithy-rs/issues/1390)) Add method `ByteStream::into_async_read`. This makes it easy to convert `ByteStream`s into a struct implementing `tokio:io::AsyncRead`. Available on **crate feature** `rt-tokio` only. +- ([smithy-rs#1404](https://github.com/smithy-lang/smithy-rs/issues/1404), @petrosagg) Add ability to specify a different rust crate name than the one derived from the package name +- ([smithy-rs#1404](https://github.com/smithy-lang/smithy-rs/issues/1404), @petrosagg) Switch to [RustCrypto](https://github.com/RustCrypto)'s implementation of MD5. **Contributors** Thank you for your contributions! ❤ -- @alonlud ([smithy-rs#1381](https://github.com/awslabs/smithy-rs/issues/1381)) -- @petrosagg ([smithy-rs#1404](https://github.com/awslabs/smithy-rs/issues/1404)) +- @alonlud ([smithy-rs#1381](https://github.com/smithy-lang/smithy-rs/issues/1381)) +- @petrosagg ([smithy-rs#1404](https://github.com/smithy-lang/smithy-rs/issues/1404)) v0.42.0 (May 13th, 2022) ======================== @@ -1396,21 +1396,21 @@ v0.42.0 (May 13th, 2022) ``` **New this release:** -- ([smithy-rs#1352](https://github.com/awslabs/smithy-rs/issues/1352)) Log a debug event when a retry is going to be peformed -- ([smithy-rs#1332](https://github.com/awslabs/smithy-rs/issues/1332), @82marbag) Update generated crates to Rust 2021 +- ([smithy-rs#1352](https://github.com/smithy-lang/smithy-rs/issues/1352)) Log a debug event when a retry is going to be peformed +- ([smithy-rs#1332](https://github.com/smithy-lang/smithy-rs/issues/1332), @82marbag) Update generated crates to Rust 2021 **Contributors** Thank you for your contributions! ❤ -- @82marbag ([smithy-rs#1332](https://github.com/awslabs/smithy-rs/issues/1332)) +- @82marbag ([smithy-rs#1332](https://github.com/smithy-lang/smithy-rs/issues/1332)) 0.41.0 (April 28th, 2022) ========================= **Breaking Changes:** -- ⚠ ([smithy-rs#1318](https://github.com/awslabs/smithy-rs/issues/1318)) Bump [MSRV](https://github.com/awslabs/aws-sdk-rust#supported-rust-versions-msrv) from 1.56.1 to 1.58.1 per our "two versions behind" policy. +- ⚠ ([smithy-rs#1318](https://github.com/smithy-lang/smithy-rs/issues/1318)) Bump [MSRV](https://github.com/awslabs/aws-sdk-rust#supported-rust-versions-msrv) from 1.56.1 to 1.58.1 per our "two versions behind" policy. **New this release:** -- ([smithy-rs#1307](https://github.com/awslabs/smithy-rs/issues/1307)) Add new trait for HTTP body callbacks. This is the first step to enabling us to implement optional checksum verification of requests and responses. -- ([smithy-rs#1330](https://github.com/awslabs/smithy-rs/issues/1330)) Upgrade to Smithy 1.21.0 +- ([smithy-rs#1307](https://github.com/smithy-lang/smithy-rs/issues/1307)) Add new trait for HTTP body callbacks. This is the first step to enabling us to implement optional checksum verification of requests and responses. +- ([smithy-rs#1330](https://github.com/smithy-lang/smithy-rs/issues/1330)) Upgrade to Smithy 1.21.0 0.40.2 (April 14th, 2022) @@ -1420,13 +1420,13 @@ Thank you for your contributions! ❤ - ⚠ ([aws-sdk-rust#490](https://github.com/awslabs/aws-sdk-rust/issues/490)) Update all runtime crates to [edition 2021](https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html) **New this release:** -- ([smithy-rs#1262](https://github.com/awslabs/smithy-rs/issues/1262), @liubin) Fix link to Developer Guide in crate's README.md -- ([smithy-rs#1301](https://github.com/awslabs/smithy-rs/issues/1301), @benesch) Update urlencoding crate to v2.1.0 +- ([smithy-rs#1262](https://github.com/smithy-lang/smithy-rs/issues/1262), @liubin) Fix link to Developer Guide in crate's README.md +- ([smithy-rs#1301](https://github.com/smithy-lang/smithy-rs/issues/1301), @benesch) Update urlencoding crate to v2.1.0 **Contributors** Thank you for your contributions! ❤ -- @benesch ([smithy-rs#1301](https://github.com/awslabs/smithy-rs/issues/1301)) -- @liubin ([smithy-rs#1262](https://github.com/awslabs/smithy-rs/issues/1262)) +- @benesch ([smithy-rs#1301](https://github.com/smithy-lang/smithy-rs/issues/1301)) +- @liubin ([smithy-rs#1262](https://github.com/smithy-lang/smithy-rs/issues/1262)) 0.39.0 (March 17, 2022) ======================= @@ -1459,7 +1459,7 @@ Thank you for your contributions! ❤ .await; } ``` -- ⚠ ([smithy-rs#724](https://github.com/awslabs/smithy-rs/issues/724)) Timeout configuration has been refactored a bit. If you were setting timeouts through environment variables or an AWS +- ⚠ ([smithy-rs#724](https://github.com/smithy-lang/smithy-rs/issues/724)) Timeout configuration has been refactored a bit. If you were setting timeouts through environment variables or an AWS profile, then you shouldn't need to change anything. Take note, however, that we don't currently support HTTP connect, read, write, or TLS negotiation timeouts. If you try to set any of those timeouts in your profile or environment, we'll log a warning explaining that those timeouts don't currently do anything. @@ -1474,25 +1474,25 @@ Thank you for your contributions! ❤ functional in a future update. **New this release:** -- ([smithy-rs#1225](https://github.com/awslabs/smithy-rs/issues/1225)) `DynMiddleware` is now `clone`able -- ([smithy-rs#1257](https://github.com/awslabs/smithy-rs/issues/1257)) HTTP request property bag now contains list of desired HTTP versions to use when making requests. This list is not currently used but will be in an upcoming update. +- ([smithy-rs#1225](https://github.com/smithy-lang/smithy-rs/issues/1225)) `DynMiddleware` is now `clone`able +- ([smithy-rs#1257](https://github.com/smithy-lang/smithy-rs/issues/1257)) HTTP request property bag now contains list of desired HTTP versions to use when making requests. This list is not currently used but will be in an upcoming update. 0.38.0 (Februrary 24, 2022) =========================== **Breaking Changes:** -- ⚠ ([smithy-rs#1197](https://github.com/awslabs/smithy-rs/issues/1197)) `aws_smithy_types::retry::RetryKind` had its `NotRetryable` variant split into `UnretryableFailure` and `Unnecessary`. If you implement the `ClassifyResponse`, then successful responses need to return `Unnecessary`, and failures that shouldn't be retried need to return `UnretryableFailure`. -- ⚠ ([smithy-rs#1209](https://github.com/awslabs/smithy-rs/issues/1209)) `aws_smithy_types::primitive::Encoder` is now a struct rather than an enum, but its usage remains the same. -- ⚠ ([smithy-rs#1217](https://github.com/awslabs/smithy-rs/issues/1217)) `ClientBuilder` helpers `rustls()` and `native_tls()` now return `DynConnector` and use dynamic dispatch rather than returning their concrete connector type that would allow static dispatch. If static dispatch is desired, then manually construct a connector to give to the builder. For example, for rustls: `builder.connector(Adapter::builder().build(aws_smithy_client::conns::https()))` (where `Adapter` is in `aws_smithy_client::hyper_ext`). +- ⚠ ([smithy-rs#1197](https://github.com/smithy-lang/smithy-rs/issues/1197)) `aws_smithy_types::retry::RetryKind` had its `NotRetryable` variant split into `UnretryableFailure` and `Unnecessary`. If you implement the `ClassifyResponse`, then successful responses need to return `Unnecessary`, and failures that shouldn't be retried need to return `UnretryableFailure`. +- ⚠ ([smithy-rs#1209](https://github.com/smithy-lang/smithy-rs/issues/1209)) `aws_smithy_types::primitive::Encoder` is now a struct rather than an enum, but its usage remains the same. +- ⚠ ([smithy-rs#1217](https://github.com/smithy-lang/smithy-rs/issues/1217)) `ClientBuilder` helpers `rustls()` and `native_tls()` now return `DynConnector` and use dynamic dispatch rather than returning their concrete connector type that would allow static dispatch. If static dispatch is desired, then manually construct a connector to give to the builder. For example, for rustls: `builder.connector(Adapter::builder().build(aws_smithy_client::conns::https()))` (where `Adapter` is in `aws_smithy_client::hyper_ext`). **New this release:** -- 🐛 ([smithy-rs#1197](https://github.com/awslabs/smithy-rs/issues/1197)) Fixed a bug that caused clients to eventually stop retrying. The cross-request retry allowance wasn't being reimbursed upon receiving a successful response, so once this allowance reached zero, no further retries would ever be attempted. +- 🐛 ([smithy-rs#1197](https://github.com/smithy-lang/smithy-rs/issues/1197)) Fixed a bug that caused clients to eventually stop retrying. The cross-request retry allowance wasn't being reimbursed upon receiving a successful response, so once this allowance reached zero, no further retries would ever be attempted. 0.37.0 (February 18th, 2022) ============================ **Breaking Changes:** -- ⚠ ([smithy-rs#1144](https://github.com/awslabs/smithy-rs/issues/1144)) Some APIs required that timeout configuration be specified with an `aws_smithy_client::timeout::Settings` struct while +- ⚠ ([smithy-rs#1144](https://github.com/smithy-lang/smithy-rs/issues/1144)) Some APIs required that timeout configuration be specified with an `aws_smithy_client::timeout::Settings` struct while others required an `aws_smithy_types::timeout::TimeoutConfig` struct. Both were equivalent. Now `aws_smithy_types::timeout::TimeoutConfig` is used everywhere and `aws_smithy_client::timeout::Settings` has been removed. Here's how to migrate code your code that depended on `timeout::Settings`: @@ -1511,34 +1511,34 @@ Thank you for your contributions! ❤ .with_connect_timeout(Some(Duration::from_secs(1))) .with_read_timeout(Some(Duration::from_secs(2))); ``` -- ⚠ ([smithy-rs#1085](https://github.com/awslabs/smithy-rs/issues/1085)) Moved the following re-exports into a `types` module for all services: +- ⚠ ([smithy-rs#1085](https://github.com/smithy-lang/smithy-rs/issues/1085)) Moved the following re-exports into a `types` module for all services: - `::AggregatedBytes` -> `::types::AggregatedBytes` - `::Blob` -> `::types::Blob` - `::ByteStream` -> `::types::ByteStream` - `::DateTime` -> `::types::DateTime` - `::SdkError` -> `::types::SdkError` -- ⚠ ([smithy-rs#1085](https://github.com/awslabs/smithy-rs/issues/1085)) `AggregatedBytes` and `ByteStream` are now only re-exported if the service has streaming operations, +- ⚠ ([smithy-rs#1085](https://github.com/smithy-lang/smithy-rs/issues/1085)) `AggregatedBytes` and `ByteStream` are now only re-exported if the service has streaming operations, and `Blob`/`DateTime` are only re-exported if the service uses them. -- ⚠ ([smithy-rs#1130](https://github.com/awslabs/smithy-rs/issues/1130)) MSRV increased from `1.54` to `1.56.1` per our 2-behind MSRV policy. +- ⚠ ([smithy-rs#1130](https://github.com/smithy-lang/smithy-rs/issues/1130)) MSRV increased from `1.54` to `1.56.1` per our 2-behind MSRV policy. **New this release:** -- ([smithy-rs#1144](https://github.com/awslabs/smithy-rs/issues/1144)) `MakeConnectorFn`, `HttpConnector`, and `HttpSettings` have been moved from `aws_config::provider_config` to +- ([smithy-rs#1144](https://github.com/smithy-lang/smithy-rs/issues/1144)) `MakeConnectorFn`, `HttpConnector`, and `HttpSettings` have been moved from `aws_config::provider_config` to `aws_smithy_client::http_connector`. This is in preparation for a later update that will change how connectors are created and configured. -- ([smithy-rs#1123](https://github.com/awslabs/smithy-rs/issues/1123)) Refactor `Document` shape parser generation -- ([smithy-rs#1085](https://github.com/awslabs/smithy-rs/issues/1085)) The `Client` and `Config` re-exports now have their documentation inlined in the service docs +- ([smithy-rs#1123](https://github.com/smithy-lang/smithy-rs/issues/1123)) Refactor `Document` shape parser generation +- ([smithy-rs#1085](https://github.com/smithy-lang/smithy-rs/issues/1085)) The `Client` and `Config` re-exports now have their documentation inlined in the service docs 0.36.0 (January 26, 2022) ========================= **New this release:** -- ([smithy-rs#1087](https://github.com/awslabs/smithy-rs/issues/1087)) Improve docs on `Endpoint::{mutable, immutable}` -- ([smithy-rs#1118](https://github.com/awslabs/smithy-rs/issues/1118)) SDK examples now come from [`awsdocs/aws-doc-sdk-examples`](https://github.com/awsdocs/aws-doc-sdk-examples) rather than from `smithy-rs` -- ([smithy-rs#1114](https://github.com/awslabs/smithy-rs/issues/1114), @mchoicpe-amazon) Provide SigningService creation via owned String +- ([smithy-rs#1087](https://github.com/smithy-lang/smithy-rs/issues/1087)) Improve docs on `Endpoint::{mutable, immutable}` +- ([smithy-rs#1118](https://github.com/smithy-lang/smithy-rs/issues/1118)) SDK examples now come from [`awsdocs/aws-doc-sdk-examples`](https://github.com/awsdocs/aws-doc-sdk-examples) rather than from `smithy-rs` +- ([smithy-rs#1114](https://github.com/smithy-lang/smithy-rs/issues/1114), @mchoicpe-amazon) Provide SigningService creation via owned String **Contributors** Thank you for your contributions! ❤ -- @mchoicpe-amazon ([smithy-rs#1114](https://github.com/awslabs/smithy-rs/issues/1114)) +- @mchoicpe-amazon ([smithy-rs#1114](https://github.com/smithy-lang/smithy-rs/issues/1114)) 0.35.2 (January 20th, 2022) @@ -1553,11 +1553,11 @@ _Changes only impact generated AWS SDK_ 0.35.0 (January 19, 2022) ========================= **New this release:** -- ([smithy-rs#1053](https://github.com/awslabs/smithy-rs/issues/1053)) Upgraded Smithy to 1.16.1 -- 🐛 ([smithy-rs#1069](https://github.com/awslabs/smithy-rs/issues/1069)) Fix broken link to `RetryMode` in client docs -- 🐛 ([smithy-rs#1069](https://github.com/awslabs/smithy-rs/issues/1069)) Fix several doc links to raw identifiers (identifiers excaped with `r#`) -- 🐛 ([smithy-rs#1069](https://github.com/awslabs/smithy-rs/issues/1069)) Reduce dependency recompilation in local dev -- 🐛 ([aws-sdk-rust#405](https://github.com/awslabs/aws-sdk-rust/issues/405), [smithy-rs#1083](https://github.com/awslabs/smithy-rs/issues/1083)) Fixed paginator bug impacting EC2 describe VPCs (and others) +- ([smithy-rs#1053](https://github.com/smithy-lang/smithy-rs/issues/1053)) Upgraded Smithy to 1.16.1 +- 🐛 ([smithy-rs#1069](https://github.com/smithy-lang/smithy-rs/issues/1069)) Fix broken link to `RetryMode` in client docs +- 🐛 ([smithy-rs#1069](https://github.com/smithy-lang/smithy-rs/issues/1069)) Fix several doc links to raw identifiers (identifiers excaped with `r#`) +- 🐛 ([smithy-rs#1069](https://github.com/smithy-lang/smithy-rs/issues/1069)) Reduce dependency recompilation in local dev +- 🐛 ([aws-sdk-rust#405](https://github.com/awslabs/aws-sdk-rust/issues/405), [smithy-rs#1083](https://github.com/smithy-lang/smithy-rs/issues/1083)) Fixed paginator bug impacting EC2 describe VPCs (and others) @@ -2081,7 +2081,7 @@ v0.19 (August 3rd, 2021) IoT Data Plane is now available! If you discover it isn't functioning as expected, please let us know! This week also sees the addition of a robust async caching credentials provider. Take a look at the -[STS example](https://github.com/awslabs/smithy-rs/blob/7fa4af4a9367aeca6d55e26fc4d4ba93093b90c4/aws/sdk/examples/sts/src/bin/credentials-provider.rs) +[STS example](https://github.com/smithy-lang/smithy-rs/blob/7fa4af4a9367aeca6d55e26fc4d4ba93093b90c4/aws/sdk/examples/sts/src/bin/credentials-provider.rs) to see how to use it. **New This Week** diff --git a/CODEOWNERS b/CODEOWNERS index b830b172158792221110f0c76e195a391ec09050..fb8968d43bc597ed59e12cecd365726f2c9d3445 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,40 +1,40 @@ -* @awslabs/rust-sdk-owners +* @smithy-lang/aws-sdk-rust # Server -/codegen-server-test/ @awslabs/smithy-rs-server -/codegen-server/ @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-http-server/ @awslabs/smithy-rs-server +/codegen-server-test/ @smithy-lang/smithy-rs-server +/codegen-server/ @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-http-server/ @smithy-lang/smithy-rs-server # Python Server -/codegen-server-test/python/ @awslabs/smithy-rs-python-server @awslabs/smithy-rs-server -/codegen-server/python/ @awslabs/smithy-rs-python-server @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-http-server-python/ @awslabs/smithy-rs-python-server @awslabs/smithy-rs-server +/codegen-server-test/python/ @smithy-lang/smithy-rs-server +/codegen-server/python/ @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-http-server-python/ @smithy-lang/smithy-rs-server # Typescript Server -/codegen-server-test/typescript/ @awslabs/smithy-rs-typescript-server @awslabs/smithy-rs-server -/codegen-server/typescript/ @awslabs/smithy-rs-typescript-server @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-http-server-typescript/ @awslabs/smithy-rs-typescript-server @awslabs/smithy-rs-server +/codegen-server-test/typescript/ @smithy-lang/smithy-rs-server +/codegen-server/typescript/ @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-http-server-typescript/ @smithy-lang/smithy-rs-server # Shared ownership -/.github/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/CHANGELOG.md @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/CHANGELOG.next.toml @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/README.md @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/build.gradle.kts @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/buildSrc/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/codegen-core/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/design/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/examples/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/gradle.properties @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/tools/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-async/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-eventstream/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-http/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-json/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-protocol-test/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-types/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-types-convert/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/aws-smithy-xml/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/inlineable/ @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/build.gradle.kts @awslabs/rust-sdk-owners @awslabs/smithy-rs-server -/rust-runtime/Cargo.toml @awslabs/rust-sdk-owners @awslabs/smithy-rs-server +/.github/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/CHANGELOG.md @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/CHANGELOG.next.toml @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/README.md @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/build.gradle.kts @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/buildSrc/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/codegen-core/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/design/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/examples/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/gradle.properties @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/tools/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-async/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-eventstream/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-http/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-json/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-protocol-test/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-types/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-types-convert/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/aws-smithy-xml/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/inlineable/ @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/build.gradle.kts @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server +/rust-runtime/Cargo.toml @smithy-lang/aws-sdk-rust @smithy-lang/smithy-rs-server diff --git a/README.md b/README.md index 3fabab8897d7de599506fe162bdb51fbaedb88e3..4c0937cc9deedbf8b72a88de2cd04d5ef0cc0591 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Smithy Rust [![CI on Branch `main`](https://github.com/awslabs/smithy-rs/actions/workflows/ci-main.yml/badge.svg)](https://github.com/awslabs/smithy-rs/actions/workflows/ci-main.yml) +Smithy Rust [![CI on Branch `main`](https://github.com/smithy-lang/smithy-rs/actions/workflows/ci-main.yml/badge.svg)](https://github.com/smithy-lang/smithy-rs/actions/workflows/ci-main.yml) ================================================================================== Smithy code generators for Rust that generate clients, servers, and the entire AWS SDK. diff --git a/aws/SDK_CHANGELOG.next.json b/aws/SDK_CHANGELOG.next.json index dafa5764858652e6af10376dbf673a0ced300758..28b5124b11fe082efbe49855230ee9945545498c 100644 --- a/aws/SDK_CHANGELOG.next.json +++ b/aws/SDK_CHANGELOG.next.json @@ -412,7 +412,7 @@ "age": 2 }, { - "message": "HTTP connector configuration has changed significantly. See the [upgrade guidance](https://github.com/awslabs/smithy-rs/discussions/3022) for details.", + "message": "HTTP connector configuration has changed significantly. See the [upgrade guidance](https://github.com/smithy-lang/smithy-rs/discussions/3022) for details.", "meta": { "bug": false, "breaking": true, @@ -454,7 +454,7 @@ "age": 2 }, { - "message": "Struct members modeled as required are no longer wrapped in `Option`s [when possible](https://smithy.io/2.0/spec/aggregate-types.html#structure-member-optionality). For upgrade guidance and more info, see [here](https://github.com/awslabs/smithy-rs/discussions/2929).", + "message": "Struct members modeled as required are no longer wrapped in `Option`s [when possible](https://smithy.io/2.0/spec/aggregate-types.html#structure-member-optionality). For upgrade guidance and more info, see [here](https://github.com/smithy-lang/smithy-rs/discussions/2929).", "meta": { "bug": false, "breaking": true, @@ -686,7 +686,7 @@ "age": 2 }, { - "message": "Retry classifiers are now configurable at the service and operation levels. Users may also define their own custom retry classifiers.\n\nFor more information, see the [guide](https://github.com/awslabs/smithy-rs/discussions/3050).\n", + "message": "Retry classifiers are now configurable at the service and operation levels. Users may also define their own custom retry classifiers.\n\nFor more information, see the [guide](https://github.com/smithy-lang/smithy-rs/discussions/3050).\n", "meta": { "bug": false, "breaking": true, @@ -800,4 +800,4 @@ } ], "aws-sdk-model": [] -} \ No newline at end of file +} diff --git a/aws/SDK_README.md.hb b/aws/SDK_README.md.hb index 18f6ef8c1fa10911ea5b5d21eddd34e9c953f49b..f82049c9c42590b8ebca9ac91e6429169aac600e 100644 --- a/aws/SDK_README.md.hb +++ b/aws/SDK_README.md.hb @@ -8,7 +8,7 @@ Available template arguments: --}} @@ -18,7 +18,7 @@ This repo contains the new AWS SDK for Rust (the SDK) and its [public roadmap](h **Please Note**: The SDK is currently released as a developer preview, without support or assistance for use on production workloads. Any use in production is at your own risk. -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). +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/smithy-lang/smithy-rs). ## Getting Started with the SDK @@ -94,8 +94,8 @@ The SDK currently requires a minimum of Rust {{msrv}}, and is not guaranteed to ## Additional Resources -- Design docs - Design documentation for the SDK lives in the [design folder of smithy-rs](https://github.com/awslabs/smithy-rs/tree/main/design). -- Runtime / Handwritten code: The Rust Runtime code that underpins the SDK can be accessed [here](https://github.com/awslabs/smithy-rs/tree/main/rust-runtime) and [here](https://github.com/awslabs/smithy-rs/tree/main/aws/rust-runtime). This code is copied into this repo as part of code generation. +- Design docs - Design documentation for the SDK lives in the [design folder of smithy-rs](https://github.com/smithy-lang/smithy-rs/tree/main/design). +- Runtime / Handwritten code: The Rust Runtime code that underpins the SDK can be accessed [here](https://github.com/smithy-lang/smithy-rs/tree/main/rust-runtime) and [here](https://github.com/smithy-lang/smithy-rs/tree/main/aws/rust-runtime). This code is copied into this repo as part of code generation. - [Code Examples](./examples) - [API reference documentation (rustdoc)](https://awslabs.github.io/aws-sdk-rust/) diff --git a/aws/rust-runtime/aws-config/Cargo.toml b/aws/rust-runtime/aws-config/Cargo.toml index db31f6b445439aed38c7130eacbd856152c81490..7fd53ee0d3b3a2d1db8dd82806f835de403f9511 100644 --- a/aws/rust-runtime/aws-config/Cargo.toml +++ b/aws/rust-runtime/aws-config/Cargo.toml @@ -6,7 +6,7 @@ description = "AWS SDK config and credential provider implementations." edition = "2021" exclude = ["test-data/*", "integration-tests/*"] license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [features] client-hyper = ["aws-smithy-runtime/connector-hyper-0-14-x"] diff --git a/aws/rust-runtime/aws-config/README.md b/aws/rust-runtime/aws-config/README.md index 91f68420f0232c30d78a593b629f2831825ab541..7f523063d6699b392655b8b1ce8dbadf4c77be10 100644 --- a/aws/rust-runtime/aws-config/README.md +++ b/aws/rust-runtime/aws-config/README.md @@ -68,5 +68,5 @@ This project is licensed under the Apache-2.0 License. [Usage examples]: https://github.com/awslabs/aws-sdk-rust/tree/main/examples -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. diff --git a/aws/rust-runtime/aws-config/external-types.toml b/aws/rust-runtime/aws-config/external-types.toml index 69273215edb6f9f89f9c344b6cb40a9a819b6d36..f3f0f8231091a9ff8d675693e31ab3b58ce1497c 100644 --- a/aws/rust-runtime/aws-config/external-types.toml +++ b/aws/rust-runtime/aws-config/external-types.toml @@ -35,7 +35,7 @@ allowed_external_types = [ "http::uri::Uri", "tower_service::Service", - # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Decide if the following should be exposed + # TODO(https://github.com/smithy-lang/smithy-rs/issues/1193): Decide if the following should be exposed "hyper::client::connect::Connection", "tokio::io::async_read::AsyncRead", "tokio::io::async_write::AsyncWrite", diff --git a/aws/rust-runtime/aws-config/src/default_provider/timeout_config.rs b/aws/rust-runtime/aws-config/src/default_provider/timeout_config.rs index 1a173682c3d9a5fc41a7f708680a5f9da8a1ac0c..064b80e2ebca9d9430f36ae3c4212d5fdc7c8095 100644 --- a/aws/rust-runtime/aws-config/src/default_provider/timeout_config.rs +++ b/aws/rust-runtime/aws-config/src/default_provider/timeout_config.rs @@ -33,7 +33,7 @@ impl Builder { /// Resolve default timeout configuration pub async fn timeout_config(self) -> TimeoutConfig { - // TODO(https://github.com/awslabs/smithy-rs/issues/1732): Implement complete timeout defaults specification + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1732): Implement complete timeout defaults specification TimeoutConfig::builder() .connect_timeout(SDK_DEFAULT_CONNECT_TIMEOUT) .build() diff --git a/aws/rust-runtime/aws-config/src/lib.rs b/aws/rust-runtime/aws-config/src/lib.rs index 59e3a06a14276149b905a4c7dd7156aa43e5e478..0ae39ed3b63955527bb067069811ab13999f3a4e 100644 --- a/aws/rust-runtime/aws-config/src/lib.rs +++ b/aws/rust-runtime/aws-config/src/lib.rs @@ -298,7 +298,7 @@ mod loader { /// Deprecated. Don't use. #[deprecated( - note = "HTTP connector configuration changed. See https://github.com/awslabs/smithy-rs/discussions/3022 for upgrade guidance." + note = "HTTP connector configuration changed. See https://github.com/smithy-lang/smithy-rs/discussions/3022 for upgrade guidance." )] pub fn http_connector(self, http_client: impl HttpClient + 'static) -> Self { self.http_client(http_client) diff --git a/aws/rust-runtime/aws-config/src/provider_config.rs b/aws/rust-runtime/aws-config/src/provider_config.rs index dd13270bbce5086568513d4bd6c1dccf4e92911c..73999c6bf32fb06431767b8b70bfd66385e05860 100644 --- a/aws/rust-runtime/aws-config/src/provider_config.rs +++ b/aws/rust-runtime/aws-config/src/provider_config.rs @@ -348,7 +348,7 @@ impl ProviderConfig { /// Deprecated. Don't use. #[deprecated( - note = "HTTP connector configuration changed. See https://github.com/awslabs/smithy-rs/discussions/3022 for upgrade guidance." + note = "HTTP connector configuration changed. See https://github.com/smithy-lang/smithy-rs/discussions/3022 for upgrade guidance." )] pub fn with_tcp_connector(self, http_client: impl HttpClient + 'static) -> Self { self.with_http_client(http_client) diff --git a/aws/rust-runtime/aws-credential-types/Cargo.toml b/aws/rust-runtime/aws-credential-types/Cargo.toml index ec4ebea55596310a40833b90254e7c0e4b190135..33c1b2a91e2dd6844d1e1fbb10a546b41599f20e 100644 --- a/aws/rust-runtime/aws-credential-types/Cargo.toml +++ b/aws/rust-runtime/aws-credential-types/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team "] description = "Types for AWS SDK credentials." edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [features] hardcoded-credentials = [] diff --git a/aws/rust-runtime/aws-credential-types/README.md b/aws/rust-runtime/aws-credential-types/README.md index e77385e1a01e0f09c12a487e3f764c0f58daeb61..d6480cc0c0a337678069c5a127ee3d3faf235471 100644 --- a/aws/rust-runtime/aws-credential-types/README.md +++ b/aws/rust-runtime/aws-credential-types/README.md @@ -6,5 +6,5 @@ This crate provides types concerned with AWS SDK credentials including: * Concrete implementations of credentials caching -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/aws/rust-runtime/aws-endpoint/Cargo.toml b/aws/rust-runtime/aws-endpoint/Cargo.toml index 75d1f7a1c1e21ae41420fdd333fb0b94177dc26c..9c2cc01257daa2cf69f2cce46ba89dab5b1ca2f6 100644 --- a/aws/rust-runtime/aws-endpoint/Cargo.toml +++ b/aws/rust-runtime/aws-endpoint/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Russell Cohen -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/aws/rust-runtime/aws-http/Cargo.toml b/aws/rust-runtime/aws-http/Cargo.toml index 86f37c72f01467fe61a91ca3f5600dc855471b1b..d22e473a7c4f9e4076c06aec1bd56a41072dd6c2 100644 --- a/aws/rust-runtime/aws-http/Cargo.toml +++ b/aws/rust-runtime/aws-http/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Russell Cohen -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/aws/rust-runtime/aws-hyper/Cargo.toml b/aws/rust-runtime/aws-hyper/Cargo.toml index e7eb87f3dedde4854709ae41c2e132ec3bcd3231..3e52efb0c335c998d5988cec6de49adec2846878 100644 --- a/aws/rust-runtime/aws-hyper/Cargo.toml +++ b/aws/rust-runtime/aws-hyper/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Russell Cohen -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/aws/rust-runtime/aws-inlineable/Cargo.toml b/aws/rust-runtime/aws-inlineable/Cargo.toml index c79039da4a99e1e07640a4535943ca7adc226935..bb684af7616a36979dfbe870710eae45982e0400 100644 --- a/aws/rust-runtime/aws-inlineable/Cargo.toml +++ b/aws/rust-runtime/aws-inlineable/Cargo.toml @@ -9,7 +9,7 @@ are to allow this crate to be compilable and testable in isolation, no client co edition = "2021" license = "Apache-2.0" publish = false -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [dependencies] aws-credential-types = { path = "../aws-credential-types" } diff --git a/aws/rust-runtime/aws-inlineable/README.md b/aws/rust-runtime/aws-inlineable/README.md index b14c2d9bfd7606ee53ed6f78799c2341e561fd40..14bc80dbbdb23eb747fa6ce34e05232ae21d3f10 100644 --- a/aws/rust-runtime/aws-inlineable/README.md +++ b/aws/rust-runtime/aws-inlineable/README.md @@ -5,5 +5,5 @@ SDKs. This exists to facilitate writing complex snippets of code that can be tes without needing to create and publish an entire additional crate. -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/aws/rust-runtime/aws-inlineable/src/presigning.rs b/aws/rust-runtime/aws-inlineable/src/presigning.rs index cae1dd0ae5c650ab8fea1feea444104d66b6d4f1..f0a49daa2735fe60f2aab7d96e4ea578bfb8ae75 100644 --- a/aws/rust-runtime/aws-inlineable/src/presigning.rs +++ b/aws/rust-runtime/aws-inlineable/src/presigning.rs @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -// TODO(https://github.com/awslabs/smithy-rs/issues/2902): Code generate this documentation so that service-specific examples can be added. +// TODO(https://github.com/smithy-lang/smithy-rs/issues/2902): Code generate this documentation so that service-specific examples can be added. //! Presigned request types and configuration. //! //! The [`Client`](crate::Client) is used to create presigned requests. They are made diff --git a/aws/rust-runtime/aws-runtime-api/Cargo.toml b/aws/rust-runtime/aws-runtime-api/Cargo.toml index 4c353537f5419c32becae9d2f2725290c69f39fb..920384f5548dad967f0d08ffd072464d6e08ada3 100644 --- a/aws/rust-runtime/aws-runtime-api/Cargo.toml +++ b/aws/rust-runtime/aws-runtime-api/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team "] description = "Runtime support code for the AWS SDK. This isn't intended to be used directly." edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [dependencies] diff --git a/aws/rust-runtime/aws-runtime-api/README.md b/aws/rust-runtime/aws-runtime-api/README.md index 3eb3bd41939b43d9d5ae561b3677ac47dbf6ce8d..7de9a62bd4fce0ad0619ec6a31626ff955fd4cdf 100644 --- a/aws/rust-runtime/aws-runtime-api/README.md +++ b/aws/rust-runtime/aws-runtime-api/README.md @@ -4,5 +4,5 @@ aws-runtime-api Runtime support code for the AWS SDK. This crate isn't intended to be used directly. -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/aws/rust-runtime/aws-runtime/Cargo.toml b/aws/rust-runtime/aws-runtime/Cargo.toml index 5542d05f1a99d925ce5873b05796ba733ed9ade3..b28a06388172bb64bf5e78e1864818cd38e5acc7 100644 --- a/aws/rust-runtime/aws-runtime/Cargo.toml +++ b/aws/rust-runtime/aws-runtime/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team "] description = "Runtime support code for the AWS SDK. This crate isn't intended to be used directly." edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [features] event-stream = ["dep:aws-smithy-eventstream", "aws-sigv4/sign-eventstream"] diff --git a/aws/rust-runtime/aws-runtime/README.md b/aws/rust-runtime/aws-runtime/README.md index 65b01de9e252287db1038c0fe051c4e58a9aa659..f1ddb369ad6911adb7eba564470045ac2dad8706 100644 --- a/aws/rust-runtime/aws-runtime/README.md +++ b/aws/rust-runtime/aws-runtime/README.md @@ -4,5 +4,5 @@ aws-runtime Runtime support code for the AWS SDK. This crate isn't intended to be used directly. -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/aws/rust-runtime/aws-sig-auth/Cargo.toml b/aws/rust-runtime/aws-sig-auth/Cargo.toml index 6d796a290b11010f263e9358409f1074bbcdc985..56909a48113e6e5c1f4f6d64a991e80a2431cc01 100644 --- a/aws/rust-runtime/aws-sig-auth/Cargo.toml +++ b/aws/rust-runtime/aws-sig-auth/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Russell Cohen -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/aws/rust-runtime/aws-sig-auth/external-types.toml b/aws/rust-runtime/aws-sig-auth/external-types.toml index 8e4d29dcff118ea1890e5f4e226dffd4e4385d5f..d6bdad471f1afd99362707f8008052918a684570 100644 --- a/aws/rust-runtime/aws-sig-auth/external-types.toml +++ b/aws/rust-runtime/aws-sig-auth/external-types.toml @@ -8,6 +8,6 @@ allowed_external_types = [ "http::request::Request", "aws_smithy_runtime_api::client::identity::Identity", - # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `event-stream` feature + # TODO(https://github.com/smithy-lang/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `event-stream` feature "aws_smithy_eventstream::frame::SignMessage", ] diff --git a/aws/rust-runtime/aws-sigv4/Cargo.toml b/aws/rust-runtime/aws-sigv4/Cargo.toml index 07766f202a1c82d6c6504e1fa7db9c733f83bcdd..ce91ae520907858eb44659982ae58e139d0094d7 100644 --- a/aws/rust-runtime/aws-sigv4/Cargo.toml +++ b/aws/rust-runtime/aws-sigv4/Cargo.toml @@ -6,7 +6,7 @@ description = "SigV4 signer for HTTP requests and Event Stream messages." edition = "2021" exclude = ["aws-sig-v4-test-suite/*"] license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [features] default = ["sign-http"] diff --git a/aws/rust-runtime/aws-sigv4/README.md b/aws/rust-runtime/aws-sigv4/README.md index 5159a9f01a796320a099e040c76141ec079613fb..497144afcf6290c1440646069676a22295b1de2d 100644 --- a/aws/rust-runtime/aws-sigv4/README.md +++ b/aws/rust-runtime/aws-sigv4/README.md @@ -3,5 +3,5 @@ Low-level SigV4 request signing implementations. -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/aws/rust-runtime/aws-sigv4/external-types.toml b/aws/rust-runtime/aws-sigv4/external-types.toml index 37e06db2360c40f1ee971debb23518b456c6fd06..6c80133e45d402632bd13a1db01af6b486c0230a 100644 --- a/aws/rust-runtime/aws-sigv4/external-types.toml +++ b/aws/rust-runtime/aws-sigv4/external-types.toml @@ -1,7 +1,7 @@ allowed_external_types = [ # TODO(refactorHttp): Remove this and remove the signing helpers "http::request::Request", - # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `event-stream` feature + # TODO(https://github.com/smithy-lang/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `event-stream` feature "aws_smithy_types::event_stream::Message", "aws_smithy_runtime_api::client::identity::Identity" ] diff --git a/aws/rust-runtime/aws-sigv4/src/date_time.rs b/aws/rust-runtime/aws-sigv4/src/date_time.rs index 5ddd70560765475082191c68b9c1e451a65ea62b..f27a265e0e8a40ef1579eb358a35b90f6e3cb720 100644 --- a/aws/rust-runtime/aws-sigv4/src/date_time.rs +++ b/aws/rust-runtime/aws-sigv4/src/date_time.rs @@ -95,7 +95,7 @@ mod tests { use crate::date_time::test_parsers::{parse_date, parse_date_time}; use time::format_description::well_known::Rfc3339; - // TODO(https://github.com/awslabs/smithy-rs/issues/1857) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1857) #[cfg(not(any(target_arch = "powerpc", target_arch = "x86")))] #[test] fn date_format() { @@ -109,7 +109,7 @@ mod tests { assert_eq!("01000102", format_date(time)); } - // TODO(https://github.com/awslabs/smithy-rs/issues/1857) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1857) #[cfg(not(any(target_arch = "powerpc", target_arch = "x86")))] #[test] fn date_time_format() { @@ -135,7 +135,7 @@ mod tests { assert_eq!("20150830", format_date(time)); } - // TODO(https://github.com/awslabs/smithy-rs/issues/1857) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1857) #[cfg(not(any(target_arch = "powerpc", target_arch = "x86")))] #[test] fn test_truncate_subsecs() { diff --git a/aws/rust-runtime/aws-types/Cargo.toml b/aws/rust-runtime/aws-types/Cargo.toml index b4002ca5e0fa293b101243f9e6846bd6605e7b40..1259261cac88b86e0c7cd32b322725104dc94159 100644 --- a/aws/rust-runtime/aws-types/Cargo.toml +++ b/aws/rust-runtime/aws-types/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Russell Cohen -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/HttpRequestChecksumDecorator.kt b/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/HttpRequestChecksumDecorator.kt index e5d105d4a73c91f1b9a33652eb1230d43a8a5760..6c05747183b1b524b6abf74739d2b5c394748833 100644 --- a/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/HttpRequestChecksumDecorator.kt +++ b/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/HttpRequestChecksumDecorator.kt @@ -105,7 +105,7 @@ private fun HttpChecksumTrait.checksumAlgorithmToStr( } // This generator was implemented based on this spec: -// https://awslabs.github.io/smithy/1.0/spec/aws/aws-core.html#http-request-checksums +// https://smithy-lang.github.io/smithy/1.0/spec/aws/aws-core.html#http-request-checksums class HttpRequestChecksumCustomization( private val codegenContext: ClientCodegenContext, private val operationShape: OperationShape, diff --git a/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/endpoints/OperationInputTestGenerator.kt b/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/endpoints/OperationInputTestGenerator.kt index 7408f5b76cc3e66b158dbdbeb78bb1c89d3875c3..b11236dfd1459dc71f9eddc8c572df887fdc35e1 100644 --- a/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/endpoints/OperationInputTestGenerator.kt +++ b/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/endpoints/OperationInputTestGenerator.kt @@ -109,7 +109,7 @@ fun usesDeprecatedBuiltIns(testOperationInput: EndpointTestOperationInput): Bool * ``` * * Eventually, we need to pull this test into generic smithy. However, this relies on generic smithy clients - * supporting middleware and being instantiable from config (https://github.com/awslabs/smithy-rs/issues/2194) + * supporting middleware and being instantiable from config (https://github.com/smithy-lang/smithy-rs/issues/2194) * * Doing this in AWS codegen allows us to actually integration test generated clients. */ diff --git a/aws/sdk/aws-models/s3-tests.smithy b/aws/sdk/aws-models/s3-tests.smithy index 437e37491a7cda51b4492095d8a65a0bb270a185..5a1bfaccca74621cb3b64494cbd46e7c979cf60f 100644 --- a/aws/sdk/aws-models/s3-tests.smithy +++ b/aws/sdk/aws-models/s3-tests.smithy @@ -8,7 +8,7 @@ use smithy.test#httpRequestTests apply NotFound @httpResponseTests([ { id: "HeadObjectEmptyBody", - documentation: "This test case validates https://github.com/awslabs/smithy-rs/issues/456", + documentation: "This test case validates https://github.com/smithy-lang/smithy-rs/issues/456", params: { }, bodyMediaType: "application/xml", diff --git a/aws/sdk/benchmarks/s3-throughput/benchmark/Cargo.toml b/aws/sdk/benchmarks/s3-throughput/benchmark/Cargo.toml index 5ac77a1f8143787c9616d6a8d4065b7d8bc53265..eeee431cec464c4ccf815240c56110efa4557190 100644 --- a/aws/sdk/benchmarks/s3-throughput/benchmark/Cargo.toml +++ b/aws/sdk/benchmarks/s3-throughput/benchmark/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "John DiSanti ", "Russell Cohen "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/aws/sdk/integration-tests/ec2/Cargo.toml b/aws/sdk/integration-tests/ec2/Cargo.toml index a3a44d610c1844c087dfc3351919819f99e9f7d5..ff011454b1630eafaea800f0d18f7766a49fe5e7 100644 --- a/aws/sdk/integration-tests/ec2/Cargo.toml +++ b/aws/sdk/integration-tests/ec2/Cargo.toml @@ -3,7 +3,7 @@ name = "ec2-tests" version = "0.1.0" edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false [dev-dependencies] diff --git a/aws/sdk/integration-tests/glacier/Cargo.toml b/aws/sdk/integration-tests/glacier/Cargo.toml index ca08a6e3498e914a74d655afb83419b4e7958952..a94977fc7719e51cb0b3b6219720d3b9e25a3245 100644 --- a/aws/sdk/integration-tests/glacier/Cargo.toml +++ b/aws/sdk/integration-tests/glacier/Cargo.toml @@ -5,7 +5,7 @@ version = "0.1.0" authors = ["AWS Rust SDK Team "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/aws/sdk/integration-tests/iam/Cargo.toml b/aws/sdk/integration-tests/iam/Cargo.toml index 296e9167d16ca4f6600f4e31776a390d0187c1f3..4c834ced572f3f8530173b61c627aabf4f940313 100644 --- a/aws/sdk/integration-tests/iam/Cargo.toml +++ b/aws/sdk/integration-tests/iam/Cargo.toml @@ -5,7 +5,7 @@ version = "0.1.0" authors = ["AWS Rust SDK Team "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/aws/sdk/integration-tests/kms/Cargo.toml b/aws/sdk/integration-tests/kms/Cargo.toml index 0e84f1a0ecd350a50f03c3fb15f5985556c45005..0ab843341de3520d0f42f0e3f54d1183f9dfde51 100644 --- a/aws/sdk/integration-tests/kms/Cargo.toml +++ b/aws/sdk/integration-tests/kms/Cargo.toml @@ -5,7 +5,7 @@ version = "0.1.0" authors = ["Russell Cohen "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/aws/sdk/integration-tests/lambda/Cargo.toml b/aws/sdk/integration-tests/lambda/Cargo.toml index 5f6cc8acbd4aa584ff3965674a1ae2eb1918f422..1562f98351c154f0ff3a01390163c1d39366105e 100644 --- a/aws/sdk/integration-tests/lambda/Cargo.toml +++ b/aws/sdk/integration-tests/lambda/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["AWS Rust SDK Team ", "Zelda Hessler "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false [dev-dependencies] diff --git a/aws/sdk/integration-tests/no-default-features/Cargo.toml b/aws/sdk/integration-tests/no-default-features/Cargo.toml index ec8f24bd89e164dd42e6ae473e1171f3ea311167..32c7fe2b5a4382460e2c6fc61226fd2d41e4aff1 100644 --- a/aws/sdk/integration-tests/no-default-features/Cargo.toml +++ b/aws/sdk/integration-tests/no-default-features/Cargo.toml @@ -8,7 +8,7 @@ when default features are disabled for all SDK and runtime crates. """ edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/aws/sdk/integration-tests/polly/Cargo.toml b/aws/sdk/integration-tests/polly/Cargo.toml index 444c65beaf3d5664000267fa91e62e8ffdf3ddd7..880e023f20194f4a51625eacd9bf49bb248f05e7 100644 --- a/aws/sdk/integration-tests/polly/Cargo.toml +++ b/aws/sdk/integration-tests/polly/Cargo.toml @@ -5,7 +5,7 @@ version = "0.1.0" authors = ["John DiSanti "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/aws/sdk/integration-tests/qldbsession/Cargo.toml b/aws/sdk/integration-tests/qldbsession/Cargo.toml index fecc6e14959f48e6212b83a84905ce7927600045..c46dfa0e921d31f6bfa3ee3420b2d895682af3e7 100644 --- a/aws/sdk/integration-tests/qldbsession/Cargo.toml +++ b/aws/sdk/integration-tests/qldbsession/Cargo.toml @@ -5,7 +5,7 @@ version = "0.1.0" authors = ["Russell Cohen ", "Shing Lyu "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/aws/sdk/integration-tests/s3control/Cargo.toml b/aws/sdk/integration-tests/s3control/Cargo.toml index 9bd9484f9b2b907cfe4120b3dbe59a3ecb5d1f70..fdb4cfd762e80b0c541c788825afbd8cd4f01c5f 100644 --- a/aws/sdk/integration-tests/s3control/Cargo.toml +++ b/aws/sdk/integration-tests/s3control/Cargo.toml @@ -5,7 +5,7 @@ version = "0.1.0" authors = ["AWS Rust SDK Team "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/aws/sdk/integration-tests/sts/Cargo.toml b/aws/sdk/integration-tests/sts/Cargo.toml index b9e50af6e0943633b2b09f676f8e0c219b66ab0b..eb478817f99bafcfc13730b3bc892b1f7c105be3 100644 --- a/aws/sdk/integration-tests/sts/Cargo.toml +++ b/aws/sdk/integration-tests/sts/Cargo.toml @@ -5,7 +5,7 @@ version = "0.1.0" authors = ["Russell Cohen "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/aws/sdk/integration-tests/timestreamquery/Cargo.toml b/aws/sdk/integration-tests/timestreamquery/Cargo.toml index b8c6a497acbaf64413694233b15ec53ef85acb60..535935320a39f5c4bc89ceda458980d561f33b03 100644 --- a/aws/sdk/integration-tests/timestreamquery/Cargo.toml +++ b/aws/sdk/integration-tests/timestreamquery/Cargo.toml @@ -5,7 +5,7 @@ version = "0.1.0" authors = ["Russell Cohen "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/aws/sdk/integration-tests/transcribestreaming/Cargo.toml b/aws/sdk/integration-tests/transcribestreaming/Cargo.toml index 45a26fb836fa0abc82bd124e82eb9218d616b62b..ba1596d88b3887bb75972ae7d89e494d97e09b08 100644 --- a/aws/sdk/integration-tests/transcribestreaming/Cargo.toml +++ b/aws/sdk/integration-tests/transcribestreaming/Cargo.toml @@ -5,7 +5,7 @@ version = "0.1.0" authors = ["AWS Rust SDK Team ", "John DiSanti "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false [dev-dependencies] diff --git a/aws/sdk/integration-tests/webassembly/Cargo.toml b/aws/sdk/integration-tests/webassembly/Cargo.toml index 159fb4b8676e0063f5d878b89464c9b6494cb685..5d47bccd1d2c9467ef5e6a484f6075a421083ba6 100644 --- a/aws/sdk/integration-tests/webassembly/Cargo.toml +++ b/aws/sdk/integration-tests/webassembly/Cargo.toml @@ -9,7 +9,7 @@ when target is set to wasm32-wasi for all SDK and runtime crates. """ edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" publish = false [lib] diff --git a/aws/sdk/sdk-external-types.toml b/aws/sdk/sdk-external-types.toml index b4f1806f4598bb7f2371f19a906848f5d71fb3e7..a58f912dff7a9f1f0b9f7ed741c23de930bbb7b3 100644 --- a/aws/sdk/sdk-external-types.toml +++ b/aws/sdk/sdk-external-types.toml @@ -10,7 +10,7 @@ allowed_external_types = [ # only allowed in from impl for presigned request "http::request::Request", - # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `event-stream` feature + # TODO(https://github.com/smithy-lang/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `event-stream` feature "aws_smithy_eventstream::*", # Consider moving making this crate 1.0 diff --git a/buildSrc/src/main/kotlin/CodegenTestCommon.kt b/buildSrc/src/main/kotlin/CodegenTestCommon.kt index cc996eae82db7c37313ebbbe7a2269cf98019a8e..12b3a543c1e3dd506c49a608393e5e5f0872bbc2 100644 --- a/buildSrc/src/main/kotlin/CodegenTestCommon.kt +++ b/buildSrc/src/main/kotlin/CodegenTestCommon.kt @@ -204,7 +204,7 @@ fun Project.registerModifyMtimeTask() { // hashes coincide. // Debugging tip: it is useful to run with `CARGO_LOG=cargo::core::compiler::fingerprint=trace` to learn why Cargo // determines a compilation unit needs a rebuild. - // For more information see https://github.com/awslabs/smithy-rs/issues/1412. + // For more information see https://github.com/smithy-lang/smithy-rs/issues/1412. this.tasks.register("modifyMtime") { description = "modify Rust files' `mtime` if the contents did not change" dependsOn("generateSmithyBuild") diff --git a/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customizations/HttpConnectorConfigDecorator.kt b/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customizations/HttpConnectorConfigDecorator.kt index 0feb667fe08b78b3f32c3e775731fcdae59ee26b..b57b51bf2c8e0441791ff6ecb3fe23cbcf9a9bdb 100644 --- a/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customizations/HttpConnectorConfigDecorator.kt +++ b/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customizations/HttpConnectorConfigDecorator.kt @@ -48,7 +48,7 @@ private class HttpConnectorConfigCustomization( """ /// Deprecated. Don't use. ##[deprecated( - note = "HTTP connector configuration changed. See https://github.com/awslabs/smithy-rs/discussions/3022 for upgrade guidance." + note = "HTTP connector configuration changed. See https://github.com/smithy-lang/smithy-rs/discussions/3022 for upgrade guidance." )] pub fn http_connector(&self) -> Option<#{SharedHttpClient}> { self.runtime_components.http_client() @@ -68,7 +68,7 @@ private class HttpConnectorConfigCustomization( """ /// Deprecated. Don't use. ##[deprecated( - note = "HTTP connector configuration changed. See https://github.com/awslabs/smithy-rs/discussions/3022 for upgrade guidance." + note = "HTTP connector configuration changed. See https://github.com/smithy-lang/smithy-rs/discussions/3022 for upgrade guidance." )] pub fn http_connector(self, http_client: impl #{HttpClient} + 'static) -> Self { self.http_client(http_client) @@ -76,7 +76,7 @@ private class HttpConnectorConfigCustomization( /// Deprecated. Don't use. ##[deprecated( - note = "HTTP connector configuration changed. See https://github.com/awslabs/smithy-rs/discussions/3022 for upgrade guidance." + note = "HTTP connector configuration changed. See https://github.com/smithy-lang/smithy-rs/discussions/3022 for upgrade guidance." )] pub fn set_http_connector(&mut self, http_client: Option<#{SharedHttpClient}>) -> &mut Self { self.set_http_client(http_client) diff --git a/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/PaginatorGenerator.kt b/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/PaginatorGenerator.kt index 2f47ffba7a6ef90294fe9c5c1d37e2bc80867706..84508e104dc3478e76b025cce2bb972d5466503d 100644 --- a/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/PaginatorGenerator.kt +++ b/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/PaginatorGenerator.kt @@ -29,7 +29,7 @@ import software.amazon.smithy.rust.codegen.core.util.orNull import software.amazon.smithy.rust.codegen.core.util.outputShape import software.amazon.smithy.rust.codegen.core.util.toPascalCase -// TODO(https://github.com/awslabs/smithy-rs/issues/1013) Support pagination when the idempotency trait is present +// TODO(https://github.com/smithy-lang/smithy-rs/issues/1013) Support pagination when the idempotency trait is present fun OperationShape.isPaginated(model: Model) = hasTrait() && inputShape(model) .findMemberWithTrait(model) == null diff --git a/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/protocol/ProtocolTestGenerator.kt b/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/protocol/ProtocolTestGenerator.kt index a188d3c9484f75cb36dd164285a49ab73becfdb4..4c4cfcd796e77ce945cac7a254c822992c967bc9 100644 --- a/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/protocol/ProtocolTestGenerator.kt +++ b/codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/protocol/ProtocolTestGenerator.kt @@ -530,7 +530,7 @@ class DefaultProtocolTestGenerator( // These tests are not even attempted to be generated, either because they will not compile // or because they are flaky private val DisableTests = setOf( - // TODO(https://github.com/awslabs/smithy-rs/issues/2891): Implement support for `@requestCompression` + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2891): Implement support for `@requestCompression` "SDKAppendedGzipAfterProvidedEncoding_restJson1", "SDKAppendedGzipAfterProvidedEncoding_restXml", "SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0", diff --git a/codegen-core/common-test-models/constraints.smithy b/codegen-core/common-test-models/constraints.smithy index c30c669b160f4dbb701a949edd1290d40a5ce270..18bbdc252a246c4405908365fbc93081afd7ed63 100644 --- a/codegen-core/common-test-models/constraints.smithy +++ b/codegen-core/common-test-models/constraints.smithy @@ -11,7 +11,7 @@ use smithy.framework#ValidationException service ConstraintsService { operations: [ ConstrainedShapesOperation, - // See https://github.com/awslabs/smithy-rs/issues/2760 for why testing operations reaching + // See https://github.com/smithy-lang/smithy-rs/issues/2760 for why testing operations reaching // constrained shapes that only lie in the output is important. ConstrainedShapesOnlyInOutputOperation, ConstrainedHttpBoundShapesOperation, @@ -37,7 +37,7 @@ service ConstraintsService { QueryParamsTargetingMapOfEnumStringOperation, QueryParamsTargetingMapOfListOfEnumStringOperation, - // TODO(https://github.com/awslabs/smithy-rs/issues/1431) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1431) // HttpPrefixHeadersTargetingMapOfEnumStringOperation, NonStreamingBlobOperation, @@ -274,7 +274,7 @@ structure ConstrainedHttpBoundShapesOperationInputOutput { @httpHeader("X-Range-Long-List") rangeLongListHeader: ListOfRangeLong, - // TODO(https://github.com/awslabs/smithy-rs/issues/1431) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1431) // @httpHeader("X-Enum") //enumStringHeader: EnumString, @@ -498,7 +498,7 @@ structure ConA { mapOfLengthString: MapOfLengthString, listOfLengthBlob: ListOfLengthBlob, - // TODO(https://github.com/awslabs/smithy-rs/issues/1401): a `set` shape is + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401): a `set` shape is // just a `list` shape with `uniqueItems`, which hasn't been implemented yet. // setOfLengthBlob: SetOfLengthBlob, mapOfLengthBlob: MapOfLengthBlob, @@ -948,7 +948,7 @@ structure ConstrainedShapesOnlyInOutputOperationOutput { list: ConstrainedListInOutput map: ConstrainedMapInOutput // Unions were not affected by - // https://github.com/awslabs/smithy-rs/issues/2760, but testing anyway for + // https://github.com/smithy-lang/smithy-rs/issues/2760, but testing anyway for // good measure. union: ConstrainedUnionInOutput } diff --git a/codegen-core/common-test-models/misc.smithy b/codegen-core/common-test-models/misc.smithy index f78bb6db7cdb4944760251f50d98be1abae5779c..10072543c9f7c9e99f0a1bff2feda25988abb7c5 100644 --- a/codegen-core/common-test-models/misc.smithy +++ b/codegen-core/common-test-models/misc.smithy @@ -95,7 +95,7 @@ structure InnermostShape { @required aDouble: Double, - // TODO(https://github.com/awslabs/smithy-rs/issues/312) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/312) // @required // aBigInteger: BigInteger, diff --git a/codegen-core/common-test-models/naming-obstacle-course-casing.smithy b/codegen-core/common-test-models/naming-obstacle-course-casing.smithy index fb80a46d48beacb9145340ff403ed4d379058dbb..cef9f58e727ed137819e3cdecf4f65cd34ad366c 100644 --- a/codegen-core/common-test-models/naming-obstacle-course-casing.smithy +++ b/codegen-core/common-test-models/naming-obstacle-course-casing.smithy @@ -3,7 +3,7 @@ namespace casing use aws.protocols#awsJson1_1 -// TODO(https://github.com/awslabs/smithy-rs/issues/2340): The commented part of the model breaks the generator in a +// TODO(https://github.com/smithy-lang/smithy-rs/issues/2340): The commented part of the model breaks the generator in a // miriad of ways. Any solution to the linked issue must address this. /// Confounds model generation machinery with lots of problematic casing diff --git a/codegen-core/common-test-models/pokemon-awsjson.smithy b/codegen-core/common-test-models/pokemon-awsjson.smithy index 12e455ecdd07644a19a45692a60174b033f4539e..3d074f1e88cc7494a32197e34d2e905df5a53aa0 100644 --- a/codegen-core/common-test-models/pokemon-awsjson.smithy +++ b/codegen-core/common-test-models/pokemon-awsjson.smithy @@ -1,6 +1,6 @@ $version: "1.0" -// TODO(https://github.com/awslabs/smithy-rs/issues/2215) +// TODO(https://github.com/smithy-lang/smithy-rs/issues/2215) // This is a temporary model to test AwsJson 1.0 with @streaming. // This model will be removed when protocol tests support @streaming. diff --git a/codegen-core/common-test-models/rest-json-extras.smithy b/codegen-core/common-test-models/rest-json-extras.smithy index 7002e305e41cc497fd08c6339aba3683ad970539..2633fe00a830028b29844c3ca548ba764771deae 100644 --- a/codegen-core/common-test-models/rest-json-extras.smithy +++ b/codegen-core/common-test-models/rest-json-extras.smithy @@ -65,7 +65,7 @@ service RestJsonExtras { NullInNonSparse, CaseInsensitiveErrorOperation, EmptyStructWithContentOnWireOp, - // TODO(https://github.com/awslabs/smithy-rs/issues/2968): Remove the following once these tests are included in Smithy + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2968): Remove the following once these tests are included in Smithy // They're being added in https://github.com/smithy-lang/smithy/pull/1908 HttpPayloadWithUnion, ], @@ -317,7 +317,7 @@ operation CaseInsensitiveErrorOperation { @httpResponseTests([ { - documentation: "Upper case error modeled lower case. See: https://github.com/awslabs/smithy-rs/blob/6c21fb0eb377c7120a8179f4537ba99a4b50ba96/rust-runtime/inlineable/src/json_errors.rs#L51-L51", + documentation: "Upper case error modeled lower case. See: https://github.com/smithy-lang/smithy-rs/blob/6c21fb0eb377c7120a8179f4537ba99a4b50ba96/rust-runtime/inlineable/src/json_errors.rs#L51-L51", id: "UpperErrorModeledLower", protocol: "aws.protocols#restJson1", code: 500, diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/rustlang/RustType.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/rustlang/RustType.kt index f20572bbd3c266af3c2b1c169dab40b951ca0e0d..75d97a2721bb3031d0c8a38a413be47a2bf28484 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/rustlang/RustType.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/rustlang/RustType.kt @@ -485,7 +485,7 @@ class Attribute(val inner: Writable, val isDeriveHelper: Boolean = false) { // These were supposed to be a part of companion object but we decided to move it out to here to avoid NPE // You can find the discussion here. - // https://github.com/awslabs/smithy-rs/discussions/2248 + // https://github.com/smithy-lang/smithy-rs/discussions/2248 public fun SerdeSerialize(): Attribute { return Attribute(cfgAttr(all(writable("aws_sdk_unstable"), feature("serde-serialize")), derive(RuntimeType.SerdeSerialize))) } diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/CodegenDelegator.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/CodegenDelegator.kt index 5ae40c3574d967a07caabec73609695350b8745a..d52359d6c408cc944095ddaff88d69f69be18356 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/CodegenDelegator.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/CodegenDelegator.kt @@ -237,7 +237,7 @@ open class RustCrate( } } -// TODO(https://github.com/awslabs/smithy-rs/issues/2341): Remove unconstrained/constrained from codegen-core +// TODO(https://github.com/smithy-lang/smithy-rs/issues/2341): Remove unconstrained/constrained from codegen-core val UnconstrainedModule = RustModule.private("unconstrained") val ConstrainedModule = RustModule.private("constrained") diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/SymbolMetadataProvider.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/SymbolMetadataProvider.kt index 964f2046dd77ad80262d07c7ce16bf314c7fc5ce..6476dd538e305fc17dbdcb17f6cc3563b158e4ad 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/SymbolMetadataProvider.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/SymbolMetadataProvider.kt @@ -103,7 +103,7 @@ class BaseSymbolMetadataProvider( is UnionShape, is CollectionShape, is MapShape -> RustMetadata(visibility = Visibility.PUBLIC) // This covers strings with the enum trait for now, and can be removed once we're fully on EnumShape - // TODO(https://github.com/awslabs/smithy-rs/issues/1700): Remove this `is StringShape` match arm + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1700): Remove this `is StringShape` match arm is StringShape -> RustMetadata(visibility = Visibility.PUBLIC) else -> TODO("Unrecognized container type: $container") diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/SymbolVisitor.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/SymbolVisitor.kt index 9deff45ccc6c07b4d2ad6ba49c372aba511c640e..af74c80d9f671eb7203c9a9ee5c85e3b75077362 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/SymbolVisitor.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/SymbolVisitor.kt @@ -226,11 +226,11 @@ open class SymbolVisitor( } override fun bigIntegerShape(shape: BigIntegerShape?): Symbol { - TODO("Not yet implemented: https://github.com/awslabs/smithy-rs/issues/312") + TODO("Not yet implemented: https://github.com/smithy-lang/smithy-rs/issues/312") } override fun bigDecimalShape(shape: BigDecimalShape?): Symbol { - TODO("Not yet implemented: https://github.com/awslabs/smithy-rs/issues/312") + TODO("Not yet implemented: https://github.com/smithy-lang/smithy-rs/issues/312") } override fun operationShape(shape: OperationShape): Symbol { diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/customizations/SmithyTypesPubUseExtra.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/customizations/SmithyTypesPubUseExtra.kt index d37ffde29a48fcb5627e0e3f63c5d063c1df5750..2a285ca13f3fabd9b12dbeb2e946ed74a809e706 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/customizations/SmithyTypesPubUseExtra.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/customizations/SmithyTypesPubUseExtra.kt @@ -29,7 +29,7 @@ private fun hasStreamingOperations(model: Model): Boolean { } } -// TODO(https://github.com/awslabs/smithy-rs/issues/2111): Fix this logic to consider collection/map shapes +// TODO(https://github.com/smithy-lang/smithy-rs/issues/2111): Fix this logic to consider collection/map shapes private fun structUnionMembersMatchPredicate(model: Model, predicate: (Shape) -> Boolean): Boolean = model.structureShapes.any { structure -> structure.members().any { member -> predicate(model.expectShape(member.target)) } diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/customize/CoreCodegenDecorator.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/customize/CoreCodegenDecorator.kt index c91d705ac39de0bd195f45affb583f52785f99e5..923f4fce554a4514bf24cae69fd95a6d18fda83c 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/customize/CoreCodegenDecorator.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/customize/CoreCodegenDecorator.kt @@ -83,7 +83,7 @@ interface CoreCodegenDecorator { baseCustomizations: List, ): List = baseCustomizations - // TODO(https://github.com/awslabs/smithy-rs/issues/1401): Move builder customizations into `ClientCodegenDecorator` + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401): Move builder customizations into `ClientCodegenDecorator` /** * Hook to customize generated builders. */ diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/BuilderGenerator.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/BuilderGenerator.kt index 9369423757bf7a89291d0281e7f67b99a681407c..76c8caf4efa3120d2caa3814079ad0e9afa8e8f7 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/BuilderGenerator.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/BuilderGenerator.kt @@ -51,7 +51,7 @@ import software.amazon.smithy.rust.codegen.core.util.letIf import software.amazon.smithy.rust.codegen.core.util.redactIfNecessary import software.amazon.smithy.rust.codegen.core.util.toSnakeCase -// TODO(https://github.com/awslabs/smithy-rs/issues/1401) This builder generator is only used by the client. +// TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) This builder generator is only used by the client. // Move this entire file, and its tests, to `codegen-client`. /** BuilderGenerator customization sections */ @@ -244,7 +244,7 @@ class BuilderGenerator( member: MemberShape, memberName: String, ) { - // TODO(https://github.com/awslabs/smithy-rs/issues/1302): This `asOptional()` call is superfluous except in + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1302): This `asOptional()` call is superfluous except in // the case where the shape is a `@streaming` blob, because [StreamingTraitSymbolProvider] always generates // a non `Option`al target type: in all other cases the client generates `Option`al types. val inputType = outerType.asOptional() @@ -266,7 +266,7 @@ class BuilderGenerator( member: MemberShape, memberName: String, ) { - // TODO(https://github.com/awslabs/smithy-rs/issues/1302): This `asOptional()` call is superfluous except in + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1302): This `asOptional()` call is superfluous except in // the case where the shape is a `@streaming` blob, because [StreamingTraitSymbolProvider] always generates // a non `Option`al target type: in all other cases the client generates `Option`al types. val inputType = outerType.asOptional() diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/EnumGenerator.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/EnumGenerator.kt index b2732c9d5c8dcfdec170fea03885a2ecac08cdc4..9c614c7c6e419ee53b4a20d1788459dc6e2a4fca 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/EnumGenerator.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/EnumGenerator.kt @@ -88,7 +88,7 @@ class EnumMemberModel( * * Ordinarily, the symbol provider would determine this name, but the enum trait doesn't allow for this. * - * TODO(https://github.com/awslabs/smithy-rs/issues/1700): Remove this function when refactoring to EnumShape. + * TODO(https://github.com/smithy-lang/smithy-rs/issues/1700): Remove this function when refactoring to EnumShape. */ @Deprecated("This function will go away when we handle EnumShape instead of EnumTrait") fun toEnumVariantName( diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/LibRsGenerator.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/LibRsGenerator.kt index 1da954f0860c115b08c777c6b4764582670b819f..ed05e0c1f072bd77b35c9587599d0e262cb4cc90 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/LibRsGenerator.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/LibRsGenerator.kt @@ -80,7 +80,7 @@ class LibRsGenerator( writeTo(this) } - // TODO(https://github.com/awslabs/smithy-rs/issues/69): Generate a basic example for all crates (eg. select first operation and render an example of usage) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/69): Generate a basic example for all crates (eg. select first operation and render an example of usage) settings.examplesUri?.also { uri -> containerDocs("Examples can be found [here]($uri).") } diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/http/HttpBindingGenerator.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/http/HttpBindingGenerator.kt index 2491d07c0e76ccc81d8de00ebecefb088e7677c9..4a9839d295e635529b1a32f7b94cef7fc9f76656 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/http/HttpBindingGenerator.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/http/HttpBindingGenerator.kt @@ -187,7 +187,7 @@ class HttpBindingGenerator( let out: std::result::Result<_, _> = headers.map(|(key, header_name)| { let values = header_map.get_all(header_name); #T(values.iter()).map(|v| (key.to_string(), v.expect( - "we have checked there is at least one value for this header name; please file a bug report under https://github.com/awslabs/smithy-rs/issues" + "we have checked there is at least one value for this header name; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues" ))) }).collect(); """, diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/AwsJson.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/AwsJson.kt index 0a5342255221bc739338fa01adc7c1bdc6030447..40f8f22934d74672d7b57b10e12b95bd15d8d18c 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/AwsJson.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/AwsJson.kt @@ -50,11 +50,11 @@ class AwsJsonHttpBindingResolver( private fun bindings(shape: ToShapeId): List { val members = shape.let { model.expectShape(it.toShapeId()) }.members() - // TODO(https://github.com/awslabs/smithy-rs/issues/2237): support non-streaming members too + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2237): support non-streaming members too if (members.size > 1 && members.any { it.isStreaming(model) }) { throw CodegenException( "We only support one payload member if that payload contains a streaming member." + - "Tracking issue to relax this constraint: https://github.com/awslabs/smithy-rs/issues/2237", + "Tracking issue to relax this constraint: https://github.com/smithy-lang/smithy-rs/issues/2237", ) } diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/RestJson.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/RestJson.kt index ba526d0c87336ca611d4dd2066392282aa5e9289..6b28820935c64da2f5b759d083b02db4562491a3 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/RestJson.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/RestJson.kt @@ -87,7 +87,7 @@ open class RestJson(val codegenContext: CodegenContext) : Protocol { * * But it's a SHOULD; we could strip the namespace if we wanted to. In fact, we did so in smithy-rs versions * 0.52.0 to 0.55.4; see: - * - https://github.com/awslabs/smithy-rs/pull/1982 + * - https://github.com/smithy-lang/smithy-rs/pull/1982 * - https://github.com/awslabs/smithy/pull/1493 * - https://github.com/awslabs/smithy/issues/1494 */ diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/parse/EventStreamUnmarshallerGenerator.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/parse/EventStreamUnmarshallerGenerator.kt index 03b4f14f4f08cda336e7f619a829d30f905829d9..47aadd368d35ee162f5363bf950abef507b49dbf 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/parse/EventStreamUnmarshallerGenerator.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/parse/EventStreamUnmarshallerGenerator.kt @@ -341,7 +341,7 @@ class EventStreamUnmarshallerGenerator( // TODO(EventStream): Errors on the operation can be disjoint with errors in the union, // so we need to generate a new top-level Error type for each event stream union. when (codegenTarget) { - // TODO(https://github.com/awslabs/smithy-rs/issues/1970) It should be possible to unify these branches now + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1970) It should be possible to unify these branches now CodegenTarget.CLIENT -> { val target = model.expectShape(member.target, StructureShape::class.java) val parser = protocol.structuredDataParser().errorParser(target) diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/SerializerUtil.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/SerializerUtil.kt index 78012b1d6d4dcd29157fbd45e3106fd9e8bef249..27293e4303906e11589b79b34ce68bfcfd5ff3e8 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/SerializerUtil.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/serialize/SerializerUtil.kt @@ -15,7 +15,7 @@ import software.amazon.smithy.rust.codegen.core.rustlang.rustBlock class SerializerUtil(private val model: Model) { fun RustWriter.ignoreZeroValues(shape: MemberShape, value: ValueExpression, inner: Writable) { // Required shapes should always be serialized - // See https://github.com/awslabs/smithy-rs/issues/230 and https://github.com/aws/aws-sdk-go-v2/pull/1129 + // See https://github.com/smithy-lang/smithy-rs/issues/230 and https://github.com/aws/aws-sdk-go-v2/pull/1129 if ( shape.isRequired || // Zero values are always serialized in lists and collections, this only applies to structures diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil/Rust.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil/Rust.kt index 9fdab3965def0d2d67d6fd90bf0c0440a9db41a1..a087089dd3ea8db7812027bc5133a37d262fc647 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil/Rust.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil/Rust.kt @@ -109,7 +109,7 @@ object TestWorkspace { ) newProject.resolve("rust-toolchain.toml").writeText( // help rust select the right version when we run cargo test - // TODO(https://github.com/awslabs/smithy-rs/issues/2048): load this from the msrv property using a + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2048): load this from the msrv property using a // method as we do for runtime crate versions "[toolchain]\nchannel = \"1.70.0\"\n", ) diff --git a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/util/Strings.kt b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/util/Strings.kt index 3ef2731293004a56cab1896159cfc801344527fa..d6668500280f040d6371a25da2eaa39a5798cff6 100644 --- a/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/util/Strings.kt +++ b/codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/util/Strings.kt @@ -125,6 +125,6 @@ fun String.toSnakeCase(): String { } fun String.toPascalCase(): String { - // TODO(https://github.com/awslabs/smithy-rs/issues/3047): consider using our updated toSnakeCase (but need to audit diff) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/3047): consider using our updated toSnakeCase (but need to audit diff) return CaseUtils.toSnakeCase(this).let { CaseUtils.toPascalCase(it) } } diff --git a/codegen-server-test/build.gradle.kts b/codegen-server-test/build.gradle.kts index c4b2f00dbad7992785e0064d1db0aa8490591ea5..2585c988602571fbf8d5bf0186470a0eb059e004 100644 --- a/codegen-server-test/build.gradle.kts +++ b/codegen-server-test/build.gradle.kts @@ -71,7 +71,7 @@ val allCodegenTests = "../codegen-core/common-test-models".let { commonModels -> "aws.protocoltests.restjson.validation#RestJsonValidation", "rest_json_validation", // `@range` trait is used on floating point shapes, which we deliberately don't want to support. - // See https://github.com/awslabs/smithy-rs/issues/1401. + // See https://github.com/smithy-lang/smithy-rs/issues/1401. extraConfig = """, "codegen": { "ignoreUnsupportedConstraints": true } """, ), CodegenTest("aws.protocoltests.json10#JsonRpc10", "json_rpc10"), diff --git a/codegen-server-test/python/build.gradle.kts b/codegen-server-test/python/build.gradle.kts index 469e0e6bd7c42ac743b71fd3915d639be96abe66..11bc96ac67aa9475ef143c9b076c825de5942435 100644 --- a/codegen-server-test/python/build.gradle.kts +++ b/codegen-server-test/python/build.gradle.kts @@ -67,12 +67,12 @@ val allCodegenTests = "../../codegen-core/common-test-models".let { commonModels "rest_json_extras", imports = listOf("$commonModels/rest-json-extras.smithy"), ), - // TODO(https://github.com/awslabs/smithy-rs/issues/2477) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2477) // CodegenTest( // "aws.protocoltests.restjson.validation#RestJsonValidation", // "rest_json_validation", // // `@range` trait is used on floating point shapes, which we deliberately don't want to support. - // // See https://github.com/awslabs/smithy-rs/issues/1401. + // // See https://github.com/smithy-lang/smithy-rs/issues/1401. // extraConfig = """, "codegen": { "ignoreUnsupportedConstraints": true } """, // ), CodegenTest( diff --git a/codegen-server-test/typescript/model/pokemon.smithy b/codegen-server-test/typescript/model/pokemon.smithy index 06e46906e715e28a5c9d3a2f9f2946de0fe9893a..7874a4f32252380354d50a2f7bf840e1b6db4d0b 100644 --- a/codegen-server-test/typescript/model/pokemon.smithy +++ b/codegen-server-test/typescript/model/pokemon.smithy @@ -1,4 +1,4 @@ -/// TODO(https://github.com/awslabs/smithy-rs/issues/1508) +/// TODO(https://github.com/smithy-lang/smithy-rs/issues/1508) /// reconcile this model with the main one living inside codegen-server-test/model/pokemon.smithy /// once the Typescript implementation supports Streaming and Union shapes. $version: "1.0" diff --git a/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonApplicationGenerator.kt b/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonApplicationGenerator.kt index 96ecbfe75cca18a009d9b207f5266e428da3ee73..9b05d22434a439c6839ae6d0ef2c3cbd7f340b79 100644 --- a/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonApplicationGenerator.kt +++ b/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonApplicationGenerator.kt @@ -218,7 +218,7 @@ class PythonApplicationGenerator( } rustTemplate( """ - let mut service = #{tower}::util::BoxCloneService::new(builder.build().expect("one or more operations do not have a registered handler; this is a bug in the Python code generator, please file a bug report under https://github.com/awslabs/smithy-rs/issues")); + let mut service = #{tower}::util::BoxCloneService::new(builder.build().expect("one or more operations do not have a registered handler; this is a bug in the Python code generator, please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")); { use #{tower}::Layer; diff --git a/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonServerOperationHandlerGenerator.kt b/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonServerOperationHandlerGenerator.kt index d9ab006b0d581e9cc0946ce582f21be7a35214a2..53b82c2d2935731b5a1d350a508917094ef0854a 100644 --- a/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonServerOperationHandlerGenerator.kt +++ b/codegen-server/python/src/main/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonServerOperationHandlerGenerator.kt @@ -54,7 +54,7 @@ class PythonServerOperationHandlerGenerator( val operationName = symbolProvider.toSymbol(operation).name val input = "crate::input::${operationName.toPascalCase()}Input" val output = "crate::output::${operationName.toPascalCase()}Output" - // TODO(https://github.com/awslabs/smithy-rs/issues/2552) - Use to pascalCase for error shapes. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2552) - Use to pascalCase for error shapes. val error = "crate::error::${operationName}Error" val fnName = RustReservedWords.escapeIfNeeded(symbolProvider.toSymbol(operation).name.toSnakeCase()) diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ConstrainedShapeSymbolMetadataProvider.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ConstrainedShapeSymbolMetadataProvider.kt index 2c7b4f1fc5ae5099a6547ec75ec49982d66b8c04..df933eb657db0b330151d0c9d92985c2d189d8da 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ConstrainedShapeSymbolMetadataProvider.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ConstrainedShapeSymbolMetadataProvider.kt @@ -50,7 +50,7 @@ class ConstrainedShapeSymbolMetadataProvider( // We should _always_ be able to `#[derive(Debug)]`: all constrained shapes' types are simply tuple newtypes // wrapping a single type which always implements `Debug`. - // The wrapped type may not _derive_ `Debug` though, hence why this line is required; see https://github.com/awslabs/smithy-rs/issues/2582. + // The wrapped type may not _derive_ `Debug` though, hence why this line is required; see https://github.com/smithy-lang/smithy-rs/issues/2582. derives += RuntimeType.Debug val visibility = Visibility.publicIf(constrainedTypes, Visibility.PUBCRATE) diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ConstrainedShapeSymbolProvider.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ConstrainedShapeSymbolProvider.kt index fb1a1acac7c170f565d565ab0b0660ba9f2474c7..0dfda68d1eb7011727d08d2676a00d6acf90cb0f 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ConstrainedShapeSymbolProvider.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ConstrainedShapeSymbolProvider.kt @@ -77,7 +77,7 @@ open class ConstrainedShapeSymbolProvider( override fun toSymbol(shape: Shape): Symbol { return when (shape) { is MemberShape -> { - // TODO(https://github.com/awslabs/smithy-rs/issues/1401) Member shapes can have constraint traits + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) Member shapes can have constraint traits // (constraint trait precedence). val target = model.expectShape(shape.target) val targetSymbol = this.toSymbol(target) diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/Constraints.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/Constraints.kt index 8152272a1c35195e15c61309825427c4b60bb498..5d0313e132c8df98120679d0e4edff42357a3d98 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/Constraints.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/Constraints.kt @@ -88,7 +88,7 @@ val supportedCollectionConstraintTraits = setOf( */ fun Shape.isDirectlyConstrained(symbolProvider: SymbolProvider): Boolean = when (this) { is StructureShape -> { - // TODO(https://github.com/awslabs/smithy-rs/issues/1302, https://github.com/awslabs/smithy/issues/1179): + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1302, https://github.com/awslabs/smithy/issues/1179): // The only reason why the functions in this file have // to take in a `SymbolProvider` is because non-`required` blob streaming members are interpreted as // `required`, so we can't use `member.isOptional` here. @@ -111,7 +111,7 @@ fun Shape.isTransitivelyButNotDirectlyConstrained(model: Model, symbolProvider: fun Shape.canReachConstrainedShape(model: Model, symbolProvider: SymbolProvider): Boolean = if (this is MemberShape) { - // TODO(https://github.com/awslabs/smithy-rs/issues/1401) Constraint traits on member shapes are not implemented + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) Constraint traits on member shapes are not implemented // yet. Also, note that a walker over a member shape can, perhaps counterintuitively, reach the _containing_ shape, // so we can't simply delegate to the `else` branch when we implement them. this.targetCanReachConstrainedShape(model, symbolProvider) diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/PatternTraitEscapedSpecialCharsValidator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/PatternTraitEscapedSpecialCharsValidator.kt index 7b54ff48b001a9f8d960f8cda2637d4c195046c0..a26dff9e36c71ad59f0324cb34e9769db2fcaa20 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/PatternTraitEscapedSpecialCharsValidator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/PatternTraitEscapedSpecialCharsValidator.kt @@ -42,7 +42,7 @@ class PatternTraitEscapedSpecialCharsValidator : AbstractValidator() { """ Non-escaped special characters used inside `@pattern`. You must escape them: `@pattern($replacement)`. - See https://github.com/awslabs/smithy-rs/issues/2508 for more details. + See https://github.com/smithy-lang/smithy-rs/issues/2508 for more details. """.trimIndent() return error(shape, pattern, message) } diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ServerCodegenVisitor.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ServerCodegenVisitor.kt index dda5660037b62be826f97da7e5f5db6fa621f19a..5e5f7681b58d4973482aa2fb10e93b00b373a026 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ServerCodegenVisitor.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ServerCodegenVisitor.kt @@ -239,7 +239,7 @@ open class ServerCodegenVisitor( validateUnsupportedConstraints(model, service, codegenContext.settings.codegenConfig), )) { for (logMessage in validationResult.messages) { - // TODO(https://github.com/awslabs/smithy-rs/issues/1756): These are getting duplicated. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1756): These are getting duplicated. logger.log(logMessage.level, logMessage.message) } if (validationResult.shouldAbort) { @@ -260,7 +260,7 @@ open class ServerCodegenVisitor( model, codegenDecorator.crateManifestCustomizations(codegenContext), codegenDecorator.libRsCustomizations(codegenContext, listOf()), - // TODO(https://github.com/awslabs/smithy-rs/issues/1287): Remove once the server codegen is far enough along. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1287): Remove once the server codegen is far enough along. requireDocs = false, ) try { diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ServerRustSettings.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ServerRustSettings.kt index 67fbea91cd60ebd2ecd4df1400d4316e8ebf4bd5..7b0ba87e61176f66e570ec62f96bd1186a8ac449 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ServerRustSettings.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ServerRustSettings.kt @@ -86,7 +86,7 @@ data class ServerCodegenConfig( /** * A flag to enable _experimental_ support for custom validation exceptions via the * [CustomValidationExceptionWithReasonDecorator] decorator. - * TODO(https://github.com/awslabs/smithy-rs/pull/2053): this will go away once we implement the RFC, when users will be + * TODO(https://github.com/smithy-lang/smithy-rs/pull/2053): this will go away once we implement the RFC, when users will be * able to define the converters in their Rust application code. */ val experimentalCustomValidationExceptionWithReasonPleaseDoNotUse: String? = defaultExperimentalCustomValidationExceptionWithReasonPleaseDoNotUse, diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/UnconstrainedShapeSymbolProvider.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/UnconstrainedShapeSymbolProvider.kt index 711f35e462f0908ae8b0a17b94e254dc630fa21b..488c9347a20b3ed8b4feb2b254cb1ec24785cdea 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/UnconstrainedShapeSymbolProvider.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/UnconstrainedShapeSymbolProvider.kt @@ -171,7 +171,7 @@ class UnconstrainedShapeSymbolProvider( } else { base.toSymbol(shape) } - // TODO(https://github.com/awslabs/smithy-rs/issues/1401) Constraint traits on member shapes are not + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) Constraint traits on member shapes are not // implemented yet. } diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ValidateUnsupportedConstraints.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ValidateUnsupportedConstraints.kt index 4dfa97644ed99ce62c50665d94cd9e7bd5e22c8b..abee410b5b0b340f6f305a4f62c733f423343989 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ValidateUnsupportedConstraints.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/ValidateUnsupportedConstraints.kt @@ -34,7 +34,7 @@ import software.amazon.smithy.rust.codegen.core.util.orNull import java.util.logging.Level private sealed class UnsupportedConstraintMessageKind { - private val constraintTraitsUberIssue = "https://github.com/awslabs/smithy-rs/issues/1401" + private val constraintTraitsUberIssue = "https://github.com/smithy-lang/smithy-rs/issues/1401" fun intoLogMessage(ignoreUnsupportedConstraints: Boolean): LogMessage { fun buildMessage(intro: String, willSupport: Boolean, trackingIssue: String? = null, canBeIgnored: Boolean = true): String { @@ -109,7 +109,7 @@ private sealed class UnsupportedConstraintMessageKind { shape, rangeTrait, willSupport = false, - trackingIssue = "https://github.com/awslabs/smithy-rs/issues/2007", + trackingIssue = "https://github.com/smithy-lang/smithy-rs/issues/2007", ), ) @@ -172,8 +172,8 @@ fun validateOperationsWithConstrainedInputHaveValidationExceptionAttached( validationExceptionShapeId: ShapeId, ): ValidationResult { // Traverse the model and error out if an operation uses constrained input, but it does not have - // `ValidationException` attached in `errors`. https://github.com/awslabs/smithy-rs/pull/1199#discussion_r809424783 - // TODO(https://github.com/awslabs/smithy-rs/issues/1401): This check will go away once we add support for + // `ValidationException` attached in `errors`. https://github.com/smithy-lang/smithy-rs/pull/1199#discussion_r809424783 + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401): This check will go away once we add support for // `disableDefaultValidation` set to `true`, allowing service owners to map from constraint violations to operation errors. val walker = DirectedWalker(model) val operationsWithConstrainedInputWithoutValidationExceptionSet = walker.walkShapes(service) @@ -256,7 +256,7 @@ fun validateUnsupportedConstraints( unsupportedConstraintOnNonErrorShapeReachableViaAnEventStreamSet + unsupportedConstraintErrorShapeReachableViaAnEventStreamSet // 3. Range trait used on unsupported shapes. - // TODO(https://github.com/awslabs/smithy-rs/issues/2007) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2007) val unsupportedRangeTraitOnShapeSet = walker .walkShapes(service) .asSequence() diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/customizations/CustomValidationExceptionWithReasonDecorator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/customizations/CustomValidationExceptionWithReasonDecorator.kt index 9a0778b41a28410b1088e48659820b7ba0243462..b2b2aa0b9920465d06361b560977459a3c3602de 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/customizations/CustomValidationExceptionWithReasonDecorator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/customizations/CustomValidationExceptionWithReasonDecorator.kt @@ -44,7 +44,7 @@ import software.amazon.smithy.rust.codegen.server.smithy.validationErrorMessage * The shape definition is in [CustomValidationExceptionWithReasonDecoratorTest]. * * This is just an example to showcase experimental support for custom validation exceptions. - * TODO(https://github.com/awslabs/smithy-rs/pull/2053): this will go away once we implement the RFC, when users will be + * TODO(https://github.com/smithy-lang/smithy-rs/pull/2053): this will go away once we implement the RFC, when users will be * able to define the converters in their Rust application code. */ class CustomValidationExceptionWithReasonDecorator : ServerCodegenDecorator { @@ -80,7 +80,7 @@ class ValidationExceptionWithReasonConversionGenerator(private val codegenContex }; Self::ConstraintViolation( crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception) - .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/awslabs/smithy-rs/issues") + .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues") ) } } diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/customizations/SmithyValidationExceptionDecorator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/customizations/SmithyValidationExceptionDecorator.kt index e30c537c7c29aed970c107e569195ed66ba9e217..f9124f7f7780fbb5dc19a341fc7b30e9f3776e04 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/customizations/SmithyValidationExceptionDecorator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/customizations/SmithyValidationExceptionDecorator.kt @@ -44,7 +44,7 @@ import software.amazon.smithy.rust.codegen.server.smithy.validationErrorMessage * * [0]: https://github.com/awslabs/smithy/tree/main/smithy-validation-model * - * TODO(https://github.com/awslabs/smithy-rs/pull/2053): once the RFC is implemented, consider moving this back into the + * TODO(https://github.com/smithy-lang/smithy-rs/pull/2053): once the RFC is implemented, consider moving this back into the * generators. */ class SmithyValidationExceptionDecorator : ServerCodegenDecorator { @@ -78,7 +78,7 @@ class SmithyValidationExceptionConversionGenerator(private val codegenContext: S }; Self::ConstraintViolation( crate::protocol_serde::shape_validation_exception::ser_validation_exception_error(&validation_exception) - .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/awslabs/smithy-rs/issues") + .expect("validation exceptions should never fail to serialize; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues") ) } } diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/CollectionConstraintViolationGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/CollectionConstraintViolationGenerator.kt index b04eaa2f93b7459c9d3a1fb29b0a735ab40a7a5b..77ebf832ee2c59b773511cc6ade2fa3879598e1f 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/CollectionConstraintViolationGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/CollectionConstraintViolationGenerator.kt @@ -69,7 +69,7 @@ class CollectionConstraintViolationGenerator( } } - // TODO(https://github.com/awslabs/smithy-rs/issues/1401) We should really have two `ConstraintViolation` + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) We should really have two `ConstraintViolation` // types here. One will just have variants for each constraint trait on the collection shape, for use by the user. // The other one will have variants if the shape's member is directly or transitively constrained, // and is for use by the framework. diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ConstrainedStringGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ConstrainedStringGenerator.kt index 3e61ab6804f9f8598b61aac73a9ad7a9ab6b55c5..7ab164b39bf7ac842d6a4cca432c7f37f64852b2 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ConstrainedStringGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ConstrainedStringGenerator.kt @@ -285,7 +285,7 @@ data class Pattern(val symbol: Symbol, val patternTrait: PatternTrait, val isSen private fun renderValidationFunction(constraintViolation: Symbol, unconstrainedTypeName: String): Writable { val pattern = patternTrait.pattern val errorMessageForUnsupportedRegex = - """The regular expression $pattern is not supported by the `regex` crate; feel free to file an issue under https://github.com/awslabs/smithy-rs/issues for support""" + """The regular expression $pattern is not supported by the `regex` crate; feel free to file an issue under https://github.com/smithy-lang/smithy-rs/issues for support""" return { rustTemplate( diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/MapConstraintViolationGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/MapConstraintViolationGenerator.kt index 4c1025a0d2a4e7a98c995f6b11ce8e0ff1ab1704..38917b14776d488b12d7386d71c6343046b9b368 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/MapConstraintViolationGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/MapConstraintViolationGenerator.kt @@ -70,7 +70,7 @@ class MapConstraintViolationGenerator( } inlineModuleCreator(constraintViolationSymbol) { - // TODO(https://github.com/awslabs/smithy-rs/issues/1401) We should really have two `ConstraintViolation` + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) We should really have two `ConstraintViolation` // types here. One will just have variants for each constraint trait on the map shape, for use by the user. // The other one will have variants if the shape's key or value is directly or transitively constrained, // and is for use by the framework. diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/PubCrateConstrainedCollectionGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/PubCrateConstrainedCollectionGenerator.kt index 1a563c25b9817f5a9d84fb0dbec5ce8c2c703557..016da35177393378b6f6473f5ed7f20ea1701b2f 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/PubCrateConstrainedCollectionGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/PubCrateConstrainedCollectionGenerator.kt @@ -34,7 +34,7 @@ import software.amazon.smithy.rust.codegen.server.smithy.typeNameContainsNonPubl * traits' enforcement, this type is converted into the regular `Vec` the user * sees via the generated converters. * - * TODO(https://github.com/awslabs/smithy-rs/issues/1401) If the collection + * TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) If the collection * shape is _directly_ constrained, use [ConstrainedCollectionGenerator] * instead. */ diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderConstraintViolations.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderConstraintViolations.kt index 1ecb71d8785f682e153d326e86c9a649890ef898..d91176c0f8f34b894bf3c3c1bae8dec195844b98 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderConstraintViolations.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderConstraintViolations.kt @@ -102,7 +102,7 @@ class ServerBuilderConstraintViolations( */ fun forMember(member: MemberShape): ConstraintViolation? { check(members.contains(member)) - // TODO(https://github.com/awslabs/smithy-rs/issues/1302, https://github.com/awslabs/smithy/issues/1179): See above. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1302, https://github.com/awslabs/smithy/issues/1179): See above. return if (symbolProvider.toSymbol(member).isOptional() || member.hasNonNullDefault()) { null } else { @@ -110,7 +110,7 @@ class ServerBuilderConstraintViolations( } } - // TODO(https://github.com/awslabs/smithy-rs/issues/1401) This impl does not take into account the `sensitive` trait. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) This impl does not take into account the `sensitive` trait. // When constraint violation error messages are adjusted to match protocol tests, we should ensure it's honored. private fun renderImplDisplayConstraintViolation(writer: RustWriter) { writer.rustBlock("impl #T for ConstraintViolation", RuntimeType.Display) { @@ -210,7 +210,7 @@ data class ConstraintViolation(val forMember: MemberShape, val kind: ConstraintV val structureSymbol = symbolProvider.toSymbol(model.expectShape(forMember.container)) return when (kind) { ConstraintViolationKind.MISSING_MEMBER -> "`$memberName` was not provided but it is required when building `${structureSymbol.name}`" - // TODO(https://github.com/awslabs/smithy-rs/issues/1401) Nest errors. Adjust message following protocol tests. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) Nest errors. Adjust message following protocol tests. ConstraintViolationKind.CONSTRAINED_SHAPE_FAILURE -> "constraint violation occurred building member `$memberName` when building `${structureSymbol.name}`" } } diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGenerator.kt index e35f2389bb2270fc41bd1e9863a7c0c33936115b..041e71b34bb23ff43f30608745e042e5bbefcdd0 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGenerator.kt @@ -383,7 +383,7 @@ class ServerBuilderGenerator( val builderMemberSymbol = builderMemberSymbol(member) val inputType = builderMemberSymbol.rustType().stripOuter().implInto() .letIf( - // TODO(https://github.com/awslabs/smithy-rs/issues/1302, https://github.com/awslabs/smithy/issues/1179): + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1302, https://github.com/awslabs/smithy/issues/1179): // The only reason why this condition can't simply be `member.isOptional` // is because non-`required` blob streaming members are interpreted as // `required`, so we can't use `member.isOptional` here. @@ -397,7 +397,7 @@ class ServerBuilderGenerator( rust( """ self.$memberName = ${ - // TODO(https://github.com/awslabs/smithy-rs/issues/1302, https://github.com/awslabs/smithy/issues/1179): See above. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1302, https://github.com/awslabs/smithy/issues/1179): See above. if (symbolProvider.toSymbol(member).isOptional()) { "input.map(|v| v.into())" } else { diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGeneratorCommon.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGeneratorCommon.kt index 389f0dc173e0b38f872dda7e30e09582c606827f..d10887678b5def199f9053a17ea78ac090ba4cf0 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGeneratorCommon.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGeneratorCommon.kt @@ -84,7 +84,7 @@ fun generateFallbackCodeToDefaultValue( if (member.isStreaming(model)) { writer.rust(".unwrap_or_default()") } else if (targetShape.hasPublicConstrainedWrapperTupleType(model, publicConstrainedTypes)) { - // TODO(https://github.com/awslabs/smithy-rs/issues/2134): Instead of panicking here, which will ungracefully + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2134): Instead of panicking here, which will ungracefully // shut down the service, perform the `try_into()` check _once_ at service startup time, perhaps // storing the result in a `OnceCell` that could be reused. writer.rustTemplate( @@ -92,7 +92,7 @@ fun generateFallbackCodeToDefaultValue( .unwrap_or_else(|| #{DefaultValue:W} .try_into() - .expect("this check should have failed at generation time; please file a bug report under https://github.com/awslabs/smithy-rs/issues") + .expect("this check should have failed at generation time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues") ) """, "DefaultValue" to defaultValue, @@ -125,7 +125,7 @@ fun defaultValue( val types = ServerCargoDependency.smithyTypes(runtimeConfig).toType() // Define the exception once for DRYness. val unsupportedDefaultValueException = - CodegenException("Default value $node for member shape ${member.id} is unsupported or cannot exist; please file a bug report under https://github.com/awslabs/smithy-rs/issues") + CodegenException("Default value $node for member shape ${member.id} is unsupported or cannot exist; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues") when (val target = model.expectShape(member.target)) { is EnumShape, is IntEnumShape -> { val value = when (target) { @@ -169,7 +169,7 @@ fun defaultValue( rustTemplate( """ #{SmithyTypes}::DateTime::from_str("$value", #{SmithyTypes}::date_time::Format::DateTime) - .expect("default value `$value` cannot be parsed into a valid date time; please file a bug report under https://github.com/awslabs/smithy-rs/issues") + .expect("default value `$value` cannot be parsed into a valid date time; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues") """, "SmithyTypes" to types, ) diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderSymbol.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderSymbol.kt index 64d35e0a8fc2b64f8416ec2808d2d9e3aab1cb81..f0ca507db1690af61180c52d39bae972094c1339 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderSymbol.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderSymbol.kt @@ -16,14 +16,14 @@ import software.amazon.smithy.rust.codegen.core.smithy.rustType import software.amazon.smithy.rust.codegen.core.util.toSnakeCase import software.amazon.smithy.rust.codegen.server.smithy.ServerCodegenContext -// TODO(https://github.com/awslabs/smithy-rs/issues/2396): Replace this with `RustSymbolProvider.symbolForBuilder` +// TODO(https://github.com/smithy-lang/smithy-rs/issues/2396): Replace this with `RustSymbolProvider.symbolForBuilder` fun StructureShape.serverBuilderSymbol(codegenContext: ServerCodegenContext): Symbol = this.serverBuilderSymbol( codegenContext.symbolProvider, !codegenContext.settings.codegenConfig.publicConstrainedTypes, ) -// TODO(https://github.com/awslabs/smithy-rs/issues/2396): Replace this with `RustSymbolProvider.moduleForBuilder` +// TODO(https://github.com/smithy-lang/smithy-rs/issues/2396): Replace this with `RustSymbolProvider.moduleForBuilder` fun StructureShape.serverBuilderModule(symbolProvider: SymbolProvider, pubCrate: Boolean): RustModule.LeafModule { val structureSymbol = symbolProvider.toSymbol(this) val builderNamespace = RustReservedWords.escapeIfNeeded(structureSymbol.name.toSnakeCase()) + @@ -45,7 +45,7 @@ fun StructureShape.serverBuilderModule(symbolProvider: SymbolProvider, pubCrate: ) } -// TODO(https://github.com/awslabs/smithy-rs/issues/2396): Replace this with `RustSymbolProvider.symbolForBuilder` +// TODO(https://github.com/smithy-lang/smithy-rs/issues/2396): Replace this with `RustSymbolProvider.symbolForBuilder` fun StructureShape.serverBuilderSymbol(symbolProvider: SymbolProvider, pubCrate: Boolean): Symbol { val builderModule = serverBuilderModule(symbolProvider, pubCrate) val rustType = RustType.Opaque("Builder", builderModule.fullyQualifiedPath()) diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerHttpSensitivityGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerHttpSensitivityGenerator.kt index 0163f094f5f358ef471e523d346ce2f7bfcc5c66..0347013de5ce50165fe8e84e0450a47ce5de7f6a 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerHttpSensitivityGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerHttpSensitivityGenerator.kt @@ -314,7 +314,7 @@ data class MakeFmt( * These closures are provided to `RequestFmt` and `ResponseFmt` constructors, which in turn are provided to * `InstrumentedOperation` to configure logging. These structures can be found in `aws_smithy_http_server::instrumentation`. * - * See [Logging in the Presence of Sensitive Data](https://github.com/awslabs/smithy-rs/blob/main/design/src/rfcs/rfc0018_logging_sensitive.md) + * See [Logging in the Presence of Sensitive Data](https://github.com/smithy-lang/smithy-rs/blob/main/design/src/rfcs/rfc0018_logging_sensitive.md) * for more details. */ class ServerHttpSensitivityGenerator( diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerServiceGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerServiceGenerator.kt index e1da585d054495ff4e24793309695c9340349470..79b087ee14dad55a699e277d4a2fe2d3148faf06 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerServiceGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerServiceGenerator.kt @@ -324,7 +324,7 @@ class ServerServiceGenerator( operation_names2setter_methods: $missingOperationsVariableName, }); } - let $expectMessageVariableName = "this should never panic since we are supposed to check beforehand that a handler has been registered for this operation; please file a bug report under https://github.com/awslabs/smithy-rs/issues"; + let $expectMessageVariableName = "this should never panic since we are supposed to check beforehand that a handler has been registered for this operation; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues"; #{PatternInitializations:W} @@ -492,13 +492,13 @@ class ServerServiceGenerator( // This is the router wrapped by layers. svc: S, } - + impl $serviceName<()> { /// Constructs a builder for [`$serviceName`]. - /// You must specify a configuration object holding any plugins and layers that should be applied + /// You must specify a configuration object holding any plugins and layers that should be applied /// to the operations in this service. pub fn builder< - Body, + Body, L, HttpPl: #{SmithyHttpServer}::plugin::HttpMarker, ModelPl: #{SmithyHttpServer}::plugin::ModelMarker, @@ -512,7 +512,7 @@ class ServerServiceGenerator( model_plugin: config.model_plugins, } } - + /// Constructs a builder for [`$serviceName`]. /// You must specify what plugins should be applied to the operations in this service. /// @@ -523,14 +523,14 @@ class ServerServiceGenerator( /// multiple plugins. ##[deprecated( since = "0.57.0", - note = "please use the `builder` constructor and register plugins on the `${serviceName}Config` object instead; see https://github.com/awslabs/smithy-rs/discussions/3096" + note = "please use the `builder` constructor and register plugins on the `${serviceName}Config` object instead; see https://github.com/smithy-lang/smithy-rs/discussions/3096" )] pub fn builder_with_plugins< - Body, - HttpPl: #{SmithyHttpServer}::plugin::HttpMarker, + Body, + HttpPl: #{SmithyHttpServer}::plugin::HttpMarker, ModelPl: #{SmithyHttpServer}::plugin::ModelMarker >( - http_plugin: HttpPl, + http_plugin: HttpPl, model_plugin: ModelPl ) -> $builderName { $builderName { @@ -546,12 +546,12 @@ class ServerServiceGenerator( /// Use [`$serviceName::builder_with_plugins`] if you need to specify plugins. ##[deprecated( since = "0.57.0", - note = "please use the `builder` constructor instead; see https://github.com/awslabs/smithy-rs/discussions/3096" + note = "please use the `builder` constructor instead; see https://github.com/smithy-lang/smithy-rs/discussions/3096" )] pub fn builder_without_plugins() -> $builderName< - Body, + Body, #{Tower}::layer::util::Identity, - #{SmithyHttpServer}::plugin::IdentityPlugin, + #{SmithyHttpServer}::plugin::IdentityPlugin, #{SmithyHttpServer}::plugin::IdentityPlugin > { Self::builder_with_plugins(#{SmithyHttpServer}::plugin::IdentityPlugin, #{SmithyHttpServer}::plugin::IdentityPlugin) @@ -570,7 +570,7 @@ class ServerServiceGenerator( #{SmithyHttpServer}::routing::IntoMakeServiceWithConnectInfo::new(self) } } - + impl $serviceName< #{SmithyHttpServer}::routing::RoutingService< @@ -582,7 +582,7 @@ class ServerServiceGenerator( /// Applies a [`Layer`](#{Tower}::Layer) uniformly to all routes. ##[deprecated( since = "0.57.0", - note = "please add layers to the `${serviceName}Config` object instead; see https://github.com/awslabs/smithy-rs/discussions/3096" + note = "please add layers to the `${serviceName}Config` object instead; see https://github.com/smithy-lang/smithy-rs/discussions/3096" )] pub fn layer( self, @@ -749,8 +749,8 @@ class ServerServiceGenerator( for ((_, value) in operationStructNames) { rustTemplate( """ - impl #{SmithyHttpServer}::service::ContainsOperation - for $serviceName + impl #{SmithyHttpServer}::service::ContainsOperation + for $serviceName { const VALUE: Operation = Operation::$value; } diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/http/RestRequestSpecGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/http/RestRequestSpecGenerator.kt index b5c0cd052b8846a7dba8be47e045c6a8ca99520b..b43eb582e606b1ef6d7118841aa49488dd30f94b 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/http/RestRequestSpecGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/http/RestRequestSpecGenerator.kt @@ -35,7 +35,7 @@ class RestRequestSpecGenerator( it to requestSpecModule.resolve(it) }.toTypedArray() - // TODO(https://github.com/awslabs/smithy-rs/issues/950): Support the `endpoint` trait. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/950): Support the `endpoint` trait. val pathSegmentsVec = writable { withBlock("vec![", "]") { for (segment in httpTrait.uri.segments) { diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/protocol/ServerProtocolTestGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/protocol/ServerProtocolTestGenerator.kt index c72b99575ac7cfc458d5e92e553c9ee67d9c9fd6..968f87ea3a09139ff457ce4c7701685bcaabfe3a 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/protocol/ServerProtocolTestGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/protocol/ServerProtocolTestGenerator.kt @@ -526,7 +526,7 @@ class ServerProtocolTestGenerator( (target is DoubleShape) || (target is FloatShape) } - // TODO(https://github.com/awslabs/smithy-rs/issues/1147) Handle the case of nested floating point members. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1147) Handle the case of nested floating point members. if (hasFloatingPointMembers) { for (member in inputShape.members()) { val memberName = codegenContext.symbolProvider.toMemberName(member) @@ -569,7 +569,7 @@ class ServerProtocolTestGenerator( // We can't check that the `OperationExtension` is set in the response, because it is set in the implementation // of the operation `Handler` trait, a code path that does not get exercised when we don't have a request to // invoke it with (like in the case of an `httpResponseTest` test case). - // In https://github.com/awslabs/smithy-rs/pull/1708: We did change `httpResponseTest`s generation to `call()` + // In https://github.com/smithy-lang/smithy-rs/pull/1708: We did change `httpResponseTest`s generation to `call()` // the operation handler trait implementation instead of directly calling `from_request()`. // If no request body is defined, then no assertions are made about the body of the message. @@ -585,7 +585,7 @@ class ServerProtocolTestGenerator( // We can't check that the `OperationExtension` is set in the response, because it is set in the implementation // of the operation `Handler` trait, a code path that does not get exercised when we don't have a request to // invoke it with (like in the case of an `httpResponseTest` test case). - // In https://github.com/awslabs/smithy-rs/pull/1708: We did change `httpResponseTest`s generation to `call()` + // In https://github.com/smithy-lang/smithy-rs/pull/1708: We did change `httpResponseTest`s generation to `call()` // the operation handler trait implementation instead of directly calling `from_request()`. // If no request body is defined, then no assertions are made about the body of the message. @@ -744,19 +744,19 @@ class ServerProtocolTestGenerator( private const val RestJson = "aws.protocoltests.restjson#RestJson" private const val RestJsonValidation = "aws.protocoltests.restjson.validation#RestJsonValidation" private val ExpectFail: Set = setOf( - // Endpoint trait is not implemented yet, see https://github.com/awslabs/smithy-rs/issues/950. + // Endpoint trait is not implemented yet, see https://github.com/smithy-lang/smithy-rs/issues/950. FailingTest(RestJson, "RestJsonEndpointTrait", TestType.Request), FailingTest(RestJson, "RestJsonEndpointTraitWithHostLabel", TestType.Request), FailingTest(RestJson, "RestJsonOmitsEmptyListQueryValues", TestType.Request), // Tests involving `@range` on floats. - // Pending resolution from the Smithy team, see https://github.com/awslabs/smithy-rs/issues/2007. + // Pending resolution from the Smithy team, see https://github.com/smithy-lang/smithy-rs/issues/2007. FailingTest(RestJsonValidation, "RestJsonMalformedRangeFloat_case0", TestType.MalformedRequest), FailingTest(RestJsonValidation, "RestJsonMalformedRangeFloat_case1", TestType.MalformedRequest), FailingTest(RestJsonValidation, "RestJsonMalformedRangeMaxFloat", TestType.MalformedRequest), FailingTest(RestJsonValidation, "RestJsonMalformedRangeMinFloat", TestType.MalformedRequest), - // Tests involving floating point shapes and the `@range` trait; see https://github.com/awslabs/smithy-rs/issues/2007 + // Tests involving floating point shapes and the `@range` trait; see https://github.com/smithy-lang/smithy-rs/issues/2007 FailingTest(RestJsonValidation, "RestJsonMalformedRangeFloatOverride_case0", TestType.MalformedRequest), FailingTest(RestJsonValidation, "RestJsonMalformedRangeFloatOverride_case1", TestType.MalformedRequest), FailingTest(RestJsonValidation, "RestJsonMalformedRangeMaxFloatOverride", TestType.MalformedRequest), @@ -810,7 +810,7 @@ class ServerProtocolTestGenerator( FailingTest(RestJsonValidation, "RestJsonMalformedUniqueItemsUnionList_case0", TestType.MalformedRequest), FailingTest(RestJsonValidation, "RestJsonMalformedUniqueItemsUnionList_case1", TestType.MalformedRequest), - // TODO(https://github.com/awslabs/smithy-rs/issues/2472): We don't respect the `@internal` trait + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2472): We don't respect the `@internal` trait FailingTest(RestJsonValidation, "RestJsonMalformedEnumList_case0", TestType.MalformedRequest), FailingTest(RestJsonValidation, "RestJsonMalformedEnumList_case1", TestType.MalformedRequest), FailingTest(RestJsonValidation, "RestJsonMalformedEnumMapKey_case0", TestType.MalformedRequest), @@ -831,7 +831,7 @@ class ServerProtocolTestGenerator( // These tests are not even attempted to be generated, either because they will not compile // or because they are flaky private val DisableTests = setOf( - // TODO(https://github.com/awslabs/smithy-rs/issues/2891): Implement support for `@requestCompression` + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2891): Implement support for `@requestCompression` "SDKAppendedGzipAfterProvidedEncoding_restJson1", "SDKAppendedGzipAfterProvidedEncoding_restXml", "SDKAppendsGzipAndIgnoresHttpProvidedEncoding_awsJson1_0", @@ -925,7 +925,7 @@ class ServerProtocolTestGenerator( .build() } - // TODO(https://github.com/awslabs/smithy-rs/issues/1288): Move the fixed versions into + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1288): Move the fixed versions into // `rest-json-extras.smithy` and put the unfixed ones in `ExpectFail`: this has the // advantage that once our upstream PRs get merged and we upgrade to the next Smithy release, our build will // fail and we will take notice to remove the fixes from `rest-json-extras.smithy`. This is exactly what the diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpBoundProtocolGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpBoundProtocolGenerator.kt index f8c18f3965522312430ecdc6e0fb1b397f4facc3..c13ac7f9981429be738e357b3340cf7fba6b7560 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpBoundProtocolGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpBoundProtocolGenerator.kt @@ -281,7 +281,7 @@ class ServerHttpBoundProtocolTraitImplGenerator( // Implement `from_request` trait for input types. val inputFuture = "${inputSymbol.name}Future" - // TODO(https://github.com/awslabs/smithy-rs/issues/2238): Remove the `Pin>` and replace with thin wrapper around `Collect`. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2238): Remove the `Pin>` and replace with thin wrapper around `Collect`. rustTemplate( """ #{verifyAcceptHeaderStaticContentTypeInit:W} @@ -886,7 +886,7 @@ class ServerHttpBoundProtocolTraitImplGenerator( } } .joinToString( - // TODO(https://github.com/awslabs/smithy-rs/issues/1289): Note we're limited to 21 labels because of `tuple`. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1289): Note we're limited to 21 labels because of `tuple`. prefix = if (segments.size > 1) "#{Nom}::sequence::tuple::<_, _, #{Nom}::error::Error<&str>, _>((" else "", postfix = if (segments.size > 1) "))" else "", transform = { parser -> @@ -990,7 +990,7 @@ class ServerHttpBoundProtocolTraitImplGenerator( if (queryParamsBinding != null) { val target = model.expectShape(queryParamsBinding.member.target, MapShape::class.java) val hasConstrainedTarget = target.canReachConstrainedShape(model, symbolProvider) - // TODO(https://github.com/awslabs/smithy-rs/issues/1401) Here we only check the target shape; + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) Here we only check the target shape; // constraint traits on member shapes are not implemented yet. val targetSymbol = unconstrainedShapeSymbolProvider.toSymbol(target) withBlock("let mut query_params: #T = ", ";", targetSymbol) { @@ -1075,7 +1075,7 @@ class ServerHttpBoundProtocolTraitImplGenerator( if (queryParamsBinding != null) { val target = model.expectShape(queryParamsBinding.member.target, MapShape::class.java) - // TODO(https://github.com/awslabs/smithy-rs/issues/1401) Here we only check the target shape; + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) Here we only check the target shape; // constraint traits on member shapes are not implemented yet. val hasConstrainedTarget = target.canReachConstrainedShape(model, symbolProvider) when (queryParamsBinding.queryParamsBindingTargetMapValueType()) { @@ -1116,7 +1116,7 @@ class ServerHttpBoundProtocolTraitImplGenerator( } } queryBindingsTargetingCollection.forEach { binding -> - // TODO(https://github.com/awslabs/smithy-rs/issues/1401) Constraint traits on member shapes are not + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1401) Constraint traits on member shapes are not // implemented yet. val hasConstrainedTarget = model.expectShape(binding.member.target, CollectionShape::class.java).canReachConstrainedShape(model, symbolProvider) diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/AttachValidationExceptionToConstrainedOperationInputsInAllowList.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/AttachValidationExceptionToConstrainedOperationInputsInAllowList.kt index 68840bde20167f0dfab4305bc4eae2114d056c48..93bc55df1285c8d3fd15cc0a20265a5194226e40 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/AttachValidationExceptionToConstrainedOperationInputsInAllowList.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/AttachValidationExceptionToConstrainedOperationInputsInAllowList.kt @@ -26,9 +26,9 @@ import software.amazon.smithy.rust.codegen.server.smithy.hasConstraintTrait * Until we implement said mode, we manually attach the error to build these models, since we don't own them (they're * either actual AWS service model excerpts, or they come from the `awslabs/smithy` library. * - * [1]: https://github.com/awslabs/smithy-rs/pull/1199#discussion_r809424783 + * [1]: https://github.com/smithy-lang/smithy-rs/pull/1199#discussion_r809424783 * - * TODO(https://github.com/awslabs/smithy-rs/issues/1401): This transformer will go away once we add support for + * TODO(https://github.com/smithy-lang/smithy-rs/issues/1401): This transformer will go away once we add support for * `disableDefaultValidation` set to `true`, allowing service owners to map from constraint violations to operation errors. */ object AttachValidationExceptionToConstrainedOperationInputsInAllowList { diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/RecursiveConstraintViolationBoxer.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/RecursiveConstraintViolationBoxer.kt index d2e41ead36a53e4ed78b05c111511f960d73ef86..fc938aab7a1389f9db37e73b75cf1a8c1d4ece0c 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/RecursiveConstraintViolationBoxer.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/RecursiveConstraintViolationBoxer.kt @@ -63,7 +63,7 @@ object RecursiveConstraintViolationBoxer { * Places where constraint violations are handled (like where unconstrained types are converted to constrained * types) must account for the scenario where they now are or need to be boxed. * - * [0] https://github.com/awslabs/smithy-rs/pull/2040 + * [0] https://github.com/smithy-lang/smithy-rs/pull/2040 */ fun transform(model: Model): Model = RecursiveShapeBoxer( containsIndirectionPredicate = ::constraintViolationLoopContainsIndirection, diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/RemoveEbsModelValidationException.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/RemoveEbsModelValidationException.kt index d4c6feaed6452d10ed25802b5269baf9c34e2b8b..114ffceae05d3a9af2c08d1d38ec527f43fc7895 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/RemoveEbsModelValidationException.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/transformers/RemoveEbsModelValidationException.kt @@ -24,10 +24,10 @@ import software.amazon.smithy.rust.codegen.core.util.orNull * [AttachValidationExceptionToConstrainedOperationInputsInAllowList], ensures that it is replaced by * `smithy.framework#ValidationException`. * - * [0]: https://github.com/awslabs/smithy-rs/blob/274adf155042cde49251a0e6b8842d6f56cd5b6d/codegen-core/common-test-models/ebs.json#L1270-L1288 - * [1]: https://github.com/awslabs/smithy-rs/pull/1199#discussion_r809424783 + * [0]: https://github.com/smithy-lang/smithy-rs/blob/274adf155042cde49251a0e6b8842d6f56cd5b6d/codegen-core/common-test-models/ebs.json#L1270-L1288 + * [1]: https://github.com/smithy-lang/smithy-rs/pull/1199#discussion_r809424783 * - * TODO(https://github.com/awslabs/smithy-rs/issues/1401): This transformer will go away once we implement + * TODO(https://github.com/smithy-lang/smithy-rs/issues/1401): This transformer will go away once we implement * `disableDefaultValidation` set to `true`, allowing service owners to map from constraint violations to operation errors. */ object RemoveEbsModelValidationException { diff --git a/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/PatternTraitEscapedSpecialCharsValidatorTest.kt b/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/PatternTraitEscapedSpecialCharsValidatorTest.kt index fdb0cc72b48737e7e17f2eca87b34afae1b8c916..7a54849c208aace05ab3e4f801d0569accaa8008 100644 --- a/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/PatternTraitEscapedSpecialCharsValidatorTest.kt +++ b/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/PatternTraitEscapedSpecialCharsValidatorTest.kt @@ -32,7 +32,7 @@ class PatternTraitEscapedSpecialCharsValidatorTest { events[0].message shouldBe """ Non-escaped special characters used inside `@pattern`. You must escape them: `@pattern("\\t")`. - See https://github.com/awslabs/smithy-rs/issues/2508 for more details. + See https://github.com/smithy-lang/smithy-rs/issues/2508 for more details. """.trimIndent() } @@ -53,7 +53,7 @@ class PatternTraitEscapedSpecialCharsValidatorTest { events[0].message shouldBe """ Non-escaped special characters used inside `@pattern`. You must escape them: `@pattern("[.\\n\\r]+")`. - See https://github.com/awslabs/smithy-rs/issues/2508 for more details. + See https://github.com/smithy-lang/smithy-rs/issues/2508 for more details. """.trimIndent() } diff --git a/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderConstraintViolationsTest.kt b/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderConstraintViolationsTest.kt index 1f685909f38b5942101f38a90f331104fdddf0d3..f36976e715efd60b3424e4ca5f7a2368a7dc1343 100644 --- a/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderConstraintViolationsTest.kt +++ b/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderConstraintViolationsTest.kt @@ -11,7 +11,7 @@ import software.amazon.smithy.rust.codegen.server.smithy.testutil.serverIntegrat class ServerBuilderConstraintViolationsTest { - // This test exists not to regress on [this](https://github.com/awslabs/smithy-rs/issues/2343) issue. + // This test exists not to regress on [this](https://github.com/smithy-lang/smithy-rs/issues/2343) issue. // We generated constraint violation variants, pointing to a structure (StructWithInnerDefault below), // but the structure was not constrained, because the structure's member have a default value // and default values are validated at generation time from the model. diff --git a/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderDefaultValuesTest.kt b/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderDefaultValuesTest.kt index 172ad5f4d988320d671f8a931503feb9de6d191b..966426f948d81d3f9e2cad443b48bd5364d0fe93 100644 --- a/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderDefaultValuesTest.kt +++ b/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderDefaultValuesTest.kt @@ -53,7 +53,7 @@ class ServerBuilderDefaultValuesTest { "Float" to "0.5", "Double" to "0.55", "Timestamp" to "1985-04-12T23:20:50.52Z".dq(), - // "BigInteger" to "55555", "BigDecimal" to "0.555", // TODO(https://github.com/awslabs/smithy-rs/issues/312) + // "BigInteger" to "55555", "BigDecimal" to "0.555", // TODO(https://github.com/smithy-lang/smithy-rs/issues/312) "StringList" to "[]", "IntegerMap" to "{}", "Language" to "en".dq(), @@ -77,7 +77,7 @@ class ServerBuilderDefaultValuesTest { "Float" to "0.6", "Double" to "0.66", "Timestamp" to "2022-11-25T17:30:50.00Z".dq(), - // "BigInteger" to "55555", "BigDecimal" to "0.555", // TODO(https://github.com/awslabs/smithy-rs/issues/312) + // "BigInteger" to "55555", "BigDecimal" to "0.555", // TODO(https://github.com/smithy-lang/smithy-rs/issues/312) "StringList" to "[]", "IntegerMap" to "{}", "Language" to "fr".dq(), diff --git a/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/eventstream/ServerEventStreamUnmarshallerGeneratorTest.kt b/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/eventstream/ServerEventStreamUnmarshallerGeneratorTest.kt index 26f76db187f9210fd2e6e3a56b437e2ca0c9338b..d870d8c1b0436dd6477508604a6b786aeecf33d0 100644 --- a/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/eventstream/ServerEventStreamUnmarshallerGeneratorTest.kt +++ b/codegen-server/src/test/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/eventstream/ServerEventStreamUnmarshallerGeneratorTest.kt @@ -16,7 +16,7 @@ class ServerEventStreamUnmarshallerGeneratorTest { @ParameterizedTest @ArgumentsSource(TestCasesProvider::class) fun test(testCase: TestCase) { - // TODO(https://github.com/awslabs/smithy-rs/issues/1442): Enable tests for `publicConstrainedTypes = false` + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1442): Enable tests for `publicConstrainedTypes = false` // by deleting this if/return if (!testCase.publicConstrainedTypes) { return diff --git a/codegen-server/typescript/src/main/kotlin/software/amazon/smithy/rust/codegen/server/typescript/smithy/customizations/TsServerCodegenDecorator.kt b/codegen-server/typescript/src/main/kotlin/software/amazon/smithy/rust/codegen/server/typescript/smithy/customizations/TsServerCodegenDecorator.kt index 850af7b51afdc9dcaf73e2a5053853be91aa97ba..885bac4a9a08261001a74055200ae548029b2862 100644 --- a/codegen-server/typescript/src/main/kotlin/software/amazon/smithy/rust/codegen/server/typescript/smithy/customizations/TsServerCodegenDecorator.kt +++ b/codegen-server/typescript/src/main/kotlin/software/amazon/smithy/rust/codegen/server/typescript/smithy/customizations/TsServerCodegenDecorator.kt @@ -62,7 +62,7 @@ class NapiPackageJsonDecorator : ServerCodegenDecorator { val name = codegenContext.settings.moduleName.toSnakeCase() val version = codegenContext.settings.moduleVersion - // TODO(https://github.com/awslabs/smithy-rs/issues/2317): we should probably use a real JSON writer, but I did not want to add + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2317): we should probably use a real JSON writer, but I did not want to add // other external libraries at this stage. rustCrate.withFile("package.json") { val content = """{ diff --git a/codegen-server/typescript/src/main/kotlin/software/amazon/smithy/rust/codegen/server/typescript/smithy/generators/TsServerOperationErrorGenerator.kt b/codegen-server/typescript/src/main/kotlin/software/amazon/smithy/rust/codegen/server/typescript/smithy/generators/TsServerOperationErrorGenerator.kt index 6384c5c07c395edd65ad888ce5719d9ec45c9b57..88974f76d28b26f0abb49d0907039d231207745f 100644 --- a/codegen-server/typescript/src/main/kotlin/software/amazon/smithy/rust/codegen/server/typescript/smithy/generators/TsServerOperationErrorGenerator.kt +++ b/codegen-server/typescript/src/main/kotlin/software/amazon/smithy/rust/codegen/server/typescript/smithy/generators/TsServerOperationErrorGenerator.kt @@ -29,7 +29,7 @@ class TsServerOperationErrorGenerator( renderFromTsErr(writer) } - // TODO(https://github.com/awslabs/smithy-rs/issues/2317): match the Ts error type and return the right one. + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2317): match the Ts error type and return the right one. private fun renderFromTsErr(writer: RustWriter) { writer.rustTemplate( """ diff --git a/design/README.md b/design/README.md index 16778f2c90ef0df71d95dd9093cb7ea53b4d8adc..92940811eb5d1e1f61e3ae11320bacafe007dfc3 100644 --- a/design/README.md +++ b/design/README.md @@ -1,4 +1,4 @@ -Design docs are hosted [here](https://awslabs.github.io/smithy-rs/design/). +Design docs are hosted [here](https://smithy-lang.github.io/smithy-rs/design/). To render design docs locally: ``` diff --git a/design/src/client/orchestrator.md b/design/src/client/orchestrator.md index d0330905bd6617fbc3d55b26f1cf7a26d64f68ef..a6f8cb1b8c0f2da4cbf6a92cbb7d7d8960824daa 100644 --- a/design/src/client/orchestrator.md +++ b/design/src/client/orchestrator.md @@ -206,6 +206,6 @@ Because RFCs become outdated as designs evolve. It is our intention to keep this [dynamic dispatch]: https://doc.rust-lang.org/book/ch17-02-trait-objects.html#trait-objects-perform-dynamic-dispatch [TypeId]: https://doc.rust-lang.org/stable/std/any/struct.TypeId.html [downcast]: https://en.wikipedia.org/wiki/Downcasting -[orchestrate-impl]: https://github.com/awslabs/smithy-rs/blob/8bc93fc04dd8c8d7447bfe3f5196a75cba0b10ba/rust-runtime/aws-smithy-runtime/src/client/orchestrator.rs#L23 -[aws-smithy-runtime]: https://github.com/awslabs/smithy-rs/tree/main/rust-runtime/aws-smithy-runtime -[aws-smithy-runtime-api]: https://github.com/awslabs/smithy-rs/tree/main/rust-runtime/aws-smithy-runtime-api +[orchestrate-impl]: https://github.com/smithy-lang/smithy-rs/blob/8bc93fc04dd8c8d7447bfe3f5196a75cba0b10ba/rust-runtime/aws-smithy-runtime/src/client/orchestrator.rs#L23 +[aws-smithy-runtime]: https://github.com/smithy-lang/smithy-rs/tree/main/rust-runtime/aws-smithy-runtime +[aws-smithy-runtime-api]: https://github.com/smithy-lang/smithy-rs/tree/main/rust-runtime/aws-smithy-runtime-api diff --git a/design/src/rfcs/rfc0003_presigning_api.md b/design/src/rfcs/rfc0003_presigning_api.md index c75230751c96d56aec999b11ea8533e3f64cb649..707c317c3aa4f7c72f618307aa7ef83b8fcd8441 100644 --- a/design/src/rfcs/rfc0003_presigning_api.md +++ b/design/src/rfcs/rfc0003_presigning_api.md @@ -193,7 +193,7 @@ look for this synthetic trait when creating the fluent builders and inputs to kn If a presignable operation input has a member named `presigned`, then there will be a name collision with the function to generate a presigned URL. To mitigate this, `RustReservedWords` will be updated to rename the `presigned` member to `presigned_value` -[similar to how `send` is renamed](https://github.com/awslabs/smithy-rs/blob/3d61226b5d446f4cc20bf4969f0e56d106cf478b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustReservedWords.kt#L28). +[similar to how `send` is renamed](https://github.com/smithy-lang/smithy-rs/blob/3d61226b5d446f4cc20bf4969f0e56d106cf478b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustReservedWords.kt#L28). Changes Checklist ----------------- diff --git a/design/src/rfcs/rfc0004_retry_behavior.md b/design/src/rfcs/rfc0004_retry_behavior.md index 3da28afdc7934d1aa670862df38428254e5eae31..82f1914c017c30167a94ad1c7bd801cea90e190c 100644 --- a/design/src/rfcs/rfc0004_retry_behavior.md +++ b/design/src/rfcs/rfc0004_retry_behavior.md @@ -174,7 +174,7 @@ Changes checklist ----------------- - [x] Create new Kotlin decorator `RetryConfigDecorator` - - Based on [RegionDecorator.kt](https://github.com/awslabs/smithy-rs/blob/main/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/RegionDecorator.kt) + - Based on [RegionDecorator.kt](https://github.com/smithy-lang/smithy-rs/blob/main/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/RegionDecorator.kt) - This decorator will live in the `codegen` project because it has relevance outside the SDK - [x] **Breaking changes:** - [x] Rename `aws_smithy_client::retry::Config` to `StandardRetryConfig` diff --git a/design/src/rfcs/rfc0006_service_specific_middleware.md b/design/src/rfcs/rfc0006_service_specific_middleware.md index a9c2a98c4d612ec58fa4093611983c2cd8086a89..7f7670d5a7ba410cc1801c876d29c2e1f8bbf85d 100644 --- a/design/src/rfcs/rfc0006_service_specific_middleware.md +++ b/design/src/rfcs/rfc0006_service_specific_middleware.md @@ -1,7 +1,7 @@ RFC: Service-specific middleware ================================ -> Status: [Implemented](https://github.com/awslabs/smithy-rs/pull/959) +> Status: [Implemented](https://github.com/smithy-lang/smithy-rs/pull/959) For a summarized list of proposed changes, see the [Changes Checklist](#changes-checklist) section. diff --git a/design/src/rfcs/rfc0007_split_release_process.md b/design/src/rfcs/rfc0007_split_release_process.md index 368ed34e6fe85bee0c601144a7b686224f425b68..dfffe848cf71c7dfe45199249eefb2bf067eccb5 100644 --- a/design/src/rfcs/rfc0007_split_release_process.md +++ b/design/src/rfcs/rfc0007_split_release_process.md @@ -1,7 +1,7 @@ RFC: Split Release Process ========================== -> Status: Implemented in [smithy-rs#986](https://github.com/awslabs/smithy-rs/pull/986) and [aws-sdk-rust#351](https://github.com/awslabs/aws-sdk-rust/pull/351) +> Status: Implemented in [smithy-rs#986](https://github.com/smithy-lang/smithy-rs/pull/986) and [aws-sdk-rust#351](https://github.com/awslabs/aws-sdk-rust/pull/351) At the time of writing, the `aws-sdk-rust` repository is used exclusively for the entire release process of both the Rust runtime crates from `smithy-rs` as diff --git a/design/src/rfcs/rfc0009_example_consolidation.md b/design/src/rfcs/rfc0009_example_consolidation.md index 296151b4041df63ba3dccaa58ee32ef8f5d2091b..207265e763cbeb33c198a1a57599caff3c25d112 100644 --- a/design/src/rfcs/rfc0009_example_consolidation.md +++ b/design/src/rfcs/rfc0009_example_consolidation.md @@ -5,7 +5,7 @@ RFC: Examples Consolidation Currently, the AWS Rust SDK's examples are duplicated across [`awslabs/aws-sdk-rust`](https://github.com/awslabs/aws-sdk-rust), -[`awslabs/smithy-rs`](https://github.com/awslabs/smithy-rs), +[`smithy-lang/smithy-rs`](https://github.com/smithy-lang/smithy-rs), and [`awsdocs/aws-doc-sdk-examples`](https://github.com/awsdocs/aws-doc-sdk-examples). The `smithy-rs` repository was formerly the source of truth for examples, with the examples being copied over to `aws-sdk-rust` as part of the release diff --git a/design/src/rfcs/rfc0010_waiters.md b/design/src/rfcs/rfc0010_waiters.md index 3d0f80b291815b55b4eab2ffc4922154e46bc198..24886d52de59c22e87eb11a027c2167e1d3dee1d 100644 --- a/design/src/rfcs/rfc0010_waiters.md +++ b/design/src/rfcs/rfc0010_waiters.md @@ -184,4 +184,4 @@ Changes Checklist - [ ] Codegen `classify_result()` functions based on JMESPath expressions in Smithy model [Smithy waiter specification]: https://awslabs.github.io/smithy/1.0/spec/waiters.html -[default `RetryHandler` uses in `aws-smithy-client`]: https://github.com/awslabs/smithy-rs/blob/main/rust-runtime/aws-smithy-client/src/retry.rs#L252-L292 +[default `RetryHandler` uses in `aws-smithy-client`]: https://github.com/smithy-lang/smithy-rs/blob/main/rust-runtime/aws-smithy-client/src/retry.rs#L252-L292 diff --git a/design/src/rfcs/rfc0011_crates_io_alpha_publishing.md b/design/src/rfcs/rfc0011_crates_io_alpha_publishing.md index 967d19f1e396c85311efb786b89921943efc4274..b5e9e73eea2f840b854a8b7341c5032aba2ade70 100644 --- a/design/src/rfcs/rfc0011_crates_io_alpha_publishing.md +++ b/design/src/rfcs/rfc0011_crates_io_alpha_publishing.md @@ -114,8 +114,8 @@ The new release process would be: ### Short-term Changes Checklist -- [x] Prepare runtime crate manifests for publication to crates.io (https://github.com/awslabs/smithy-rs/pull/755) -- [x] Update SDK generator to set correct crate versions (https://github.com/awslabs/smithy-rs/pull/755) +- [x] Prepare runtime crate manifests for publication to crates.io (https://github.com/smithy-lang/smithy-rs/pull/755) +- [x] Update SDK generator to set correct crate versions (https://github.com/smithy-lang/smithy-rs/pull/755) - [x] Write bulk publish script - [x] Write bulk yank script - [x] Write automation to sync smithy-rs to aws-sdk-rust diff --git a/design/src/rfcs/rfc0012_independent_crate_versioning.md b/design/src/rfcs/rfc0012_independent_crate_versioning.md index b64dc2b88ac1a6dce88082ed721b409c31ce4026..d0c0241714bdab84f2c01b6f6df7c719e49a8b1a 100644 --- a/design/src/rfcs/rfc0012_independent_crate_versioning.md +++ b/design/src/rfcs/rfc0012_independent_crate_versioning.md @@ -222,4 +222,4 @@ per semver. At that point, no further API breaking changes can be made without a [aws-sdk-rust]: https://github.com/awslabs/aws-sdk-rust [rust-semverver]: https://github.com/rust-lang/rust-semverver [semver]: https://semver.org/ -[smithy-rs]: https://github.com/awslabs/smithy-rs +[smithy-rs]: https://github.com/smithy-lang/smithy-rs diff --git a/design/src/rfcs/rfc0013_body_callback_apis.md b/design/src/rfcs/rfc0013_body_callback_apis.md index ea9b024c1d645b33a5eb469a2b8b4194991327a3..93eedb3f7b7bc9eae49a912bb62c30799c5af80f 100644 --- a/design/src/rfcs/rfc0013_body_callback_apis.md +++ b/design/src/rfcs/rfc0013_body_callback_apis.md @@ -292,5 +292,5 @@ In order to use this in a request, we'd modify codegen for that request's servic - (if streaming) we'd set the checksum callback on the request body object - (if non-streaming) we'd immediately read the body and call `BodyCallback::update` manually. Once all data was read, we'd get the checksum by calling `trailers` and insert that data as a request header. -[ByteStream impls]: https://github.com/awslabs/smithy-rs/blob/f76bc159bf16510a0873f5fba691cb05816f4192/rust-runtime/aws-smithy-http/src/byte_stream.rs#L205 -[SdkBody impls]: https://github.com/awslabs/smithy-rs/blob/f76bc159bf16510a0873f5fba691cb05816f4192/rust-runtime/aws-smithy-http/src/body.rs#L71 +[ByteStream impls]: https://github.com/smithy-lang/smithy-rs/blob/f76bc159bf16510a0873f5fba691cb05816f4192/rust-runtime/aws-smithy-http/src/byte_stream.rs#L205 +[SdkBody impls]: https://github.com/smithy-lang/smithy-rs/blob/f76bc159bf16510a0873f5fba691cb05816f4192/rust-runtime/aws-smithy-http/src/body.rs#L71 diff --git a/design/src/rfcs/rfc0014_timeout_config.md b/design/src/rfcs/rfc0014_timeout_config.md index 52b1496ec0f05db0959db9a50d723dd5b92ce656..776c60104a334c864807f88bc714d61207b55faf 100644 --- a/design/src/rfcs/rfc0014_timeout_config.md +++ b/design/src/rfcs/rfc0014_timeout_config.md @@ -261,12 +261,12 @@ Changes are broken into to sections: [hjr3/hyper-timeout]: https://github.com/hjr3/hyper-timeout [sfackler/tokio-io-timeout]: https://github.com/sfackler/tokio-io-timeout [tower_service::Service]: https://docs.rs/tower-service/0.3.1/tower_service/trait.Service.html -[AwsMiddleware]: https://github.com/awslabs/smithy-rs/blob/1aa59693eed10713dec0f3774a8a25ca271dbf39/aws/rust-runtime/aws-hyper/src/lib.rs#L29 -[MapRequest]: https://github.com/awslabs/smithy-rs/blob/841f51113fb14e2922793951ce16bda3e16cb51f/rust-runtime/aws-smithy-http-tower/src/map_request.rs#L122 -[AsyncMapRequest]: https://github.com/awslabs/smithy-rs/blob/841f51113fb14e2922793951ce16bda3e16cb51f/rust-runtime/aws-smithy-http-tower/src/map_request.rs#L42 -[ParseResponse]: https://github.com/awslabs/smithy-rs/blob/841f51113fb14e2922793951ce16bda3e16cb51f/rust-runtime/aws-smithy-http-tower/src/parse_response.rs#L27 -[DynConnect]: https://github.com/awslabs/smithy-rs/blob/1aa59693eed10713dec0f3774a8a25ca271dbf39/rust-runtime/aws-smithy-client/src/erase.rs#L139 +[AwsMiddleware]: https://github.com/smithy-lang/smithy-rs/blob/1aa59693eed10713dec0f3774a8a25ca271dbf39/aws/rust-runtime/aws-hyper/src/lib.rs#L29 +[MapRequest]: https://github.com/smithy-lang/smithy-rs/blob/841f51113fb14e2922793951ce16bda3e16cb51f/rust-runtime/aws-smithy-http-tower/src/map_request.rs#L122 +[AsyncMapRequest]: https://github.com/smithy-lang/smithy-rs/blob/841f51113fb14e2922793951ce16bda3e16cb51f/rust-runtime/aws-smithy-http-tower/src/map_request.rs#L42 +[ParseResponse]: https://github.com/smithy-lang/smithy-rs/blob/841f51113fb14e2922793951ce16bda3e16cb51f/rust-runtime/aws-smithy-http-tower/src/parse_response.rs#L27 +[DynConnect]: https://github.com/smithy-lang/smithy-rs/blob/1aa59693eed10713dec0f3774a8a25ca271dbf39/rust-runtime/aws-smithy-client/src/erase.rs#L139 [Connect]: https://docs.rs/hyper/0.14.14/hyper/client/connect/trait.Connect.html [tower::layer::util::Stack]: https://docs.rs/tower/0.4.10/tower/layer/util/struct.Stack.html -[aws_smithy_client::Client::call_raw]: https://github.com/awslabs/smithy-rs/blob/841f51113fb14e2922793951ce16bda3e16cb51f/rust-runtime/aws-smithy-client/src/lib.rs#L175 -[Layers can produce compiler errors]: https://github.com/awslabs/smithy-rs/issues/634 +[aws_smithy_client::Client::call_raw]: https://github.com/smithy-lang/smithy-rs/blob/841f51113fb14e2922793951ce16bda3e16cb51f/rust-runtime/aws-smithy-client/src/lib.rs#L175 +[Layers can produce compiler errors]: https://github.com/smithy-lang/smithy-rs/issues/634 diff --git a/design/src/rfcs/rfc0015_using_features_responsibly.md b/design/src/rfcs/rfc0015_using_features_responsibly.md index 336b25ca80fa6a82ee6abd26e0313d0bc6e4d311..3afd19e4e71761c6ae731fafc2396fb70a1ceff8 100644 --- a/design/src/rfcs/rfc0015_using_features_responsibly.md +++ b/design/src/rfcs/rfc0015_using_features_responsibly.md @@ -80,7 +80,7 @@ impl ClientBuilder<(), M, R> { Both features can now be enabled at once without creating a conflict. Since both methods have different names, it's now Ok for them to have different return types. -[*This is real code, see it in context*](https://github.com/awslabs/smithy-rs/blob/2e7ed943513203f1472f2490866dc4fb8a392bd3/rust-runtime/aws-smithy-client/src/hyper_ext.rs#L303) +[*This is real code, see it in context*](https://github.com/smithy-lang/smithy-rs/blob/2e7ed943513203f1472f2490866dc4fb8a392bd3/rust-runtime/aws-smithy-client/src/hyper_ext.rs#L303) ### We should avoid using `#[cfg(not(feature = "some-feature"))]` @@ -130,12 +130,12 @@ For an example: Say you have a crate with features `a`, `b`, `c` that all provid - [Mutually exclusive features are present in profiling-procmacros][profiling#32] - [Clang-sys features not additive][clang-sys#128] -[aws-sigv4]: https://github.com/awslabs/smithy-rs/blob/5a1990791d727652587df51b77df4d1df9058252/aws/rust-runtime/aws-sigv4/Cargo.toml +[aws-sigv4]: https://github.com/smithy-lang/smithy-rs/blob/5a1990791d727652587df51b77df4d1df9058252/aws/rust-runtime/aws-sigv4/Cargo.toml [aws-sdk-s3]: https://github.com/awslabs/aws-sdk-rust/blob/f2b4361b004ee822960ea9791f566fd4eb6d1aba/sdk/s3/Cargo.toml [Cargo Book section on features]: https://doc.rust-lang.org/cargo/reference/features.html [SemVer-incompatible change]: https://doc.rust-lang.org/cargo/reference/features.html#semver-compatibility [remove rustls from crate graph]: https://github.com/awslabs/aws-sdk-rust/issues/304 -[remove default features from runtime crates]: https://github.com/awslabs/smithy-rs/pull/935 +[remove default features from runtime crates]: https://github.com/smithy-lang/smithy-rs/pull/935 [cfg! macro]: https://doc.rust-lang.org/rust-by-example/attribute/cfg.html [How to tell what "features" are available per crate?]: https://stackoverflow.com/questions/59761045/how-to-tell-what-features-are-available-per-crate [How do I 'pass down' feature flags to subdependencies in Cargo?]: https://stackoverflow.com/questions/40021555/how-do-i-pass-down-feature-flags-to-subdependencies-in-cargo @@ -144,4 +144,4 @@ For an example: Say you have a crate with features `a`, `b`, `c` that all provid [profiling#32]: https://github.com/aclysma/profiling/issues/32 [clang-sys#128]: https://github.com/KyleMayes/clang-sys/issues/128 [compile-time errors]: https://doc.rust-lang.org/stable/std/macro.compile_error.html -[native-tls example]: https://github.com/awslabs/smithy-rs/tree/bc316a0b81b75a00c389f6281a66eb0f5357172a/aws/sdk/examples/using_native_tls_instead_of_rustls +[native-tls example]: https://github.com/smithy-lang/smithy-rs/tree/bc316a0b81b75a00c389f6281a66eb0f5357172a/aws/sdk/examples/using_native_tls_instead_of_rustls diff --git a/design/src/rfcs/rfc0018_logging_sensitive.md b/design/src/rfcs/rfc0018_logging_sensitive.md index 9598c823c4a71c2da46c69f74114f17902e341dc..27f94f1a1da6dad1658ac14bbf6d9a909fa1b279 100644 --- a/design/src/rfcs/rfc0018_logging_sensitive.md +++ b/design/src/rfcs/rfc0018_logging_sensitive.md @@ -8,7 +8,7 @@ Smithy provides a [sensitive trait](https://awslabs.github.io/smithy/1.0/spec/co This RFC is concerned with solving the problem of honouring this specification in the context of logging. -Progress has been made towards this goal in the form of the [Sensitive Trait PR](https://github.com/awslabs/smithy-rs/pull/229), which uses code generation to remove sensitive fields from `Debug` implementations. +Progress has been made towards this goal in the form of the [Sensitive Trait PR](https://github.com/smithy-lang/smithy-rs/pull/229), which uses code generation to remove sensitive fields from `Debug` implementations. The problem remains open due to the existence of HTTP binding traits and a lack of clearly defined user guidelines which customers may follow to honour the specification. @@ -222,7 +222,7 @@ These wrappers should be provided alongside the `Sensitive` struct described in ### Middleware Position -This logging middleware should be applied outside of the [OperationHandler](https://github.com/awslabs/smithy-rs/blob/cd0563020abcde866a741fa123e3f2e18e1be1c9/rust-runtime/inlineable/src/server_operation_handler_trait.rs#L17-L21) after its construction in the (generated) `operation_registry.rs` file. The middleware should preserve the associated types of the `OperationHandler` (`Response = Response`, `Error = Infallible`) to cause minimal disruption. +This logging middleware should be applied outside of the [OperationHandler](https://github.com/smithy-lang/smithy-rs/blob/cd0563020abcde866a741fa123e3f2e18e1be1c9/rust-runtime/inlineable/src/server_operation_handler_trait.rs#L17-L21) after its construction in the (generated) `operation_registry.rs` file. The middleware should preserve the associated types of the `OperationHandler` (`Response = Response`, `Error = Infallible`) to cause minimal disruption. An easy position to apply the logging middleware is illustrated below in the form of `Logging{Operation}::new`: @@ -238,7 +238,7 @@ let routes = vec![ let router = aws_smithy_http_server::routing::Router::new_rest_json_router(routes); ``` -Although an acceptable first step, putting logging middleware here is suboptimal - the `Router` allows a `tower::Layer` to be applied to the operation by using the [Router::layer](https://github.com/awslabs/smithy-rs/blob/main/rust-runtime/aws-smithy-http-server/src/routing/mod.rs#L146) method. This middleware will be applied _outside_ of the logging middleware and, as a result, will not be subject to the span of any middleware. Therefore, the `Router` must be changed to allow for middleware to be applied within the logging middleware rather than outside of it. +Although an acceptable first step, putting logging middleware here is suboptimal - the `Router` allows a `tower::Layer` to be applied to the operation by using the [Router::layer](https://github.com/smithy-lang/smithy-rs/blob/main/rust-runtime/aws-smithy-http-server/src/routing/mod.rs#L146) method. This middleware will be applied _outside_ of the logging middleware and, as a result, will not be subject to the span of any middleware. Therefore, the `Router` must be changed to allow for middleware to be applied within the logging middleware rather than outside of it. This is a general problem, not specific to this proposal. For example, [Use Request Extensions](#use-request-extensions) must also solve this problem. @@ -255,7 +255,7 @@ In the case of AWS JSON 1.0 and 1.1 protocols, the request URI is always `/`, pu A guideline should be made available, which includes: - The [HTTP bindings traits](#http-binding-traits) and why they are of concern in the presence of `@sensitive`. -- The [Debug implementation](https://github.com/awslabs/smithy-rs/pull/229) on structures. +- The [Debug implementation](https://github.com/smithy-lang/smithy-rs/pull/229) on structures. - How to use the `Sensitive` struct, HTTP wrappers, and the `unredacted-logging` feature flag described in [Debug Logging](#debug-logging) and [HTTP Debug/Display Wrappers](#http-debugdisplay-wrappers). - A warning against the two potential leaks described in [Scope and Guidelines](#scope-and-guidelines): - Sensitive data leaking from third-party dependencies. @@ -395,12 +395,12 @@ Code generation would be need to be used in order to produce the filtering crite ## Changes Checklist - [x] Implement and integrate code generated logging middleware. - - + - - [x] Add logging to `Router` implementation. - - + - - [x] Write developer guideline. - - + - - [x] Refactor `Router` to allow for better positioning described in [Middleware Position](#middleware-position). - - - - - - + - + - + - diff --git a/design/src/rfcs/rfc0019_event_streams_errors.md b/design/src/rfcs/rfc0019_event_streams_errors.md index 83311d902e730ff51eb1ff461eb2e83885312f88..78fd98228e4b983d88e642b2a62eafadb6d2923e 100644 --- a/design/src/rfcs/rfc0019_event_streams_errors.md +++ b/design/src/rfcs/rfc0019_event_streams_errors.md @@ -46,7 +46,7 @@ In order to implement this feature: * Errors need to be marshalled and unmarshalled * `Receiver` must treat any error coming from the other end as terminal -The code examples below have been generated using the [following model](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen-server-test/model/pokemon.smithy#L27): +The code examples below have been generated using the [following model](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen-server-test/model/pokemon.smithy#L27): ```smithy @http(uri: "/capture-pokemon-event/{region}", method: "POST") operation CapturePokemonOperation { @@ -148,18 +148,18 @@ pub enum AttemptCapturingPokemonEventError { } ``` -Both are modeled as normal errors, where the [name](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/error/CombinedErrorGenerator.kt#L50) comes from `Error` with a prefix of the union's name. -In fact, both the [client](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/error/CombinedErrorGenerator.kt#L71) and [server](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerCombinedErrorGenerator.kt#L46) +Both are modeled as normal errors, where the [name](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/error/CombinedErrorGenerator.kt#L50) comes from `Error` with a prefix of the union's name. +In fact, both the [client](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/error/CombinedErrorGenerator.kt#L71) and [server](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerCombinedErrorGenerator.kt#L46) generate operation errors and event stream errors the same way. -Event stream errors have their own [marshaller](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/protocols/serialize/EventStreamErrorMarshallerGenerator.kt#L39). +Event stream errors have their own [marshaller](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/protocols/serialize/EventStreamErrorMarshallerGenerator.kt#L39). To make it work for users to stream errors, `EventStreamSender<>`, in addition to the union type `T`, takes an error type `E`; that is, the `AttemptCapturingPokemonEventError` in the example. -This means that an error from the stream is [marshalled and sent](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/sender.rs#L137) as a data structure similarly to the union's non-error members. +This means that an error from the stream is [marshalled and sent](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/sender.rs#L137) as a data structure similarly to the union's non-error members. -On the other side, the `Receiver<>` needs to terminate the stream upon [receiving any error](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/receiver.rs#L249). -A terminated stream has [no more data](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/receiver.rs#L38) and will always be a [bug](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/receiver.rs#L54) to use it. +On the other side, the `Receiver<>` needs to terminate the stream upon [receiving any error](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/receiver.rs#L249). +A terminated stream has [no more data](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/receiver.rs#L38) and will always be a [bug](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/receiver.rs#L54) to use it. -An example of how errors can be used on clients, extracted from [this test](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http-server/examples/pokemon_service/tests/simple_integration_test.rs#L100): +An example of how errors can be used on clients, extracted from [this test](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http-server/examples/pokemon_service/tests/simple_integration_test.rs#L100): ```rust,ignore yield Err(AttemptCapturingPokemonEventError::new( AttemptCapturingPokemonEventErrorKind::MasterBallUnsuccessful(MasterBallUnsuccessful::builder().build()), diff --git a/design/src/rfcs/rfc0020_service_builder.md b/design/src/rfcs/rfc0020_service_builder.md index c6e18b9c1025dc56724ec2b974eeebd46259c002..fb9cad79cbb01027d2f49c8737da93568f59d090 100644 --- a/design/src/rfcs/rfc0020_service_builder.md +++ b/design/src/rfcs/rfc0020_service_builder.md @@ -79,7 +79,7 @@ pub trait Handler { Its purpose is to provide an even interface over closures of the form `FnOnce({Operation}Input) -> impl Future` and `FnOnce({Operation}Input, State) -> impl Future`. It's this abstraction which allows the customers to supply both `async fn handler(input: {Operation}Input) -> {Operation}Output` and `async fn handler(input: {Operation}Input, state: Extension) -> {Operation}Output` to the service builder. -We generate `Handler` implementations for said closures in [ServerOperationHandlerGenerator.kt](https://github.com/awslabs/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerOperationHandlerGenerator.kt): +We generate `Handler` implementations for said closures in [ServerOperationHandlerGenerator.kt](https://github.com/smithy-lang/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerOperationHandlerGenerator.kt): ```rust,ignore impl Handler<(), Operation0Input> for Fun @@ -116,7 +116,7 @@ where } ``` -Creating `{Operation}Input` from a `http::Request` and `http::Response` from a `{Operation}Output` involves protocol aware serialization/deserialization, for example, it can involve the [HTTP binding traits](https://awslabs.github.io/smithy/1.0/spec/core/http-traits.html). The [RuntimeError](https://github.com/awslabs/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/rust-runtime/aws-smithy-http-server/src/runtime_error.rs#L53-L5) enumerates error cases such as serialization/deserialization failures, `extensions().get::()` failures, etc. We omit error handling in the snippet above, but, in full, it also involves protocol aware conversions from the `RuntimeError` to `http::Response`. The reader should make note of the influence of the model on the different sections of this procedure. +Creating `{Operation}Input` from a `http::Request` and `http::Response` from a `{Operation}Output` involves protocol aware serialization/deserialization, for example, it can involve the [HTTP binding traits](https://awslabs.github.io/smithy/1.0/spec/core/http-traits.html). The [RuntimeError](https://github.com/smithy-lang/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/rust-runtime/aws-smithy-http-server/src/runtime_error.rs#L53-L5) enumerates error cases such as serialization/deserialization failures, `extensions().get::()` failures, etc. We omit error handling in the snippet above, but, in full, it also involves protocol aware conversions from the `RuntimeError` to `http::Response`. The reader should make note of the influence of the model on the different sections of this procedure. The `request.extensions().get::()` present in the `Fun: FnOnce(Operation0Input, Extension) -> Fut` implementation is the current approach to injecting state into handlers. The customer is required to apply a [AddExtensionLayer](https://docs.rs/tower-http/latest/tower_http/add_extension/struct.AddExtensionLayer.html) to the output of the service builder so that, when the request reaches the handler, the `extensions().get::()` will succeed. @@ -147,7 +147,7 @@ where ### Builder -The service builder we provide to the customer is the `OperationRegistryBuilder`, generated from [ServerOperationRegistryGenerator.kt](https://github.com/awslabs/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerOperationRegistryGenerator.kt). +The service builder we provide to the customer is the `OperationRegistryBuilder`, generated from [ServerOperationRegistryGenerator.kt](https://github.com/smithy-lang/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerOperationRegistryGenerator.kt). Currently, the reference model would generate the following `OperationRegistryBuilder` and `OperationRegistry`: @@ -221,7 +221,7 @@ where ### Router -The [aws_smithy_http::routing::Router](https://github.com/awslabs/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/rust-runtime/aws-smithy-http-server/src/routing/mod.rs#L58-L60) provides the protocol aware routing of requests to their target , it exists as +The [aws_smithy_http::routing::Router](https://github.com/smithy-lang/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/rust-runtime/aws-smithy-http-server/src/routing/mod.rs#L58-L60) provides the protocol aware routing of requests to their target , it exists as ```rust,ignore pub struct Route { @@ -739,7 +739,7 @@ Recall the form of the `Service::call` method, given in [Router](#router), which Two downsides of modelling `Router` in this way are: - `Router` is larger and has more branches than a protocol specific implementation. -- If a third-party wanted to extend `smithy-rs` to additional protocols `Routes` would have to be extended. A synopsis of this obstruction is presented in [Should we generate the `Router` type](https://github.com/awslabs/smithy-rs/issues/1606) issue. +- If a third-party wanted to extend `smithy-rs` to additional protocols `Routes` would have to be extended. A synopsis of this obstruction is presented in [Should we generate the `Router` type](https://github.com/smithy-lang/smithy-rs/issues/1606) issue. After taking the [Switch `From for Router` to an `OperationRegistry::build` method](#switch-fromoperationregistry-for-router-to-an-operationregistrybuild-method) transform, code generation is free to switch between return types based on the model. This allows for a scenario where a `@restJson1` causes the service builder to output a specific `RestJson1Router`. @@ -747,17 +747,17 @@ After taking the [Switch `From for Router` to an `OperationRe Currently, protocol specific routing errors are either: -- Converted to `RuntimeError`s and then `http::Response` (see [unknown_operation](https://github.com/awslabs/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/rust-runtime/aws-smithy-http-server/src/routing/mod.rs#L106-L118)). -- Converted directly to a `http::Response` (see [method_not_allowed](https://github.com/awslabs/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/rust-runtime/aws-smithy-http-server/src/routing/mod.rs#L121-L127)). This is an outlier to the common pattern. +- Converted to `RuntimeError`s and then `http::Response` (see [unknown_operation](https://github.com/smithy-lang/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/rust-runtime/aws-smithy-http-server/src/routing/mod.rs#L106-L118)). +- Converted directly to a `http::Response` (see [method_not_allowed](https://github.com/smithy-lang/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/rust-runtime/aws-smithy-http-server/src/routing/mod.rs#L121-L127)). This is an outlier to the common pattern. -The `from_request` functions yield protocol specific errors which are converted to `RequestRejection`s then `RuntimeError`s (see [ServerHttpBoundProtocolGenerator.kt](https://github.com/awslabs/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpBoundProtocolGenerator.kt#L194-L210)). +The `from_request` functions yield protocol specific errors which are converted to `RequestRejection`s then `RuntimeError`s (see [ServerHttpBoundProtocolGenerator.kt](https://github.com/smithy-lang/smithy-rs/blob/458eeb63b95e6e1e26de0858457adbc0b39cbe4e/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpBoundProtocolGenerator.kt#L194-L210)). In these scenarios protocol specific errors are converted into `RuntimeError` before being converted to a `http::Response` via `into_response` method. Two downsides of this are: - `RuntimeError` enumerates all possible errors across all existing protocols, so is larger than modelling the errors for a specific protocol. -- If a third-party wanted to extend `smithy-rs` to additional protocols with differing failure modes `RuntimeError` would have to be extended. As in [Protocol specific Errors](#protocol-specific-errors), a synopsis of this obstruction is presented in [Should we generate the `Router` type](https://github.com/awslabs/smithy-rs/issues/1606) issue. +- If a third-party wanted to extend `smithy-rs` to additional protocols with differing failure modes `RuntimeError` would have to be extended. As in [Protocol specific Errors](#protocol-specific-errors), a synopsis of this obstruction is presented in [Should we generate the `Router` type](https://github.com/smithy-lang/smithy-rs/issues/1606) issue. Switching from using `RuntimeError` to protocol specific errors which satisfy a common interface, `IntoResponse`, would resolve these problem. @@ -857,11 +857,11 @@ A toy implementation of the combined proposal is presented in [this PR](https:// ## Changes Checklist - [x] Add protocol specific routers to `rust-runtime/aws-smithy-http-server`. - - + - - [x] Add middleware primitives and error types to `rust-runtime/aws-smithy-http-server`. - - + - - [x] Add code generation which outputs new service builder. - - + - - [x] Deprecate `OperationRegistryBuilder`, `OperationRegistry` and `Router`. - - - - + - + - diff --git a/design/src/rfcs/rfc0023_refine_builder.md b/design/src/rfcs/rfc0023_refine_builder.md index 1c0b6f9786d5ee3e32c9223287e4f2d2a5b84c61..59e2808352c031c5f48aeba9f6b4c330f47cfb70 100644 --- a/design/src/rfcs/rfc0023_refine_builder.md +++ b/design/src/rfcs/rfc0023_refine_builder.md @@ -782,13 +782,13 @@ The API proposed in this RFC has been manually implemented for the Pokemon servi ## Changes checklist - [x] Update `codegen-server` to generate the proposed service builder API - - + - - [x] Implement `Pluggable` for `PluginStack` - - + - - [x] Evaluate the introduction of a `PluginBuilder` as the primary API to compose multiple plugins (instead of `PluginStack::new(IdentityPlugin, IdentityPlugin).apply(...)`) - - + - [RFC 20]: rfc0020_service_builder.md -[Pokemon service]: https://github.com/awslabs/smithy-rs/blob/c7ddb164b28b920313432789cfe05d8112a035cc/codegen-core/common-test-models/pokemon.smithy +[Pokemon service]: https://github.com/smithy-lang/smithy-rs/blob/c7ddb164b28b920313432789cfe05d8112a035cc/codegen-core/common-test-models/pokemon.smithy [typestate builder pattern]: https://www.greyblake.com/blog/builder-with-typestate-in-rust/ [^further-dev-productivity-improvements]: The impact of a runtime error on developer productivity can be further minimised by encouraging adoption of integration testing; this can be achieved, among other options, by authoring guides that highlight its benefits and provide implementation guidance. diff --git a/design/src/rfcs/rfc0025_constraint_traits.md b/design/src/rfcs/rfc0025_constraint_traits.md index e3aaa323190c4ad60de13594856fc9ea85e60fb0..f6b446c0f465652222f517ad123d0f52fd7d6feb 100644 --- a/design/src/rfcs/rfc0025_constraint_traits.md +++ b/design/src/rfcs/rfc0025_constraint_traits.md @@ -10,8 +10,8 @@ RFC: Constraint traits > > See the uber [tracking issue] for pending work. -[builders-of-builders]: https://github.com/awslabs/smithy-rs/pull/1342 -[tracking issue]: https://github.com/awslabs/smithy-rs/issues/1401 +[builders-of-builders]: https://github.com/smithy-lang/smithy-rs/pull/1342 +[tracking issue]: https://github.com/smithy-lang/smithy-rs/issues/1401 [Constraint traits] are used to constrain the values that can be provided for a shape. @@ -74,7 +74,7 @@ The only constraint trait enforcement that is generated by smithy-rs clients should be and is the `enum` trait, which renders Rust `enum`s. The `required` trait is already and only enforced by smithy-rs servers since -[#1148](https://github.com/awslabs/smithy-rs/pull/1148). +[#1148](https://github.com/smithy-lang/smithy-rs/pull/1148). That leaves 4 traits: `length`, `pattern`, `range`, and `uniqueItems`. @@ -293,7 +293,7 @@ We will enforce this by copying _references_ to the `Vec`'s elements into a [`aws_smithy_types::Blob`]: https://docs.rs/aws-smithy-types/latest/aws_smithy_types/struct.Blob.html [`aws_smithy_http_server::rejection::SmithyRejection`]: https://docs.rs/aws-smithy-http-server/latest/aws_smithy_http_server/rejection/enum.SmithyRejection.html [`aws_smithy_http_server::rejection::Deserialize`]: https://docs.rs/aws-smithy-http-server/latest/aws_smithy_http_server/rejection/struct.Deserialize.html -[#1187]: https://github.com/awslabs/smithy-rs/issues/1187 +[#1187]: https://github.com/smithy-lang/smithy-rs/issues/1187 [`once_cell`]: https://docs.rs/once_cell/latest/once_cell/ Trait precedence and naming of the tuple struct @@ -359,7 +359,7 @@ Unresolved questions - UPDATE: We decided to punt on this until users express interest. [`NonZeroU64`]: https://doc.rust-lang.org/std/num/struct.NonZeroU64.html -[Better Constraint Violations]: https://github.com/awslabs/smithy-rs/pull/2040 +[Better Constraint Violations]: https://github.com/smithy-lang/smithy-rs/pull/2040 Alternative design ------------------ diff --git a/design/src/rfcs/rfc0028_sdk_credential_cache_type_safety.md b/design/src/rfcs/rfc0028_sdk_credential_cache_type_safety.md index 719f2ef9fd350d619ac1ccb04c0a39b99ffc5218..d197d8bac74f06a5b98a53b80be5cd628d78cac9 100644 --- a/design/src/rfcs/rfc0028_sdk_credential_cache_type_safety.md +++ b/design/src/rfcs/rfc0028_sdk_credential_cache_type_safety.md @@ -1,7 +1,7 @@ RFC: SDK Credential Cache Type Safety ===================================== -> Status: Implemented in [smithy-rs#2122](https://github.com/awslabs/smithy-rs/pull/2122) +> Status: Implemented in [smithy-rs#2122](https://github.com/smithy-lang/smithy-rs/pull/2122) > > Applies to: AWS SDK for Rust diff --git a/design/src/rfcs/rfc0029_new_home_for_cred_types.md b/design/src/rfcs/rfc0029_new_home_for_cred_types.md index e864bd7d5bc6daf4bafca26f2f6e3c9b5175a158..ab0b638b3a189e92b9e53aa2103f470c61319223 100644 --- a/design/src/rfcs/rfc0029_new_home_for_cred_types.md +++ b/design/src/rfcs/rfc0029_new_home_for_cred_types.md @@ -1,11 +1,11 @@ RFC: Finding New Home for Credential Types =================================================== -> Status: Implemented in [smithy-rs#2108](https://github.com/awslabs/smithy-rs/pull/2108) +> Status: Implemented in [smithy-rs#2108](https://github.com/smithy-lang/smithy-rs/pull/2108) > > Applies to: clients -This RFC supplements [RFC 28](https://github.com/awslabs/smithy-rs/blob/main/design/src/rfcs/rfc0028_sdk_credential_cache_type_safety.md) and discusses for the selected design where to place the types for credentials providers, credentials caching, and everything else that comes with them. +This RFC supplements [RFC 28](https://github.com/smithy-lang/smithy-rs/blob/main/design/src/rfcs/rfc0028_sdk_credential_cache_type_safety.md) and discusses for the selected design where to place the types for credentials providers, credentials caching, and everything else that comes with them. It is assumed that the primary motivation behind the introduction of type safe credentials caching remains the same as the preceding RFC. diff --git a/design/src/rfcs/rfc0031_providing_fallback_credentials_on_timeout.md b/design/src/rfcs/rfc0031_providing_fallback_credentials_on_timeout.md index f6e76e87a8e40bf9ed1e79e5b22a10da6bd81a16..a02aa68b5022d2e8762afb2bbe795c63b777a1dd 100644 --- a/design/src/rfcs/rfc0031_providing_fallback_credentials_on_timeout.md +++ b/design/src/rfcs/rfc0031_providing_fallback_credentials_on_timeout.md @@ -1,6 +1,6 @@ RFC: Providing fallback credentials on external timeout ======================================================= -> Status: Implemented in [smithy-rs#2246](https://github.com/awslabs/smithy-rs/pull/2246) +> Status: Implemented in [smithy-rs#2246](https://github.com/smithy-lang/smithy-rs/pull/2246) > > Applies to: client diff --git a/design/src/rfcs/rfc0032_better_constraint_violations.md b/design/src/rfcs/rfc0032_better_constraint_violations.md index 6b44d27835c9d239620e59dc0fe4bb3f1143258f..4c7b777541d15b5cc07f27d8069c0b0708cbf476 100644 --- a/design/src/rfcs/rfc0032_better_constraint_violations.md +++ b/design/src/rfcs/rfc0032_better_constraint_violations.md @@ -21,9 +21,9 @@ Note: code snippets from generated SDKs in this document are abridged so as to be didactic and relevant to the point being made. They are accurate with regards to commit [`2226fe`]. -[constraint-traits-rfc]: https://github.com/awslabs/smithy-rs/pull/1199 -[builders-of-builders-pr]: https://github.com/awslabs/smithy-rs/pull/1342 -[`2226fe`]: https://github.com/awslabs/smithy-rs/tree/2226feff8f7fa884204f81a50d7e016386912acc +[constraint-traits-rfc]: https://github.com/smithy-lang/smithy-rs/pull/1199 +[builders-of-builders-pr]: https://github.com/smithy-lang/smithy-rs/pull/1342 +[`2226fe`]: https://github.com/smithy-lang/smithy-rs/tree/2226feff8f7fa884204f81a50d7e016386912acc [constraint traits]: https://awslabs.github.io/smithy/2.0/spec/constraint-traits.html Terminology @@ -244,7 +244,7 @@ docs, nor have to `match` on these variants when handling errors. Note: [this comment] alludes to the problem described above. -[this comment]: https://github.com/awslabs/smithy-rs/blob/27020be3421fb93e35692803f9a795f92feb1d19/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/MapConstraintViolationGenerator.kt#L66-L69 +[this comment]: https://github.com/smithy-lang/smithy-rs/blob/27020be3421fb93e35692803f9a795f92feb1d19/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/MapConstraintViolationGenerator.kt#L66-L69 ### Solution proposal @@ -276,7 +276,7 @@ pub mod length_map { ``` Note that, to some extent, the spirit of this approach is [already currently -present](https://github.com/awslabs/smithy-rs/blob/9a4c1f304f6f5237d480cfb56dad2951d927d424/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGenerator.kt#L78-L81) +present](https://github.com/smithy-lang/smithy-rs/blob/9a4c1f304f6f5237d480cfb56dad2951d927d424/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGenerator.kt#L78-L81) in the case of builder types when `publicConstrainedTypes` is set to `false`: 1. [`ServerBuilderGenerator.kt`] renders the usual builder type that enforces @@ -286,8 +286,8 @@ in the case of builder types when `publicConstrainedTypes` is set to `false`: builder type the user is exposed to: this builder does not take in constrained types and does not enforce all modeled constraints. -[`ServerBuilderGenerator.kt`]: https://github.com/awslabs/smithy-rs/blob/2226feff8f7fa884204f81a50d7e016386912acc/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGenerator.kt -[`ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt`]: https://github.com/awslabs/smithy-rs/blob/2226feff8f7fa884204f81a50d7e016386912acc/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt +[`ServerBuilderGenerator.kt`]: https://github.com/smithy-lang/smithy-rs/blob/2226feff8f7fa884204f81a50d7e016386912acc/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGenerator.kt +[`ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt`]: https://github.com/smithy-lang/smithy-rs/blob/2226feff8f7fa884204f81a50d7e016386912acc/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerBuilderGeneratorWithoutPublicConstrainedTypes.kt Collecting constraint violations -------------------------------- @@ -342,7 +342,7 @@ list ValidationExceptionFieldList { ``` It was mentioned in the [constraint traits -RFC](https://github.com/awslabs/smithy-rs/pull/1199#discussion_r809300673), and +RFC](https://github.com/smithy-lang/smithy-rs/pull/1199#discussion_r809300673), and implicit in the definition of Smithy's [`smithy.framework.ValidationException`](https://github.com/awslabs/smithy/blob/main/smithy-validation-model/model/smithy.framework.validation.smithy) shape, that server frameworks should respond with a _complete_ collection of @@ -392,7 +392,7 @@ impl LengthPatternString { pub fn compile_regex() -> &'static regex::Regex { static REGEX: once_cell::sync::Lazy = once_cell::sync::Lazy::new(|| { - regex::Regex::new(r#"[a-f0-5]*"#).expect(r#"The regular expression [a-f0-5]* is not supported by the `regex` crate; feel free to file an issue under https://github.com/awslabs/smithy-rs/issues for support"#) + regex::Regex::new(r#"[a-f0-5]*"#).expect(r#"The regular expression [a-f0-5]* is not supported by the `regex` crate; feel free to file an issue under https://github.com/smithy-lang/smithy-rs/issues for support"#) }); ®EX @@ -518,7 +518,7 @@ due to performance concerns. This RFC advocates for implementing the first option, arguing that [it's fair to say that the framework should return an error that is as informative as possible, but it doesn't necessarily have to be -complete](https://github.com/awslabs/smithy-rs/pull/2040#discussion_r1036226762). +complete](https://github.com/smithy-lang/smithy-rs/pull/2040#discussion_r1036226762). However, we will also write a layer, applied by default to all server SDKs, that bounds a request body's size to a reasonable (yet high) default. Relying on users to manually apply the layer is dangerous, since such a configuration diff --git a/design/src/rfcs/rfc0033_improve_sdk_request_id_access.md b/design/src/rfcs/rfc0033_improve_sdk_request_id_access.md index 9ec673248c50310a54591f6098753f2bf7a39329..488b5f324debc5859539d3f96c5d90d6d8b034b6 100644 --- a/design/src/rfcs/rfc0033_improve_sdk_request_id_access.md +++ b/design/src/rfcs/rfc0033_improve_sdk_request_id_access.md @@ -1,7 +1,7 @@ RFC: Improving access to request IDs in SDK clients =================================================== -> Status: Implemented in [#2129](https://github.com/awslabs/smithy-rs/pull/2129) +> Status: Implemented in [#2129](https://github.com/smithy-lang/smithy-rs/pull/2129) > > Applies to: AWS SDK clients diff --git a/design/src/server/anatomy.md b/design/src/server/anatomy.md index 5146202877952112c16e9b353ded9d16c8cecb97..47ace20827020b3bb6b22bcce61d0657e803d4ac 100644 --- a/design/src/server/anatomy.md +++ b/design/src/server/anatomy.md @@ -4,7 +4,7 @@ What is [Smithy](https://awslabs.github.io/smithy/2.0/index.html)? At a high-lev This survey is disinterested in the actual Kotlin implementation of the code generator, and instead focuses on the structure of the generated Rust code and how it relates to the Smithy model. The intended audience is new contributors and users interested in internal details. -During the survey we will use the [`pokemon.smithy`](https://github.com/awslabs/smithy-rs/blob/main/codegen-core/common-test-models/pokemon.smithy) model as a reference: +During the survey we will use the [`pokemon.smithy`](https://github.com/smithy-lang/smithy-rs/blob/main/codegen-core/common-test-models/pokemon.smithy) model as a reference: ```smithy /// A Pokémon species forms the basis for at least one Pokémon. @@ -228,7 +228,7 @@ To summarize a _model service_ constructed can be constructed from a `Handler` o ## Serialization and Deserialization -A [Smithy protocol](https://awslabs.github.io/smithy/2.0/spec/protocol-traits.html#serialization-and-protocol-traits) specifies the serialization/deserialization scheme - how a HTTP request is transformed into a modelled input and a modelled output to a HTTP response. The is formalized using the [`FromRequest`](https://docs.rs/aws-smithy-http-server/latest/aws_smithy_http_server/request/trait.FromRequest.html) and [`IntoResponse`](https://github.com/awslabs/smithy-rs/blob/4c5cbc39384f0d949d7693eb87b5853fe72629cd/rust-runtime/aws-smithy-http-server/src/response.rs#L40-L44) traits: +A [Smithy protocol](https://awslabs.github.io/smithy/2.0/spec/protocol-traits.html#serialization-and-protocol-traits) specifies the serialization/deserialization scheme - how a HTTP request is transformed into a modelled input and a modelled output to a HTTP response. The is formalized using the [`FromRequest`](https://docs.rs/aws-smithy-http-server/latest/aws_smithy_http_server/request/trait.FromRequest.html) and [`IntoResponse`](https://github.com/smithy-lang/smithy-rs/blob/4c5cbc39384f0d949d7693eb87b5853fe72629cd/rust-runtime/aws-smithy-http-server/src/response.rs#L40-L44) traits: ```rust # extern crate aws_smithy_http_server; @@ -445,7 +445,7 @@ pub trait Plugin { # } ``` -An example `Plugin` implementation can be found in [/examples/pokemon-service/src/plugin.rs](https://github.com/awslabs/smithy-rs/blob/main/examples/pokemon-service/src/plugin.rs). +An example `Plugin` implementation can be found in [/examples/pokemon-service/src/plugin.rs](https://github.com/smithy-lang/smithy-rs/blob/main/examples/pokemon-service/src/plugin.rs). Plugins can be applied in two places: @@ -602,7 +602,7 @@ The builder has two setter methods for each [Smithy Operation](https://awslabs.g } ``` -Handlers and operations are upgraded to a [`Route`](https://github.com/awslabs/smithy-rs/blob/4c5cbc39384f0d949d7693eb87b5853fe72629cd/rust-runtime/aws-smithy-http-server/src/routing/route.rs#L49-L52) as soon as they are registered against the service builder. You can think of `Route` as a boxing layer in disguise. +Handlers and operations are upgraded to a [`Route`](https://github.com/smithy-lang/smithy-rs/blob/4c5cbc39384f0d949d7693eb87b5853fe72629cd/rust-runtime/aws-smithy-http-server/src/routing/route.rs#L49-L52) as soon as they are registered against the service builder. You can think of `Route` as a boxing layer in disguise. You can transform a builder instance into a complete service (`PokemonService`) using one of the following methods: diff --git a/design/src/server/code_generation.md b/design/src/server/code_generation.md index f65c08d2f1dcf09d3a2402a9cc3298aedf393ad7..e1f0f2dfd393abb970efa83bd7274955e7583401 100644 --- a/design/src/server/code_generation.md +++ b/design/src/server/code_generation.md @@ -72,29 +72,29 @@ in which all dependencies are written into their modules and `lib.rs` is generat `execute()` ends by running [cargo fmt][26], to avoid having to format correctly Rust in `Writer`s and to be sure the generated code follows the styling rules. -[1]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/CargoDependency.kt#L95-L95 +[1]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/CargoDependency.kt#L95-L95 [2]: https://docs.rs/aws-smithy-eventstream -[3]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/RustCodegenPlugin.kt#L34 +[3]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/RustCodegenPlugin.kt#L34 [4]: https://github.com/awslabs/smithy/tree/main/smithy-build [5]: https://github.com/awslabs/smithy [6]: https://awslabs.github.io/smithy/1.0/guides/building-models/gradle-plugin.html -[7]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SigV4SigningDecorator.kt#L45 -[8]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L115-L115 -[9]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L44 -[10]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/SymbolVisitor.kt#L363-L363 -[11]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustTypes.kt#L25-L25 -[12]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/RuntimeTypes.kt#L113-L113 +[7]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/SigV4SigningDecorator.kt#L45 +[8]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L115-L115 +[9]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L44 +[10]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/SymbolVisitor.kt#L363-L363 +[11]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustTypes.kt#L25-L25 +[12]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/RuntimeTypes.kt#L113-L113 [13]: https://awslabs.github.io/smithy/1.0/spec/core/model.html#shape-id -[14]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/EventStreamSymbolProvider.kt#L65-L65 -[15]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/StreamingTraitSymbolProvider.kt#L26-L26 -[16]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/RustCodegenPlugin.kt#L62-L62 -[17]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustReservedWords.kt#L26-L26 -[18]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/EventStreamSymbolProvider.kt#L38-L38 -[19]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/transformers/OperationNormalizer.kt#L52-L52 -[20]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L119-L119 -[21]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L150-L150 -[22]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L172-L172 -[23]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenDelegator.kt#L119-L126 -[24]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenDelegator.kt#L42-L42 -[25]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenDelegator.kt#L96-L107 -[26]: https://github.com/awslabs/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L133-L133 +[14]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/EventStreamSymbolProvider.kt#L65-L65 +[15]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/StreamingTraitSymbolProvider.kt#L26-L26 +[16]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/RustCodegenPlugin.kt#L62-L62 +[17]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustReservedWords.kt#L26-L26 +[18]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/EventStreamSymbolProvider.kt#L38-L38 +[19]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/transformers/OperationNormalizer.kt#L52-L52 +[20]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L119-L119 +[21]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L150-L150 +[22]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L172-L172 +[23]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenDelegator.kt#L119-L126 +[24]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenDelegator.kt#L42-L42 +[25]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenDelegator.kt#L96-L107 +[26]: https://github.com/smithy-lang/smithy-rs/blob/db48039065bec890ef387385773b37154b555b14/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/CodegenVisitor.kt#L133-L133 diff --git a/design/src/server/middleware.md b/design/src/server/middleware.md index 589fb0770cadf49bab8d98030638b3a59678537c..67802317bcf2e1a9c640c78777d2791f404041e9 100644 --- a/design/src/server/middleware.md +++ b/design/src/server/middleware.md @@ -2,7 +2,7 @@ The following document provides a brief survey of the various positions middleware can be inserted in Smithy Rust. -We use the [Pokémon service](https://github.com/awslabs/smithy-rs/blob/main/codegen-core/common-test-models/pokemon.smithy) as a reference model throughout. +We use the [Pokémon service](https://github.com/smithy-lang/smithy-rs/blob/main/codegen-core/common-test-models/pokemon.smithy) as a reference model throughout. ```smithy /// A Pokémon species forms the basis for at least one Pokémon. diff --git a/design/src/smithy/aggregate_shapes.md b/design/src/smithy/aggregate_shapes.md index 0dafac77f9ed4bc239abe7f1dffcc393151b66b4..41569107dc7b61a78c469500bf87d20fd06119da 100644 --- a/design/src/smithy/aggregate_shapes.md +++ b/design/src/smithy/aggregate_shapes.md @@ -8,7 +8,7 @@ | [Structure](#structure) | `struct` | | [Union](#union) | `enum` | -Most generated types are controlled by [SymbolVisitor](https://github.com/awslabs/smithy-rs/blob/main/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/SymbolVisitor.kt). +Most generated types are controlled by [SymbolVisitor](https://github.com/smithy-lang/smithy-rs/blob/main/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/SymbolVisitor.kt). ## List List objects in Smithy are transformed into vectors in Rust. Based on the output of the [NullableIndex](https://awslabs.github.io/smithy/javadoc/1.5.1/software/amazon/smithy/model/knowledge/NullableIndex.html), the generated list may be `Vec` or `Vec>`. @@ -121,7 +121,7 @@ impl IoUsage { Smithy `Union` is modeled as `enum` in Rust. 1. Generated `enum`s must be marked `#[non_exhaustive]`. -2. Generated `enum`s must provide an `Unknown` variant. If parsing receives an unknown input that doesn't match any of the given union variants, `Unknown` should be constructed. [Tracking Issue](https://github.com/awslabs/smithy-rs/issues/185). +2. Generated `enum`s must provide an `Unknown` variant. If parsing receives an unknown input that doesn't match any of the given union variants, `Unknown` should be constructed. [Tracking Issue](https://github.com/smithy-lang/smithy-rs/issues/185). 3. Union members (enum variants) are **not** nullable, because Smithy union members cannot contain null values. 4. When union members contain references to other shapes, we generate a wrapping variant (see below). 5. Union members do not require `#[non_exhaustive]`, because changing the shape targeted by a union member is not backwards compatible. diff --git a/design/src/smithy/event_streams.md b/design/src/smithy/event_streams.md index 47d08d6836e30a6e23ebccb939151e8d7cf31d60..c2b77d98fb186f3e23868847b1c5d5a7a3968698 100644 --- a/design/src/smithy/event_streams.md +++ b/design/src/smithy/event_streams.md @@ -14,7 +14,7 @@ This document describes: The user experience ---------------------------------------------- -Let us take [the following model](https://github.com/awslabs/smithy-rs/pull/1479/files#diff-ae332acd4a848e840d018d3b8616e40031f9e8f96ed89777dea69eb1f51a89a4R25) as an example: +Let us take [the following model](https://github.com/smithy-lang/smithy-rs/pull/1479/files#diff-ae332acd4a848e840d018d3b8616e40031f9e8f96ed89777dea69eb1f51a89a4R25) as an example: ```smithy @http(uri: "/capture-pokemon-event/{region}", method: "POST") operation CapturePokemonOperation { @@ -197,7 +197,7 @@ pub struct CapturePokemonOperationInput { } ``` Note they are similar, but the client uses an `EventStreamSender` (this is an input structure) and the server a `Receiver` (the server receives the input). -Sender is [chosen according](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/EventStreamSymbolProvider.kt#L58) to if the +Sender is [chosen according](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/EventStreamSymbolProvider.kt#L58) to if the generation target is the client and the union is in an input structure; or if this is a server sending from an operation's output. The error structs are generated as any operation error, where the union shape is treated as an operation: @@ -216,7 +216,7 @@ pub enum AttemptCapturingPokemonEventError { MasterBallUnsuccessful(crate::error::MasterBallUnsuccessful), } ``` -The errors are similar to any operation error, but their [name](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/error/CombinedErrorGenerator.kt#L50) is `Error` prefixed by the name of the union. +The errors are similar to any operation error, but their [name](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/generators/error/CombinedErrorGenerator.kt#L50) is `Error` prefixed by the name of the union. The reason for splitting up errors and non-errors in the event stream union is to give a more Rust-like experience to customers, where they can `yield` and `match` on errors `Err(UnionError::Variant)` as a result of the event stream communication, rather than matching on the specific variant, `Ok(Union::Variant) => /* handle error */`. @@ -238,8 +238,8 @@ aws_smithy_http::event_stream::Receiver< ``` and errors propagated as such to terminate the stream. -An [EventStreamSender](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/sender.rs#L18) wraps an input stream -into a [MessageStreamAdapter](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/sender.rs#L132), which implements +An [EventStreamSender](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/sender.rs#L18) wraps an input stream +into a [MessageStreamAdapter](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/sender.rs#L132), which implements the [Stream](https://docs.rs/futures-core/0.3.21/futures_core/stream/trait.Stream.html) trait. At a high level, `poll_next` works by: 1. Polling the customer stream 2. If there is an event: @@ -248,13 +248,13 @@ the [Stream](https://docs.rs/futures-core/0.3.21/futures_core/stream/trait.Strea 3. Sign the marshalled data and return it 3. Otherwise, signal to poll back later -Similarly, the [Receiver](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/receiver.rs#L125) handles the receiving side of the stream. +Similarly, the [Receiver](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-http/src/event_stream/receiver.rs#L125) handles the receiving side of the stream. The `Receiver` has more logic to handle buffering data and possibly errors. Server and client serialize similarly. Serializing for `CapturePokemonOperation` on the server, with `serialize_capture_pokemon_operation_response`: 1. Sets the `content-type` HTTP header to `application/vnd.amazon.eventstream` 2. Converts the `EventStreamSender` in the event stream structure into a `MessageStreamAdapter` with a marshaller for the error and data types - 1. [This](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpBoundProtocolGenerator.kt#L511) is where it is generated + 1. [This](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpBoundProtocolGenerator.kt#L511) is where it is generated 3. Gives the body back to hyper ```rust let body = @@ -269,13 +269,13 @@ let body = adapter })); ``` -The signer signs the message to be sent. [NoOpSigner](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-eventstream/src/frame.rs#L37) returns the message as is, `SigV4Signer` signs using the AWS SigV4 protocol. SigV4 requires an empty-payload signed message to be sent before effectively terminating the stream; to keep the same interface, `SignMessage::sign_empty` returns an `Option` to signal whether signing this last empty message is required. +The signer signs the message to be sent. [NoOpSigner](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-eventstream/src/frame.rs#L37) returns the message as is, `SigV4Signer` signs using the AWS SigV4 protocol. SigV4 requires an empty-payload signed message to be sent before effectively terminating the stream; to keep the same interface, `SignMessage::sign_empty` returns an `Option` to signal whether signing this last empty message is required. -The marshallers set header and payload in a [Message](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-eventstream/src/frame.rs#L368) structure: `Message` is a structure with a vector, the headers; and bytes, the payload. +The marshallers set header and payload in a [Message](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-eventstream/src/frame.rs#L368) structure: `Message` is a structure with a vector, the headers; and bytes, the payload. The headers are the values targeted by the `@eventHeader` trait and the payload by `@eventPayload`. At the end of the marshalling and signing processes, `MessageStreamAdapter` takes the `Message` built by the marshaller and signer -and [writes](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-eventstream/src/frame.rs#L224) it as bytes into a `Vec`, +and [writes](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/rust-runtime/aws-smithy-eventstream/src/frame.rs#L224) it as bytes into a `Vec`, in a format of a sequence of bytes: `` where `type` indicates if the `data` is a bool, integer and so on for all types. Headers that are sent are: @@ -288,10 +288,10 @@ The way errors are marshalled, unmarshalled and signed is the same as above. #### Generating errors Event stream errors in unions are generated in the same way for operation errors: -In fact, the implementation uses the same [render](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerCombinedErrorGenerator.kt#L47) functions; +In fact, the implementation uses the same [render](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/ServerCombinedErrorGenerator.kt#L47) functions; the only difference between client and server is that the server does not generate anything unless the structure has errors, while the client always generates a structure for forward compatibility with at least a `Unhandled` error kind. -This is also the reason for the default [MessageStreamError](https://github.com/awslabs/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/EventStreamSymbolProvider.kt#L52) for servers. +This is also the reason for the default [MessageStreamError](https://github.com/smithy-lang/smithy-rs/blob/8f7e03ff8a84236955a65dba3d21c4bdbf17a9f4/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/EventStreamSymbolProvider.kt#L52) for servers. The main differences between the EventStreamErrorMarshallerGenerator and EventStreamMarshallerGenerator are that the former: * takes into account the differences between client and server in how error symbols are laid out (with a `kind` member or `Kind` suffix) diff --git a/design/src/smithy/overview.md b/design/src/smithy/overview.md index 128ce25626799f61e3737d0f046fdda79bb078f6..f894c7e9d013779d7cba67f1bc4868376a19de8c 100644 --- a/design/src/smithy/overview.md +++ b/design/src/smithy/overview.md @@ -7,8 +7,8 @@ Design documentation here covers both our implementation of Smithy Primitives (e Smithy introduces a few concepts that are defined here: 1. Shape: The core Smithy primitive. A smithy model is composed of nested shapes defining an API. -2. `Symbol`: A Representation of a type including namespaces and any dependencies required to use a type. A shape can be converted into a symbol by a `SymbolVisitor`. A `SymbolVisitor` maps shapes to types in your programming language (e.g. Rust). In the Rust SDK, see [SymbolVisitor.kt](https://github.com/awslabs/smithy-rs/blob/c049a37f8cba5f9bec2e96c28db83e7efb2edc53/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/SymbolVisitor.kt). Symbol visitors are composable—many specific behaviors are mixed in via small & focused symbol providers, e.g. support for the streaming trait is mixed in separately. -3. `Writer`: Writers are code generation primitives that collect code prior to being written to a file. Writers enable language specific helpers to be added to simplify codegen for a given language. For example, `smithy-rs` adds `rustBlock` to [`RustWriter`](https://github.com/awslabs/smithy-rs/blob/908dec558e26bbae6fe4b7d9d1c221dd81699b59/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustWriter.kt) to create a "Rust block" of code. +2. `Symbol`: A Representation of a type including namespaces and any dependencies required to use a type. A shape can be converted into a symbol by a `SymbolVisitor`. A `SymbolVisitor` maps shapes to types in your programming language (e.g. Rust). In the Rust SDK, see [SymbolVisitor.kt](https://github.com/smithy-lang/smithy-rs/blob/c049a37f8cba5f9bec2e96c28db83e7efb2edc53/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/SymbolVisitor.kt). Symbol visitors are composable—many specific behaviors are mixed in via small & focused symbol providers, e.g. support for the streaming trait is mixed in separately. +3. `Writer`: Writers are code generation primitives that collect code prior to being written to a file. Writers enable language specific helpers to be added to simplify codegen for a given language. For example, `smithy-rs` adds `rustBlock` to [`RustWriter`](https://github.com/smithy-lang/smithy-rs/blob/908dec558e26bbae6fe4b7d9d1c221dd81699b59/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/rustlang/RustWriter.kt) to create a "Rust block" of code. ```kotlin writer.rustBlock("struct Model") { model.fields.forEach { diff --git a/design/src/smithy/recursive_shapes.md b/design/src/smithy/recursive_shapes.md index 1697fb0ddbe0922088dc7870ebb6ebaa3f3b18e9..8dfac6d23dde5d3a3dde52d96a081bc3c7679e42 100644 --- a/design/src/smithy/recursive_shapes.md +++ b/design/src/smithy/recursive_shapes.md @@ -23,7 +23,7 @@ struct IntermediateStructure { = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `main::TopStructure` representable ``` -This occurs because Rust types must be a size known at compile time. The way around this, as the message suggests, is to Box the offending type. `smithy-rs` implements this design in [RecursiveShapeBoxer.kt](https://github.com/awslabs/smithy-rs/blob/main/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/transformers/RecursiveShapeBoxer.kt) +This occurs because Rust types must be a size known at compile time. The way around this, as the message suggests, is to Box the offending type. `smithy-rs` implements this design in [RecursiveShapeBoxer.kt](https://github.com/smithy-lang/smithy-rs/blob/main/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/transformers/RecursiveShapeBoxer.kt) To support this, as the message suggests, we must "`Box`" the offending type. There is a touch of trickiness—only one element in the cycle needs to be boxed, but we need to select it deterministically such that we always pick the same element between multiple codegen runs. To do this the Rust SDK will: diff --git a/design/src/smithy/simple_shapes.md b/design/src/smithy/simple_shapes.md index 9e2c99b434dbf15807e0778d21700678cb07e2d0..45177c4021e237336c76bdfb184a05c06ec90f2c 100644 --- a/design/src/smithy/simple_shapes.md +++ b/design/src/smithy/simple_shapes.md @@ -12,8 +12,8 @@ | double | `f64` | | [bigInteger](#big-numbers) | `BigInteger` (Not implemented yet) | | [bigDecimal](#big-numbers) | `BigDecimal` (Not implemented yet) | -| [timestamp](#timestamps) | [`DateTime`](https://github.com/awslabs/smithy-rs/blob/main/rust-runtime/aws-smithy-types/src/date_time/mod.rs) | -| [document](#documents) | [`Document`](https://github.com/awslabs/smithy-rs/blob/v0.14/rust-runtime/aws-smithy-types/src/lib.rs#L38-L52) | +| [timestamp](#timestamps) | [`DateTime`](https://github.com/smithy-lang/smithy-rs/blob/main/rust-runtime/aws-smithy-types/src/date_time/mod.rs) | +| [document](#documents) | [`Document`](https://github.com/smithy-lang/smithy-rs/blob/v0.14/rust-runtime/aws-smithy-types/src/lib.rs#L38-L52) | ### Big Numbers Rust currently has no standard library or universally accepted large-number crate. Until one is stabilized, a string representation is a reasonable compromise: @@ -25,7 +25,7 @@ pub struct BigDecimal(String); This will enable us to add helpers over time as requested. Users will also be able to define their own conversions into their preferred large-number libraries. -As of 5/23/2021 BigInteger / BigDecimal are not included in AWS models. Implementation is tracked [here](https://github.com/awslabs/smithy-rs/issues/312). +As of 5/23/2021 BigInteger / BigDecimal are not included in AWS models. Implementation is tracked [here](https://github.com/smithy-lang/smithy-rs/issues/312). ### Timestamps [chrono](https://github.com/chronotope/chrono) is the current de facto library for datetime in Rust, but it is pre-1.0. DateTimes are represented by an SDK defined structure modeled on `std::time::Duration` from the Rust standard library. diff --git a/examples/BENCHMARKS.md b/examples/BENCHMARKS.md index bbc33c7b976eac35d71a783ffd9bd2222ea5702f..8caf3a74b06ed9a35e30cd7786b584f4de8ccbf9 100644 --- a/examples/BENCHMARKS.md +++ b/examples/BENCHMARKS.md @@ -14,7 +14,7 @@ using [wrk](https://github.com/wg/wrk). -## [2022-03-04](https://github.com/awslabs/smithy-rs/commit/d823f61156577ab42590709627906d1dc35a5f49) +## [2022-03-04](https://github.com/smithy-lang/smithy-rs/commit/d823f61156577ab42590709627906d1dc35a5f49) The benchmark runs against the `empty_operation()` operation, which is just returning an empty output and can be used to stress test the framework overhead. diff --git a/examples/pokemon-service-client-usage/README.md b/examples/pokemon-service-client-usage/README.md index f2b90eea95239d7b2aa22d3209fe46c10cf27ae2..08021c37e82ef733d303ad0eb9bf79aecead6bc4 100644 --- a/examples/pokemon-service-client-usage/README.md +++ b/examples/pokemon-service-client-usage/README.md @@ -6,14 +6,14 @@ with a Smithy-based service. ## Pre-requisites 1. Build the `pokemon-service-client` and `pokemon-service` by invoking `make` in the - [examples](https://github.com/awslabs/smithy-rs/tree/main/examples) folder. + [examples](https://github.com/smithy-lang/smithy-rs/tree/main/examples) folder. ```console make ``` 2. Run the Pokemon service locally by issuing the following command from the - [examples](https://github.com/awslabs/smithy-rs/tree/main/examples) folder. This + [examples](https://github.com/smithy-lang/smithy-rs/tree/main/examples) folder. This will launch the Smithy-Rs based service on TCP port 13734. ```console @@ -23,7 +23,7 @@ cargo run --bin pokemon-service ## Running the examples You can view a list of examples by running `cargo run --example` from the -[pokemon-service-client-usage](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage) +[pokemon-service-client-usage](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage) folder. To run an example, pass its name to the `cargo run --example` command, e.g.: ```console diff --git a/examples/pokemon-service-client-usage/examples/client-connector.rs b/examples/pokemon-service-client-usage/examples/client-connector.rs index 61efcc0f69a656fb3675bbb00d87c2e4d290b46d..b1a7ecef846522c8497b346b937d09151ea3413d 100644 --- a/examples/pokemon-service-client-usage/examples/client-connector.rs +++ b/examples/pokemon-service-client-usage/examples/client-connector.rs @@ -6,7 +6,7 @@ /// trusted root certificates to use for HTTPs communication. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example client-connector`. diff --git a/examples/pokemon-service-client-usage/examples/custom-header-using-interceptor.rs b/examples/pokemon-service-client-usage/examples/custom-header-using-interceptor.rs index b01d1fe2bb84e5582b54e275456edff181adab3f..997cce306e39f9790eaa359b06a9efd0c8242d0a 100644 --- a/examples/pokemon-service-client-usage/examples/custom-header-using-interceptor.rs +++ b/examples/pokemon-service-client-usage/examples/custom-header-using-interceptor.rs @@ -7,7 +7,7 @@ /// the interceptor. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example custom-header-using-interceptor`. diff --git a/examples/pokemon-service-client-usage/examples/custom-header.rs b/examples/pokemon-service-client-usage/examples/custom-header.rs index 98dc20e2d5bdb17583d55495aad5fa53435ce165..d84432f68c27f8b2258d7387dd7a9b1b2b6d3a12 100644 --- a/examples/pokemon-service-client-usage/examples/custom-header.rs +++ b/examples/pokemon-service-client-usage/examples/custom-header.rs @@ -6,7 +6,7 @@ /// headers in the request. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example custom-header` diff --git a/examples/pokemon-service-client-usage/examples/endpoint-resolver.rs b/examples/pokemon-service-client-usage/examples/endpoint-resolver.rs index d37479fa6cb180cb3dfb07e781c78b1e72d021ae..565efb18acd330b25ebedac66e1ad8a5b89d08ce 100644 --- a/examples/pokemon-service-client-usage/examples/endpoint-resolver.rs +++ b/examples/pokemon-service-client-usage/examples/endpoint-resolver.rs @@ -7,7 +7,7 @@ /// builder. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example endpoint-resolver`. diff --git a/examples/pokemon-service-client-usage/examples/handling-errors.rs b/examples/pokemon-service-client-usage/examples/handling-errors.rs index ee1da30cbb82308b6823767a9b0a6f7e0c770765..af1c230cdcda43e2e3ca74eb10d01916f76c668a 100644 --- a/examples/pokemon-service-client-usage/examples/handling-errors.rs +++ b/examples/pokemon-service-client-usage/examples/handling-errors.rs @@ -7,7 +7,7 @@ /// This example demonstrates how to handle service generated errors. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example handling-errors`. @@ -46,7 +46,7 @@ async fn main() { // The following example sends an incorrect passcode to the operation `get_storage`, // which will return - // [StorageAccessNotAuthorized](https://github.com/awslabs/smithy-rs/blob/main/codegen-core/common-test-models/pokemon.smithy#L48) + // [StorageAccessNotAuthorized](https://github.com/smithy-lang/smithy-rs/blob/main/codegen-core/common-test-models/pokemon.smithy#L48) let response_result = client .get_storage() .user("ash") diff --git a/examples/pokemon-service-client-usage/examples/mock-request.rs b/examples/pokemon-service-client-usage/examples/mock-request.rs index 1206f3e66f7713cbf712e73c9761b22471b0a9db..5afafdaee1454a42fdf2d4b1dfd61fd29b0ffaf1 100644 --- a/examples/pokemon-service-client-usage/examples/mock-request.rs +++ b/examples/pokemon-service-client-usage/examples/mock-request.rs @@ -7,7 +7,7 @@ /// can later be asserted to verify that the correct headers and body were sent to the server. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example mock-request`. diff --git a/examples/pokemon-service-client-usage/examples/response-header-interceptor.rs b/examples/pokemon-service-client-usage/examples/response-header-interceptor.rs index d226ce4a3ddbf3022699ae7d8145064db67c2cb7..9776d5186b8d582792b702903c10887d4c9c3212 100644 --- a/examples/pokemon-service-client-usage/examples/response-header-interceptor.rs +++ b/examples/pokemon-service-client-usage/examples/response-header-interceptor.rs @@ -6,7 +6,7 @@ /// into the output type. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example response-header-interceptor`. diff --git a/examples/pokemon-service-client-usage/examples/retry-classifier.rs b/examples/pokemon-service-client-usage/examples/retry-classifier.rs index 7ff17f0e668b575c47b4dc97821897dbfc2e5f2b..c979bcc5bd4936dd2a6d142abde875cce4cc83f0 100644 --- a/examples/pokemon-service-client-usage/examples/retry-classifier.rs +++ b/examples/pokemon-service-client-usage/examples/retry-classifier.rs @@ -6,7 +6,7 @@ /// which error conditions should be retried. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example retry-classifier`. diff --git a/examples/pokemon-service-client-usage/examples/retry-customize.rs b/examples/pokemon-service-client-usage/examples/retry-customize.rs index 5deb3af0ffad156e06a592993b9eaa607e93d8b1..13c67af4655a76fe258532ec4f58b4c30e422c42 100644 --- a/examples/pokemon-service-client-usage/examples/retry-customize.rs +++ b/examples/pokemon-service-client-usage/examples/retry-customize.rs @@ -5,7 +5,7 @@ /// This example demonstrates how to customize retry settings on a Smithy client. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example retry-customize`. diff --git a/examples/pokemon-service-client-usage/examples/simple-client.rs b/examples/pokemon-service-client-usage/examples/simple-client.rs index e04e2345e8229a9e8db2414ec622159165172257..dbc7303386a6b7aa7aef90e605ecca16fe0a93e3 100644 --- a/examples/pokemon-service-client-usage/examples/simple-client.rs +++ b/examples/pokemon-service-client-usage/examples/simple-client.rs @@ -6,7 +6,7 @@ /// [operation](https://smithy.io/2.0/spec/idl.html?highlight=operation#operation-shape). /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example simple-client`. diff --git a/examples/pokemon-service-client-usage/examples/timeout-config.rs b/examples/pokemon-service-client-usage/examples/timeout-config.rs index cbfbb8e7e45fe21e22cedc002f7fb22659bd376d..717961fb96a269ba47cea58411c11bed7079827d 100644 --- a/examples/pokemon-service-client-usage/examples/timeout-config.rs +++ b/examples/pokemon-service-client-usage/examples/timeout-config.rs @@ -6,7 +6,7 @@ /// and operation related timeouts on the client. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example timeout-config` diff --git a/examples/pokemon-service-client-usage/examples/trace-serialize.rs b/examples/pokemon-service-client-usage/examples/trace-serialize.rs index 7826679e2ed5f91b0d228f7a23eb63d827f4912f..069aebe831ee6d8d1decd844ddb1b5b61633f89c 100644 --- a/examples/pokemon-service-client-usage/examples/trace-serialize.rs +++ b/examples/pokemon-service-client-usage/examples/trace-serialize.rs @@ -9,7 +9,7 @@ /// purposes and may be useful in debugging scenarios. Please don't use this as-is in production. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example trace-serialize`. diff --git a/examples/pokemon-service-client-usage/examples/use-config-bag.rs b/examples/pokemon-service-client-usage/examples/use-config-bag.rs index 32fc40723fda8f4fdbf6fda1201c8d1ac87e1ceb..9452051a6dac9d92040ed1bf41c5541be278ee51 100644 --- a/examples/pokemon-service-client-usage/examples/use-config-bag.rs +++ b/examples/pokemon-service-client-usage/examples/use-config-bag.rs @@ -6,7 +6,7 @@ /// state from one interceptor to the next. /// /// The example assumes that the Pokémon service is running on the localhost on TCP port 13734. -/// Refer to the [README.md](https://github.com/awslabs/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) +/// Refer to the [README.md](https://github.com/smithy-lang/smithy-rs/tree/main/examples/pokemon-service-client-usage/README.md) /// file for instructions on how to launch the service locally. /// /// The example can be run using `cargo run --example use-config-bag`. diff --git a/gradle.properties b/gradle.properties index 738cafd150f058ab88963685c5d981c830d9e58b..edbcde3ad7b76555bc07100820de4967b57e8014 100644 --- a/gradle.properties +++ b/gradle.properties @@ -35,7 +35,7 @@ kotestVersion=5.2.3 # Avoid registering dependencies/plugins/tasks that are only used for testing purposes isTestingEnabled=true -# TODO(https://github.com/awslabs/smithy-rs/issues/1068): Once doc normalization +# TODO(https://github.com/smithy-lang/smithy-rs/issues/1068): Once doc normalization # is completed, warnings can be prohibited in rustdoc. # # defaultRustDocFlags=-D warnings diff --git a/rust-runtime/aws-smithy-async/Cargo.toml b/rust-runtime/aws-smithy-async/Cargo.toml index 9b2535dd12d9511e45ed20216c0e2524a768bd07..6e1a5f3c4360ef80c2ce6b9f5368c8232cc2e61b 100644 --- a/rust-runtime/aws-smithy-async/Cargo.toml +++ b/rust-runtime/aws-smithy-async/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "John DiSanti -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-checksums/Cargo.toml b/rust-runtime/aws-smithy-checksums/Cargo.toml index b02b34cc09245bd446e3b2955d2447c5a6217bf2..2485412d72d0d723b0f851097b915522b3dd9e32 100644 --- a/rust-runtime/aws-smithy-checksums/Cargo.toml +++ b/rust-runtime/aws-smithy-checksums/Cargo.toml @@ -8,7 +8,7 @@ authors = [ description = "Checksum calculation and verification callbacks" edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/rust-runtime/aws-smithy-checksums/README.md b/rust-runtime/aws-smithy-checksums/README.md index 3ad53131f6c08e2e2f1536f5519ff7318094ee45..94909aa8befc6b081a94cea4e43479c287c5bc2c 100644 --- a/rust-runtime/aws-smithy-checksums/README.md +++ b/rust-runtime/aws-smithy-checksums/README.md @@ -1,7 +1,7 @@ # aws-smithy-checksum-callbacks -Checksum calculation and verification callbacks for HTTP request and response bodies sent by service clients generated by [smithy-rs](https://github.com/awslabs/smithy-rs). +Checksum calculation and verification callbacks for HTTP request and response bodies sent by service clients generated by [smithy-rs](https://github.com/smithy-lang/smithy-rs). -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-checksums/src/lib.rs b/rust-runtime/aws-smithy-checksums/src/lib.rs index 9207cc3ee6f1ce8b8cad0c6f13fd5e53596e1c95..372bc467e43e846b9c77c58afd7b1b841ebbe667 100644 --- a/rust-runtime/aws-smithy-checksums/src/lib.rs +++ b/rust-runtime/aws-smithy-checksums/src/lib.rs @@ -328,7 +328,7 @@ mod tests { } // TODO(https://github.com/zowens/crc32c/issues/34) - // TODO(https://github.com/awslabs/smithy-rs/issues/1857) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1857) #[cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))] #[test] fn test_crc32c_checksum() { diff --git a/rust-runtime/aws-smithy-client/Cargo.toml b/rust-runtime/aws-smithy-client/Cargo.toml index 0eb190b56dcc55d828606fbaa7d2c7cdfb819c9c..a480618b617ff23c47a42598d42d25dd69c45347 100644 --- a/rust-runtime/aws-smithy-client/Cargo.toml +++ b/rust-runtime/aws-smithy-client/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Russell Cohen -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-eventstream/Cargo.toml b/rust-runtime/aws-smithy-eventstream/Cargo.toml index c6a3e6782f10ae34ec3bee986d30e158b15662ff..6923fb9d7a198cc1cee0cdaab1a03994c5f14f7c 100644 --- a/rust-runtime/aws-smithy-eventstream/Cargo.toml +++ b/rust-runtime/aws-smithy-eventstream/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "John DiSanti -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-eventstream/external-types.toml b/rust-runtime/aws-smithy-eventstream/external-types.toml index 2e54673ff5dfc52d2a77df0b9a5a395eb9e7cc2d..b6185a2ebf00d63f842cf7dd864ad19e00117c5d 100644 --- a/rust-runtime/aws-smithy-eventstream/external-types.toml +++ b/rust-runtime/aws-smithy-eventstream/external-types.toml @@ -4,6 +4,6 @@ allowed_external_types = [ "bytes::buf::buf_mut::BufMut", "bytes::bytes::Bytes", - # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `derive-arbitrary` feature + # TODO(https://github.com/smithy-lang/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `derive-arbitrary` feature "arbitrary::Arbitrary", ] diff --git a/rust-runtime/aws-smithy-http-auth/Cargo.toml b/rust-runtime/aws-smithy-http-auth/Cargo.toml index 4fef70bc0d63ceedda0f57fcec77671dd0076fbb..67de7ed7e1e1c36e7e4b658147af00a16b6a189f 100644 --- a/rust-runtime/aws-smithy-http-auth/Cargo.toml +++ b/rust-runtime/aws-smithy-http-auth/Cargo.toml @@ -8,7 +8,7 @@ authors = [ description = "This crate is no longer used by smithy-rs and is deprecated." edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [dependencies] diff --git a/rust-runtime/aws-smithy-http-auth/README.md b/rust-runtime/aws-smithy-http-auth/README.md index 38d5d2dc0b179ff860bd20b3b245bd5bba0f38f8..719b5202d37f9fab4273cbe9d1d24956f79c7ec6 100644 --- a/rust-runtime/aws-smithy-http-auth/README.md +++ b/rust-runtime/aws-smithy-http-auth/README.md @@ -3,5 +3,5 @@ This crate is no longer used by smithy-rs and is deprecated. Its equivalent logic is now in aws-smithy-runtime-api and aws-smithy-runtime. -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-http-server-python/Cargo.toml b/rust-runtime/aws-smithy-http-server-python/Cargo.toml index ebf17bd06581e504adf7d3de014f794278b4fc66..188d5f5af2dd0ed18b5ba0938193d341dac4bec0 100644 --- a/rust-runtime/aws-smithy-http-server-python/Cargo.toml +++ b/rust-runtime/aws-smithy-http-server-python/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.0-smithy-rs-head" authors = ["Smithy Rust Server "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" keywords = ["smithy", "framework", "web", "api", "aws"] categories = ["asynchronous", "web-programming", "api-bindings"] description = """ diff --git a/rust-runtime/aws-smithy-http-server-python/README.md b/rust-runtime/aws-smithy-http-server-python/README.md index da3dc2c1316d5e2b494cedc66ec2a317be0b106a..723a1b38aade1ab8aa51eaee65184948c2fc405e 100644 --- a/rust-runtime/aws-smithy-http-server-python/README.md +++ b/rust-runtime/aws-smithy-http-server-python/README.md @@ -3,5 +3,5 @@ Server libraries for smithy-rs generated servers, targeting pure Python business logic. -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-http-server-python/src/error.rs b/rust-runtime/aws-smithy-http-server-python/src/error.rs index 2cc308fea57bb6af869850c325069d03467dcd55..020bee15c19edefd1a3043e2d1ada9efaf13eb82 100644 --- a/rust-runtime/aws-smithy-http-server-python/src/error.rs +++ b/rust-runtime/aws-smithy-http-server-python/src/error.rs @@ -86,7 +86,7 @@ impl IntoResponse for PyMiddlewareException { .header("Content-Type", "application/json") .header("X-Amzn-Errortype", "MiddlewareException") .body(to_boxed(self.json_body())) - .expect("invalid HTTP response for `MiddlewareException`; please file a bug report under https://github.com/awslabs/smithy-rs/issues") + .expect("invalid HTTP response for `MiddlewareException`; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues") } } @@ -96,7 +96,7 @@ impl IntoResponse for PyMiddlewareException { .status(self.status_code) .header("Content-Type", "application/xml") .body(to_boxed(self.xml_body())) - .expect("invalid HTTP response for `MiddlewareException`; please file a bug report under https://github.com/awslabs/smithy-rs/issues") + .expect("invalid HTTP response for `MiddlewareException`; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues") } } @@ -107,7 +107,7 @@ impl IntoResponse for PyMiddlewareException { .header("Content-Type", "application/x-amz-json-1.0") // See https://awslabs.github.io/smithy/1.0/spec/aws/aws-json-1_0-protocol.html#empty-body-serialization .body(to_boxed(self.json_body())) - .expect("invalid HTTP response for `MiddlewareException`; please file a bug report under https://github.com/awslabs/smithy-rs/issues") + .expect("invalid HTTP response for `MiddlewareException`; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues") } } @@ -118,7 +118,7 @@ impl IntoResponse for PyMiddlewareException { .header("Content-Type", "application/x-amz-json-1.1") // See https://awslabs.github.io/smithy/1.0/spec/aws/aws-json-1_1-protocol.html#empty-body-serialization .body(to_boxed(self.json_body())) - .expect("invalid HTTP response for `MiddlewareException`; please file a bug report under https://github.com/awslabs/smithy-rs/issues") + .expect("invalid HTTP response for `MiddlewareException`; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues") } } diff --git a/rust-runtime/aws-smithy-http-server-typescript/Cargo.toml b/rust-runtime/aws-smithy-http-server-typescript/Cargo.toml index 1147d0da9834cee6124e67e28b4e1d233dfea47d..ba1fa436df213ebfeec493de214de3fc34f4adad 100644 --- a/rust-runtime/aws-smithy-http-server-typescript/Cargo.toml +++ b/rust-runtime/aws-smithy-http-server-typescript/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.0-smithy-rs-head" authors = ["Smithy Rust Server "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" keywords = ["smithy", "framework", "web", "api", "aws", "typescript"] categories = ["asynchronous", "web-programming", "api-bindings"] description = """ diff --git a/rust-runtime/aws-smithy-http-server-typescript/README.md b/rust-runtime/aws-smithy-http-server-typescript/README.md index b5d516d1c2b5bb21e7b73c820e4ccd86bdf29e3d..aa2fe18f6a3d10ec05f16f187c4729c0b1aef059 100644 --- a/rust-runtime/aws-smithy-http-server-typescript/README.md +++ b/rust-runtime/aws-smithy-http-server-typescript/README.md @@ -3,5 +3,5 @@ Server libraries for smithy-rs generated servers, targeting pure Typescript business logic. -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-http-server/Cargo.toml b/rust-runtime/aws-smithy-http-server/Cargo.toml index 3193b69e75b1aa365d56c2e2702350e3146b1b7a..bfaa7fb3141bc8d7870e4b5a8129df0941509c27 100644 --- a/rust-runtime/aws-smithy-http-server/Cargo.toml +++ b/rust-runtime/aws-smithy-http-server/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.0-smithy-rs-head" authors = ["Smithy Rust Server "] edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" keywords = ["smithy", "framework", "web", "api", "aws"] categories = ["asynchronous", "web-programming", "api-bindings"] description = """ diff --git a/rust-runtime/aws-smithy-http-server/README.md b/rust-runtime/aws-smithy-http-server/README.md index 2e0ddc8860ca09ffa20dc9efc03c7da7845b8912..eaed6915b3b0bcf4796fe02ce458359f4f6b2aaa 100644 --- a/rust-runtime/aws-smithy-http-server/README.md +++ b/rust-runtime/aws-smithy-http-server/README.md @@ -3,5 +3,5 @@ Server libraries for smithy-rs generated servers. -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-http-server/src/plugin/either.rs b/rust-runtime/aws-smithy-http-server/src/plugin/either.rs index d0b6192ba0899a25fcea322fccd048c7d1af62c8..d0c2da70953396be6bf3c4de568f0dd0f065e459 100644 --- a/rust-runtime/aws-smithy-http-server/src/plugin/either.rs +++ b/rust-runtime/aws-smithy-http-server/src/plugin/either.rs @@ -15,7 +15,7 @@ use tower::{Layer, Service}; use super::Plugin; -// TODO(https://github.com/awslabs/smithy-rs/pull/2441#pullrequestreview-1331345692): Seems like +// TODO(https://github.com/smithy-lang/smithy-rs/pull/2441#pullrequestreview-1331345692): Seems like // this type should land in `tower-0.5`. pin_project! { /// Combine two different [`Futures`](std::future::Future)/[`Services`](tower::Service)/ diff --git a/rust-runtime/aws-smithy-http-server/src/protocol/aws_json/router.rs b/rust-runtime/aws-smithy-http-server/src/protocol/aws_json/router.rs index 2cd48f8e612dc65a29d038b5a8add0298591ff63..cba990ffbf3061c293b31e6a97ff3eccf000278b 100644 --- a/rust-runtime/aws-smithy-http-server/src/protocol/aws_json/router.rs +++ b/rust-runtime/aws-smithy-http-server/src/protocol/aws_json/router.rs @@ -38,7 +38,7 @@ pub enum Error { // This constant determines when the `TinyMap` implementation switches from being a `Vec` to a // `HashMap`. This is chosen to be 15 as a result of the discussion around -// https://github.com/awslabs/smithy-rs/pull/1429#issuecomment-1147516546 +// https://github.com/smithy-lang/smithy-rs/pull/1429#issuecomment-1147516546 const ROUTE_CUTOFF: usize = 15; /// A [`Router`] supporting [`AWS JSON 1.0`] and [`AWS JSON 1.1`] protocols. diff --git a/rust-runtime/aws-smithy-http-server/src/protocol/aws_json_10/router.rs b/rust-runtime/aws-smithy-http-server/src/protocol/aws_json_10/router.rs index f3093685e2e0faffbfdb9d29e5f9ab7329dfa3ea..30a28d6255ab782853e915c514bb7b6f0311c6e8 100644 --- a/rust-runtime/aws-smithy-http-server/src/protocol/aws_json_10/router.rs +++ b/rust-runtime/aws-smithy-http-server/src/protocol/aws_json_10/router.rs @@ -23,7 +23,7 @@ impl IntoResponse for Error { UNKNOWN_OPERATION_EXCEPTION.to_string(), )) .body(empty()) - .expect("invalid HTTP response for AWS JSON 1.0 routing error; please file a bug report under https://github.com/awslabs/smithy-rs/issues"), + .expect("invalid HTTP response for AWS JSON 1.0 routing error; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues"), } } } diff --git a/rust-runtime/aws-smithy-http-server/src/protocol/aws_json_11/router.rs b/rust-runtime/aws-smithy-http-server/src/protocol/aws_json_11/router.rs index 898d8c29af07d453c7cb912d5a9a1aa25f623218..5ebd1002f289dc284a3d30441291e234c0074863 100644 --- a/rust-runtime/aws-smithy-http-server/src/protocol/aws_json_11/router.rs +++ b/rust-runtime/aws-smithy-http-server/src/protocol/aws_json_11/router.rs @@ -23,7 +23,7 @@ impl IntoResponse for Error { UNKNOWN_OPERATION_EXCEPTION.to_string(), )) .body(empty()) - .expect("invalid HTTP response for AWS JSON 1.1 routing error; please file a bug report under https://github.com/awslabs/smithy-rs/issues"), + .expect("invalid HTTP response for AWS JSON 1.1 routing error; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues"), } } } diff --git a/rust-runtime/aws-smithy-http-server/src/protocol/mod.rs b/rust-runtime/aws-smithy-http-server/src/protocol/mod.rs index 004d32a38b9fb81eeeccb8bddb6b25e1818f2491..9b3f8a1996a7ff361bfd10c3b7b0715c11db9ef4 100644 --- a/rust-runtime/aws-smithy-http-server/src/protocol/mod.rs +++ b/rust-runtime/aws-smithy-http-server/src/protocol/mod.rs @@ -79,7 +79,7 @@ pub fn content_type_header_classifier( let expected_mime = expected_content_type .parse::() // `expected_content_type` comes from the codegen. - .expect("BUG: MIME parsing failed, `expected_content_type` is not valid. Please file a bug report under https://github.com/awslabs/smithy-rs/issues"); + .expect("BUG: MIME parsing failed, `expected_content_type` is not valid. Please file a bug report under https://github.com/smithy-lang/smithy-rs/issues"); if expected_content_type != found_mime { return Err(MissingContentTypeReason::UnexpectedMimeType { expected_mime: Some(expected_mime), diff --git a/rust-runtime/aws-smithy-http-server/src/protocol/rest_json_1/router.rs b/rust-runtime/aws-smithy-http-server/src/protocol/rest_json_1/router.rs index 76d3d6927783fd03b304be2e98605b7aac901c72..023b43031c80d05a79c1b0be99432a6939827013 100644 --- a/rust-runtime/aws-smithy-http-server/src/protocol/rest_json_1/router.rs +++ b/rust-runtime/aws-smithy-http-server/src/protocol/rest_json_1/router.rs @@ -23,7 +23,7 @@ impl IntoResponse for Error { UNKNOWN_OPERATION_EXCEPTION.to_string(), )) .body(crate::body::to_boxed("{}")) - .expect("invalid HTTP response for REST JSON 1 routing error; please file a bug report under https://github.com/awslabs/smithy-rs/issues"), + .expect("invalid HTTP response for REST JSON 1 routing error; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues"), Error::MethodNotAllowed => method_disallowed(), } } diff --git a/rust-runtime/aws-smithy-http-server/src/protocol/rest_xml/router.rs b/rust-runtime/aws-smithy-http-server/src/protocol/rest_xml/router.rs index d8a0905a7f7ec3fa46b3b36caa48d73968915b4e..529a3d19a2aaf99a0396bf894fb2511cc19072e5 100644 --- a/rust-runtime/aws-smithy-http-server/src/protocol/rest_xml/router.rs +++ b/rust-runtime/aws-smithy-http-server/src/protocol/rest_xml/router.rs @@ -24,7 +24,7 @@ impl IntoResponse for Error { UNKNOWN_OPERATION_EXCEPTION.to_string(), )) .body(empty()) - .expect("invalid HTTP response for REST XML routing error; please file a bug report under https://github.com/awslabs/smithy-rs/issues"), + .expect("invalid HTTP response for REST XML routing error; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues"), Error::MethodNotAllowed => method_disallowed(), } } diff --git a/rust-runtime/aws-smithy-http-server/src/request/connect_info.rs b/rust-runtime/aws-smithy-http-server/src/request/connect_info.rs index 7a48e7042160af26862fe0342a282dfe8d3fa85d..92a35e40173a9836388c92f018b8c95dd108f935 100644 --- a/rust-runtime/aws-smithy-http-server/src/request/connect_info.rs +++ b/rust-runtime/aws-smithy-http-server/src/request/connect_info.rs @@ -7,7 +7,7 @@ //! [`IntoMakeServiceWithConnectInfo`](crate::routing::IntoMakeServiceWithConnectInfo) is used. [`ConnectInfo`]'s //! [`FromParts`] implementation allows it to be extracted from the [`http::Request`]. //! -//! The [`example service`](https://github.com/awslabs/smithy-rs/blob/main/examples/pokemon-service/src/main.rs) +//! The [`example service`](https://github.com/smithy-lang/smithy-rs/blob/main/examples/pokemon-service/src/main.rs) //! illustrates the use of [`IntoMakeServiceWithConnectInfo`](crate::routing::IntoMakeServiceWithConnectInfo) //! and [`ConnectInfo`] with a service builder. diff --git a/rust-runtime/aws-smithy-http-server/src/request/mod.rs b/rust-runtime/aws-smithy-http-server/src/request/mod.rs index be507b804fc3fc1d22ae46a3bdc7917fff1ae613..c33b151ef9aba448dd0c4a374dcf208f6f1d9390 100644 --- a/rust-runtime/aws-smithy-http-server/src/request/mod.rs +++ b/rust-runtime/aws-smithy-http-server/src/request/mod.rs @@ -34,7 +34,7 @@ //! Types and traits for extracting data from requests. //! -//! See [Accessing Un-modelled data](https://github.com/awslabs/smithy-rs/blob/main/design/src/server/from_parts.md) +//! See [Accessing Un-modelled data](https://github.com/smithy-lang/smithy-rs/blob/main/design/src/server/from_parts.md) //! a comprehensive overview. //! //! The following implementations exist: diff --git a/rust-runtime/aws-smithy-http-server/src/routing/lambda_handler.rs b/rust-runtime/aws-smithy-http-server/src/routing/lambda_handler.rs index 44704e2dd1418fc0a877d622b7dadb9868cdaf34..5c44b01ebd475ba850ee9325b2836b26fe97b78f 100644 --- a/rust-runtime/aws-smithy-http-server/src/routing/lambda_handler.rs +++ b/rust-runtime/aws-smithy-http-server/src/routing/lambda_handler.rs @@ -51,7 +51,7 @@ where } /// Converts a `lambda_http::Request` into a `http::Request` -/// Issue: +/// Issue: /// /// While converting the event the [API Gateway Stage] portion of the URI /// is removed from the uri that gets returned as a new `http::Request`. diff --git a/rust-runtime/aws-smithy-http-server/src/routing/request_spec.rs b/rust-runtime/aws-smithy-http-server/src/routing/request_spec.rs index 3ae722f5fd62d4b328bbdcc6df19709bb92e9fe0..472f66873fe72739182ba49070ee10ab3a805a62 100644 --- a/rust-runtime/aws-smithy-http-server/src/routing/request_spec.rs +++ b/rust-runtime/aws-smithy-http-server/src/routing/request_spec.rs @@ -67,7 +67,7 @@ pub struct UriSpec { } impl UriSpec { - // TODO(https://github.com/awslabs/smithy-rs/issues/950): When we add support for the endpoint + // TODO(https://github.com/smithy-lang/smithy-rs/issues/950): When we add support for the endpoint // trait, this constructor will take in a first argument `host_prefix`. pub fn new(path_and_query: PathAndQuerySpec) -> Self { UriSpec { @@ -115,7 +115,7 @@ impl From<&PathSpec> for Regex { .fold(String::new(), |a, b| a + sep + &b) }; - Regex::new(&format!("^{}$", re)).expect("invalid `Regex` from `PathSpec`; please file a bug report under https://github.com/awslabs/smithy-rs/issues") + Regex::new(&format!("^{}$", re)).expect("invalid `Regex` from `PathSpec`; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues") } } @@ -150,7 +150,7 @@ impl RequestSpec { /// kind of conflicts. However, the Smithy CLI does allow _other_ conflicting patterns to /// coexist, e.g. `/` and `/{label}`. We therefore have to take a stance on (1), since if we /// route arbitrarily [we render basic usage - /// impossible](https://github.com/awslabs/smithy-rs/issues/1009). + /// impossible](https://github.com/smithy-lang/smithy-rs/issues/1009). /// So this ranking of routes implements some basic pattern conflict disambiguation with some /// common sense. It's also the same behavior that [the TypeScript sSDK is implementing]. /// diff --git a/rust-runtime/aws-smithy-http-server/src/runtime_error.rs b/rust-runtime/aws-smithy-http-server/src/runtime_error.rs index 7348f5d628f2820d8dd3cd1be71cb988eba9ba58..86350fe4c90886860723f1b099ff69d9f69681ca 100644 --- a/rust-runtime/aws-smithy-http-server/src/runtime_error.rs +++ b/rust-runtime/aws-smithy-http-server/src/runtime_error.rs @@ -10,4 +10,4 @@ /// [`crate::protocol::rest_json_1::runtime_error::RuntimeError::InternalFailure`] variant. pub struct InternalFailureException; -pub const INVALID_HTTP_RESPONSE_FOR_RUNTIME_ERROR_PANIC_MESSAGE: &str = "invalid HTTP response for `RuntimeError`; please file a bug report under https://github.com/awslabs/smithy-rs/issues"; +pub const INVALID_HTTP_RESPONSE_FOR_RUNTIME_ERROR_PANIC_MESSAGE: &str = "invalid HTTP response for `RuntimeError`; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues"; diff --git a/rust-runtime/aws-smithy-http-tower/Cargo.toml b/rust-runtime/aws-smithy-http-tower/Cargo.toml index 51d1d9accae3468b12b917dfe695bc89a716f4e4..f661b1283b5219bb8360e44b79831a6f5a631595 100644 --- a/rust-runtime/aws-smithy-http-tower/Cargo.toml +++ b/rust-runtime/aws-smithy-http-tower/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Russell Cohen -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-http/Cargo.toml b/rust-runtime/aws-smithy-http/Cargo.toml index 5aeb1c18e546e8a6b2e69333d55fc38938edd83c..a5bc6f4d647bda72c4085c9b6d2bb31926900280 100644 --- a/rust-runtime/aws-smithy-http/Cargo.toml +++ b/rust-runtime/aws-smithy-http/Cargo.toml @@ -8,7 +8,7 @@ authors = [ description = "Smithy HTTP logic for smithy-rs." edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [features] event-stream = ["aws-smithy-eventstream"] diff --git a/rust-runtime/aws-smithy-http/README.md b/rust-runtime/aws-smithy-http/README.md index 43b690a7993e58537cf8a6bb8f208179998b55f6..0631f8a788c0a9b8e3514084182c67c13eb2dd59 100644 --- a/rust-runtime/aws-smithy-http/README.md +++ b/rust-runtime/aws-smithy-http/README.md @@ -1,6 +1,6 @@ # aws-smithy-http -Core HTTP primitives for service clients generated by [smithy-rs](https://github.com/awslabs/smithy-rs) including: +Core HTTP primitives for service clients generated by [smithy-rs](https://github.com/smithy-lang/smithy-rs) including: - HTTP Body implementation - Endpoint support - HTTP header deserialization @@ -8,5 +8,5 @@ Core HTTP primitives for service clients generated by [smithy-rs](https://github - `ByteStream`: _(supported on crate feature `rt-tokio` only)_ a misuse-resistant abstraction for streaming binary data -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-http/external-types.toml b/rust-runtime/aws-smithy-http/external-types.toml index 06c1e82b0f90b6db594c76acc079f0f9432977e4..1e95ac805147002343050ffa3b301e87a453ab91 100644 --- a/rust-runtime/aws-smithy-http/external-types.toml +++ b/rust-runtime/aws-smithy-http/external-types.toml @@ -13,9 +13,9 @@ allowed_external_types = [ "http::response::Response", "http::uri::Uri", - # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `event-stream` feature + # TODO(https://github.com/smithy-lang/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `event-stream` feature "futures_core::stream::Stream", - # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `event-stream` feature + # TODO(https://github.com/smithy-lang/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `event-stream` feature "aws_smithy_eventstream::*", ] diff --git a/rust-runtime/aws-smithy-http/src/lib.rs b/rust-runtime/aws-smithy-http/src/lib.rs index 6a77d080439032b39c31eaa9a8a826a702bcbaf7..13318a5e99688df6ff666298a38c4c941dc972a8 100644 --- a/rust-runtime/aws-smithy-http/src/lib.rs +++ b/rust-runtime/aws-smithy-http/src/lib.rs @@ -10,7 +10,7 @@ rust_2018_idioms )] -//! Core HTTP primitives for service clients generated by [smithy-rs](https://github.com/awslabs/smithy-rs) including: +//! Core HTTP primitives for service clients generated by [smithy-rs](https://github.com/smithy-lang/smithy-rs) including: //! - HTTP Body implementation //! - Endpoint support //! - HTTP header deserialization diff --git a/rust-runtime/aws-smithy-json/Cargo.toml b/rust-runtime/aws-smithy-json/Cargo.toml index 3ad4d2225f6400e80bc94f819a5a74a0fc13330f..44745d6c44acb2967b40c82beaed8287c972a912 100644 --- a/rust-runtime/aws-smithy-json/Cargo.toml +++ b/rust-runtime/aws-smithy-json/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "John DiSanti -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-protocol-test/Cargo.toml b/rust-runtime/aws-smithy-protocol-test/Cargo.toml index e32a2434b79ae4109d03fcd69c66f8b4092da8bd..7d16494e061db5934f30154db0d530bae64ff340 100644 --- a/rust-runtime/aws-smithy-protocol-test/Cargo.toml +++ b/rust-runtime/aws-smithy-protocol-test/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Russell Cohen -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-query/Cargo.toml b/rust-runtime/aws-smithy-query/Cargo.toml index a4f517ae2a21a4860eef4db5818b46645a82464f..552c024feb374a29bf50eeb25dd577357a9bb78d 100644 --- a/rust-runtime/aws-smithy-query/Cargo.toml +++ b/rust-runtime/aws-smithy-query/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "John DiSanti -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-runtime-api/Cargo.toml b/rust-runtime/aws-smithy-runtime-api/Cargo.toml index b936ccdbc0d000ba9d44b8c8c294d3efbf945f1f..4b7963e2495047fb69132ca0c2f0d59d5c1a04df 100644 --- a/rust-runtime/aws-smithy-runtime-api/Cargo.toml +++ b/rust-runtime/aws-smithy-runtime-api/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Zelda Hessler -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-runtime-api/src/lib.rs b/rust-runtime/aws-smithy-runtime-api/src/lib.rs index 9a7897d6dcf807155b27c31bd28ecac4e9a38f66..3a96c8d07a761ecaaccd300b1426e77f5ce5309f 100644 --- a/rust-runtime/aws-smithy-runtime-api/src/lib.rs +++ b/rust-runtime/aws-smithy-runtime-api/src/lib.rs @@ -18,7 +18,7 @@ //! for anyone writing a library for others to use with their generated clients. //! //! If you're needing to depend on this and you're not writing a library for Smithy -//! generated clients, then please file an issue on [smithy-rs](https://github.com/awslabs/smithy-rs) +//! generated clients, then please file an issue on [smithy-rs](https://github.com/smithy-lang/smithy-rs) //! as we likely missed re-exporting one of the APIs. //! //! All client-specific code is in the [`client`](crate::client) root level module diff --git a/rust-runtime/aws-smithy-runtime-api/src/shared.rs b/rust-runtime/aws-smithy-runtime-api/src/shared.rs index 80b4f68ebeb05cd2b280d4ef12eb82b08afa46e1..cd15a135062d77f3d458a5a0088ec98325190a41 100644 --- a/rust-runtime/aws-smithy-runtime-api/src/shared.rs +++ b/rust-runtime/aws-smithy-runtime-api/src/shared.rs @@ -181,7 +181,7 @@ macro_rules! impl_shared_conversions { }; } -// TODO(https://github.com/awslabs/smithy-rs/issues/3016): Move these impls once aws-smithy-async is merged into aws-smithy-runtime-api +// TODO(https://github.com/smithy-lang/smithy-rs/issues/3016): Move these impls once aws-smithy-async is merged into aws-smithy-runtime-api mod async_impls { use aws_smithy_async::rt::sleep::{AsyncSleep, SharedAsyncSleep}; use aws_smithy_async::time::{SharedTimeSource, TimeSource}; diff --git a/rust-runtime/aws-smithy-runtime/Cargo.toml b/rust-runtime/aws-smithy-runtime/Cargo.toml index c0dbfa5c4076f2f0c8f3fcebba751140f5bba2b8..e33b334d77b69303ed324e555b6b6d8153774213 100644 --- a/rust-runtime/aws-smithy-runtime/Cargo.toml +++ b/rust-runtime/aws-smithy-runtime/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Zelda Hessler -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-runtime/external-types.toml b/rust-runtime/aws-smithy-runtime/external-types.toml index 35ba98d12c7015bee63c1e176977e2b30d5617a9..0c0d03c30573b4c5cf374f105c5c4eb2e89f756c 100644 --- a/rust-runtime/aws-smithy-runtime/external-types.toml +++ b/rust-runtime/aws-smithy-runtime/external-types.toml @@ -13,19 +13,19 @@ allowed_external_types = [ # Used for creating hyper connectors "tower_service::Service", - # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `test-util` feature + # TODO(https://github.com/smithy-lang/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `test-util` feature "aws_smithy_protocol_test::MediaType", "bytes::bytes::Bytes", "serde::ser::Serialize", "serde::de::Deserialize", "hyper::client::connect::dns::Name", - # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `connector-hyper-0-14-x` feature + # TODO(https://github.com/smithy-lang/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `connector-hyper-0-14-x` feature "hyper::client::client::Builder", "hyper::client::connect::Connection", "tokio::io::async_read::AsyncRead", "tokio::io::async_write::AsyncWrite", - # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `http-0-x` feature + # TODO(https://github.com/smithy-lang/smithy-rs/issues/1193): Once tooling permits it, only allow the following types in the `http-0-x` feature "http_body::Body" ] diff --git a/rust-runtime/aws-smithy-runtime/src/client/http/connection_poisoning.rs b/rust-runtime/aws-smithy-runtime/src/client/http/connection_poisoning.rs index 094da91889a1228f3d14149ddec4c95910d8d44b..6c3891a0db10d5decfa4ea8a808f269a7fb749e5 100644 --- a/rust-runtime/aws-smithy-runtime/src/client/http/connection_poisoning.rs +++ b/rust-runtime/aws-smithy-runtime/src/client/http/connection_poisoning.rs @@ -31,7 +31,7 @@ use tracing::{debug, error}; /// will call a `.poison` method on it, signalling that the connection should be dropped. It is /// up to the connection implementer to handle this. /// -/// [`HyperConnector`]: https://github.com/awslabs/smithy-rs/blob/26a914ece072bba2dd9b5b49003204b70e7666ac/rust-runtime/aws-smithy-runtime/src/client/http/hyper_014.rs#L347 +/// [`HyperConnector`]: https://github.com/smithy-lang/smithy-rs/blob/26a914ece072bba2dd9b5b49003204b70e7666ac/rust-runtime/aws-smithy-runtime/src/client/http/hyper_014.rs#L347 #[non_exhaustive] #[derive(Debug, Default)] pub struct ConnectionPoisoningInterceptor {} diff --git a/rust-runtime/aws-smithy-runtime/src/client/http/hyper_014.rs b/rust-runtime/aws-smithy-runtime/src/client/http/hyper_014.rs index d1393e446b2afc24dfcf490dba1ec291ebb6531a..0eb03ae474b86511aa4537b3fb37c3c698a94dc3 100644 --- a/rust-runtime/aws-smithy-runtime/src/client/http/hyper_014.rs +++ b/rust-runtime/aws-smithy-runtime/src/client/http/hyper_014.rs @@ -57,7 +57,7 @@ mod default_connector { ]) .with_safe_default_kx_groups() .with_safe_default_protocol_versions() - .expect("Error with the TLS configuration. Please file a bug report under https://github.com/awslabs/smithy-rs/issues.") + .expect("Error with the TLS configuration. Please file a bug report under https://github.com/smithy-lang/smithy-rs/issues.") .with_native_roots() .with_no_client_auth() ) diff --git a/rust-runtime/aws-smithy-types-convert/Cargo.toml b/rust-runtime/aws-smithy-types-convert/Cargo.toml index 4fa2b9d1073d25154c4a5bae02e8b56ceffd97c6..e205cf446ffa0b7f0dfa0aac348be9d10fb0bd63 100644 --- a/rust-runtime/aws-smithy-types-convert/Cargo.toml +++ b/rust-runtime/aws-smithy-types-convert/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team "] description = "Conversion of types from aws-smithy-types to other libraries." edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [features] convert-chrono = ["aws-smithy-types", "chrono"] diff --git a/rust-runtime/aws-smithy-types-convert/README.md b/rust-runtime/aws-smithy-types-convert/README.md index de0d5614c607eeb335b15a7053ee95452a2c3e96..8fa07cac82e0d5a8eb572fac2d67462a683184ca 100644 --- a/rust-runtime/aws-smithy-types-convert/README.md +++ b/rust-runtime/aws-smithy-types-convert/README.md @@ -21,5 +21,5 @@ _Note:_ Conversions to and from [`SystemTime`](https://doc.rust-lang.org/std/tim into [`aws-smithy-types`](https://docs.rs/aws-smithy-types/0.30.0-alpha/aws_smithy_types/date_time/struct.DateTime.html#impl-From%3CSystemTime%3E). -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-types/Cargo.toml b/rust-runtime/aws-smithy-types/Cargo.toml index 8c8f29000560becbc2668669c8389b86a471580c..1f2fae9676558d13c7f83f2c8ff7afcc6d8c25e4 100644 --- a/rust-runtime/aws-smithy-types/Cargo.toml +++ b/rust-runtime/aws-smithy-types/Cargo.toml @@ -8,7 +8,7 @@ authors = [ description = "Types for smithy-rs codegen." edition = "2021" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [features] byte-stream-poll-next = [] diff --git a/rust-runtime/aws-smithy-types/README.md b/rust-runtime/aws-smithy-types/README.md index f38b39d2f086179db1aff15c4877efb3f7aa1a29..11a58366ab611dc16ad8f9abb87bc0278cc13d3f 100644 --- a/rust-runtime/aws-smithy-types/README.md +++ b/rust-runtime/aws-smithy-types/README.md @@ -1,9 +1,9 @@ # Fundamental Types for Smithy Services This crate implements fundamental types shared across all service clients generated -by [smithy-rs](https://github.com/awslabs/smithy-rs). Generally, you should not need to take a direct dependency on this +by [smithy-rs](https://github.com/smithy-lang/smithy-rs). Generally, you should not need to take a direct dependency on this crate as service clients should publicly re-export the types when used. -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/aws-smithy-types/external-types.toml b/rust-runtime/aws-smithy-types/external-types.toml index d8051f92d01ee62b0e3456c6a0ec3cf8b4e36724..0492777b52b059fb7e5c93e6c9d2d9a740a0a8e4 100644 --- a/rust-runtime/aws-smithy-types/external-types.toml +++ b/rust-runtime/aws-smithy-types/external-types.toml @@ -2,13 +2,13 @@ allowed_external_types = [ "bytes::bytes::Bytes", "bytes::buf::buf_impl::Buf", - # TODO(https://github.com/awslabs/smithy-rs/issues/2412): Support cargo-features for cargo-check-external-types + # TODO(https://github.com/smithy-lang/smithy-rs/issues/2412): Support cargo-features for cargo-check-external-types "http_body::Body", "hyper::body::body::Body", - # TODO(https://github.com/awslabs/smithy-rs/issues/2412): Support cargo-features for cargo-check-external-types + # TODO(https://github.com/smithy-lang/smithy-rs/issues/2412): Support cargo-features for cargo-check-external-types "tokio::io::async_buf_read::AsyncBufRead", - # TODO(https://github.com/awslabs/smithy-rs/issues/2412): Support cargo-features for cargo-check-external-types + # TODO(https://github.com/smithy-lang/smithy-rs/issues/2412): Support cargo-features for cargo-check-external-types "tokio::fs::file::File", ] diff --git a/rust-runtime/aws-smithy-types/src/date_time/mod.rs b/rust-runtime/aws-smithy-types/src/date_time/mod.rs index c412be065e6acfc8e5c02f716d2a8b78cbf06415..19736dc86a9c7776e75b9d4c58027f16fc072a75 100644 --- a/rust-runtime/aws-smithy-types/src/date_time/mod.rs +++ b/rust-runtime/aws-smithy-types/src/date_time/mod.rs @@ -566,7 +566,7 @@ mod test { assert!(DateTime::from_nanos(10_000_000_000_000_000_000_999_999_999_i128).is_err()); } - // TODO(https://github.com/awslabs/smithy-rs/issues/1857) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/1857) #[cfg(not(any(target_arch = "powerpc", target_arch = "x86")))] #[test] fn system_time_conversions() { diff --git a/rust-runtime/aws-smithy-xml/Cargo.toml b/rust-runtime/aws-smithy-xml/Cargo.toml index 1563fa0ed764e78e1336473bf8a59f10ae8f7f3e..49d86196c243427413b0678d35e5fa81a9c75774 100644 --- a/rust-runtime/aws-smithy-xml/Cargo.toml +++ b/rust-runtime/aws-smithy-xml/Cargo.toml @@ -5,7 +5,7 @@ authors = ["AWS Rust SDK Team ", "Russell Cohen -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/rust-runtime/inlineable/Cargo.toml b/rust-runtime/inlineable/Cargo.toml index fd460dc08f533b11a9db688017aa3977455684b3..c706a2539dbf98ad63861f352616de6e1f68479d 100644 --- a/rust-runtime/inlineable/Cargo.toml +++ b/rust-runtime/inlineable/Cargo.toml @@ -9,7 +9,7 @@ are to allow this crate to be compilable and testable in isolation, no client co """ license = "Apache-2.0" publish = false -repository = "https://github.com/awslabs/smithy-rs" +repository = "https://github.com/smithy-lang/smithy-rs" [features] # this allows the tests to be excluded from downstream crates to keep dependencies / test times reasonable (e.g. no proptests) diff --git a/rust-runtime/inlineable/README.md b/rust-runtime/inlineable/README.md index b14c2d9bfd7606ee53ed6f78799c2341e561fd40..14bc80dbbdb23eb747fa6ce34e05232ae21d3f10 100644 --- a/rust-runtime/inlineable/README.md +++ b/rust-runtime/inlineable/README.md @@ -5,5 +5,5 @@ SDKs. This exists to facilitate writing complex snippets of code that can be tes without needing to create and publish an entire additional crate. -This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator. In most cases, it should not be used directly. +This crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator. In most cases, it should not be used directly. diff --git a/tools/ci-build/Dockerfile b/tools/ci-build/Dockerfile index 1136c537f82f91f4cae7bceaf4605e6e3b919981..746a12ec7ce7b4920aa8aa07209c432fecd62340 100644 --- a/tools/ci-build/Dockerfile +++ b/tools/ci-build/Dockerfile @@ -74,11 +74,11 @@ COPY . tools/ci-build # when `checkout_smithy_rs_tools` is set to true, this commit will be checked out ARG smithy_rs_commit_hash=main # If the `checkout_smithy_rs_tools` arg is set to true, then the Dockerfile will acquire the tools -# source code by checking out awslabs/smithy-rs/main rather than copying them from the local directory. +# source code by checking out smithy-lang/smithy-rs/main rather than copying them from the local directory. ARG checkout_smithy_rs_tools=false RUN set -eux; \ if [[ "${checkout_smithy_rs_tools}" == "true" ]]; then \ - git clone https://github.com/awslabs/smithy-rs.git; \ + git clone https://github.com/smithy-lang/smithy-rs.git; \ cd smithy-rs; \ git checkout ${smithy_rs_commit_hash}; \ fi; \ diff --git a/tools/ci-build/README.md b/tools/ci-build/README.md index d7b9204770e977831a3b9d0447fc4c12bff04a89..d6e03a861d37bfc23a5161dd1d9767755c8b2577 100644 --- a/tools/ci-build/README.md +++ b/tools/ci-build/README.md @@ -21,7 +21,7 @@ To create the starting space, do the following: ```bash cd /path/to/my/starting-space -git clone https://github.com/awslabs/smithy-rs.git +git clone https://github.com/smithy-lang/smithy-rs.git # Optionally check out the revision you want to work with in the checked out smithy-rs. # Just make sure you are in /path/to/my/starting-space (or whatever you called it) after. ``` diff --git a/tools/ci-build/changelogger/src/render.rs b/tools/ci-build/changelogger/src/render.rs index b8d9c3efeea8e8ddbbcc062ccb2e7694e51ebe30..7292855ee02d2270c536bad1abf62d480e0bb3d9 100644 --- a/tools/ci-build/changelogger/src/render.rs +++ b/tools/ci-build/changelogger/src/render.rs @@ -161,8 +161,13 @@ fn render_model_entry(entry: &SdkModelEntry, out: &mut String) { } fn to_md_link(reference: &Reference) -> String { + let org_name = match reference.repo.as_str() { + "smithy-rs" => "smithy-lang", + "aws-sdk-rust" => "awslabs", + repo => panic!("unrecognized repo named {repo}"), + }; format!( - "[{repo}#{number}](https://github.com/awslabs/{repo}/issues/{number})", + "[{repo}#{number}](https://github.com/{org_name}/{repo}/issues/{number})", repo = reference.repo, number = reference.number ) @@ -562,20 +567,20 @@ message = "Some API change" v0.3.0 (January 4th, 2022) ========================== **Breaking Changes:** -- :warning: (all, [smithy-rs#445](https://github.com/awslabs/smithy-rs/issues/445)) I made a major change to update the code generator +- :warning: (all, [smithy-rs#445](https://github.com/smithy-lang/smithy-rs/issues/445)) I made a major change to update the code generator **New this release:** -- :tada: (all, [smithy-rs#446](https://github.com/awslabs/smithy-rs/issues/446), @external-contrib) I made a change to update the code generator -- :tada: (all, [smithy-rs#446](https://github.com/awslabs/smithy-rs/issues/446), @external-contrib) I made a change to update the code generator +- :tada: (all, [smithy-rs#446](https://github.com/smithy-lang/smithy-rs/issues/446), @external-contrib) I made a change to update the code generator +- :tada: (all, [smithy-rs#446](https://github.com/smithy-lang/smithy-rs/issues/446), @external-contrib) I made a change to update the code generator **Update guide:** blah blah -- (all, [smithy-rs#200](https://github.com/awslabs/smithy-rs/issues/200), @another-contrib) I made a minor change +- (all, [smithy-rs#200](https://github.com/smithy-lang/smithy-rs/issues/200), @another-contrib) I made a minor change **Contributors** Thank you for your contributions! ❤ -- @another-contrib ([smithy-rs#200](https://github.com/awslabs/smithy-rs/issues/200)) -- @external-contrib ([smithy-rs#446](https://github.com/awslabs/smithy-rs/issues/446)) +- @another-contrib ([smithy-rs#200](https://github.com/smithy-lang/smithy-rs/issues/200)) +- @external-contrib ([smithy-rs#446](https://github.com/smithy-lang/smithy-rs/issues/446)) "# .trim_start(); @@ -586,10 +591,10 @@ Thank you for your contributions! ❤ v0.1.0 (January 4th, 2022) ========================== **Breaking Changes:** -- :warning: ([smithy-rs#445](https://github.com/awslabs/smithy-rs/issues/445)) I made a major change to update the AWS SDK +- :warning: ([smithy-rs#445](https://github.com/smithy-lang/smithy-rs/issues/445)) I made a major change to update the AWS SDK **New this release:** -- :tada: ([smithy-rs#446](https://github.com/awslabs/smithy-rs/issues/446), @external-contrib) I made a change to update the code generator +- :tada: ([smithy-rs#446](https://github.com/smithy-lang/smithy-rs/issues/446), @external-contrib) I made a change to update the code generator **Service Features:** - `aws-sdk-ec2` (0.12.0): Some API change @@ -600,7 +605,7 @@ v0.1.0 (January 4th, 2022) **Contributors** Thank you for your contributions! ❤ -- @external-contrib ([smithy-rs#446](https://github.com/awslabs/smithy-rs/issues/446)) +- @external-contrib ([smithy-rs#446](https://github.com/smithy-lang/smithy-rs/issues/446)) "# .trim_start(); diff --git a/tools/ci-build/changelogger/tests/e2e_test.rs b/tools/ci-build/changelogger/tests/e2e_test.rs index 302607704a7bb83dc9191eb2d00ffe34f9dfbe89..87862af3415b0054cb4b967baa987c6121482abd 100644 --- a/tools/ci-build/changelogger/tests/e2e_test.rs +++ b/tools/ci-build/changelogger/tests/e2e_test.rs @@ -300,11 +300,11 @@ fn render_smithy_rs() { January 1st, 1970 ================= **New this release:** -- (all, [smithy-rs#1234](https://github.com/awslabs/smithy-rs/issues/1234), @another-dev) Another change +- (all, [smithy-rs#1234](https://github.com/smithy-lang/smithy-rs/issues/1234), @another-dev) Another change **Contributors** Thank you for your contributions! ❤ -- @another-dev ([smithy-rs#1234](https://github.com/awslabs/smithy-rs/issues/1234)) +- @another-dev ([smithy-rs#1234](https://github.com/smithy-lang/smithy-rs/issues/1234)) v0.41.0 (Some date in the past) @@ -318,7 +318,7 @@ Old entry contents r#"{ "tagName": "release-1970-01-01", "name": "January 1st, 1970", - "body": "**New this release:**\n- (all, [smithy-rs#1234](https://github.com/awslabs/smithy-rs/issues/1234), @another-dev) Another change\n\n**Contributors**\nThank you for your contributions! ❤\n- @another-dev ([smithy-rs#1234](https://github.com/awslabs/smithy-rs/issues/1234))\n\n", + "body": "**New this release:**\n- (all, [smithy-rs#1234](https://github.com/smithy-lang/smithy-rs/issues/1234), @another-dev) Another change\n\n**Contributors**\nThank you for your contributions! ❤\n- @another-dev ([smithy-rs#1234](https://github.com/smithy-lang/smithy-rs/issues/1234))\n\n", "prerelease": true }"#, release_manifest @@ -393,14 +393,14 @@ fn render_aws_sdk() { January 1st, 1970 ================= **New this release:** -- :bug: ([aws-sdk-rust#234](https://github.com/awslabs/aws-sdk-rust/issues/234), [smithy-rs#567](https://github.com/awslabs/smithy-rs/issues/567), @test-dev) Some other change +- :bug: ([aws-sdk-rust#234](https://github.com/awslabs/aws-sdk-rust/issues/234), [smithy-rs#567](https://github.com/smithy-lang/smithy-rs/issues/567), @test-dev) Some other change **Service Features:** - `aws-sdk-ec2` (0.12.0): Some API change **Contributors** Thank you for your contributions! ❤ -- @test-dev ([aws-sdk-rust#234](https://github.com/awslabs/aws-sdk-rust/issues/234), [smithy-rs#567](https://github.com/awslabs/smithy-rs/issues/567)) +- @test-dev ([aws-sdk-rust#234](https://github.com/awslabs/aws-sdk-rust/issues/234), [smithy-rs#567](https://github.com/smithy-lang/smithy-rs/issues/567)) v0.41.0 (Some date in the past) @@ -414,7 +414,7 @@ Old entry contents r#"{ "tagName": "release-1970-01-01", "name": "January 1st, 1970", - "body": "**New this release:**\n- :bug: ([aws-sdk-rust#234](https://github.com/awslabs/aws-sdk-rust/issues/234), [smithy-rs#567](https://github.com/awslabs/smithy-rs/issues/567), @test-dev) Some other change\n\n**Service Features:**\n- `aws-sdk-ec2` (0.12.0): Some API change\n\n**Contributors**\nThank you for your contributions! ❤\n- @test-dev ([aws-sdk-rust#234](https://github.com/awslabs/aws-sdk-rust/issues/234), [smithy-rs#567](https://github.com/awslabs/smithy-rs/issues/567))\n\n", + "body": "**New this release:**\n- :bug: ([aws-sdk-rust#234](https://github.com/awslabs/aws-sdk-rust/issues/234), [smithy-rs#567](https://github.com/smithy-lang/smithy-rs/issues/567), @test-dev) Some other change\n\n**Service Features:**\n- `aws-sdk-ec2` (0.12.0): Some API change\n\n**Contributors**\nThank you for your contributions! ❤\n- @test-dev ([aws-sdk-rust#234](https://github.com/awslabs/aws-sdk-rust/issues/234), [smithy-rs#567](https://github.com/smithy-lang/smithy-rs/issues/567))\n\n", "prerelease": true }"#, release_manifest @@ -511,17 +511,17 @@ author = "rcoh" January 1st, 1970 ================= **Breaking Changes:** -- :warning: (all, [smithy-rs#3](https://github.com/awslabs/smithy-rs/issues/3)) Third change - empty +- :warning: (all, [smithy-rs#3](https://github.com/smithy-lang/smithy-rs/issues/3)) Third change - empty **New this release:** -- (server, [smithy-rs#1](https://github.com/awslabs/smithy-rs/issues/1), @server-dev) First change - server -- (all, [smithy-rs#2](https://github.com/awslabs/smithy-rs/issues/2), @another-dev) Second change - should be all -- (client, [smithy-rs#4](https://github.com/awslabs/smithy-rs/issues/4)) Fourth change - client +- (server, [smithy-rs#1](https://github.com/smithy-lang/smithy-rs/issues/1), @server-dev) First change - server +- (all, [smithy-rs#2](https://github.com/smithy-lang/smithy-rs/issues/2), @another-dev) Second change - should be all +- (client, [smithy-rs#4](https://github.com/smithy-lang/smithy-rs/issues/4)) Fourth change - client **Contributors** Thank you for your contributions! ❤ -- @another-dev ([smithy-rs#2](https://github.com/awslabs/smithy-rs/issues/2)) -- @server-dev ([smithy-rs#1](https://github.com/awslabs/smithy-rs/issues/1)) +- @another-dev ([smithy-rs#2](https://github.com/smithy-lang/smithy-rs/issues/2)) +- @server-dev ([smithy-rs#1](https://github.com/smithy-lang/smithy-rs/issues/1)) v0.41.0 (Some date in the past) @@ -668,11 +668,11 @@ fn render_crate_versions() { January 1st, 1970 ================= **New this release:** -- (all, [smithy-rs#1234](https://github.com/awslabs/smithy-rs/issues/1234), @another-dev) Another change +- (all, [smithy-rs#1234](https://github.com/smithy-lang/smithy-rs/issues/1234), @another-dev) Another change **Contributors** Thank you for your contributions! ❤ -- @another-dev ([smithy-rs#1234](https://github.com/awslabs/smithy-rs/issues/1234)) +- @another-dev ([smithy-rs#1234](https://github.com/smithy-lang/smithy-rs/issues/1234)) **Crate Versions**
@@ -697,7 +697,7 @@ Old entry contents r#"{ "tagName": "release-1970-01-01", "name": "January 1st, 1970", - "body": "**New this release:**\n- (all, [smithy-rs#1234](https://github.com/awslabs/smithy-rs/issues/1234), @another-dev) Another change\n\n**Contributors**\nThank you for your contributions! ❤\n- @another-dev ([smithy-rs#1234](https://github.com/awslabs/smithy-rs/issues/1234))\n\n**Crate Versions**\n
\nClick to expand to view crate versions...\n\n|Crate|Version|\n|-|-|\n|aws-config|0.54.1|\n|aws-sdk-accessanalyzer|0.24.0|\n|aws-smithy-async|0.54.1|\n
\n\n", + "body": "**New this release:**\n- (all, [smithy-rs#1234](https://github.com/smithy-lang/smithy-rs/issues/1234), @another-dev) Another change\n\n**Contributors**\nThank you for your contributions! ❤\n- @another-dev ([smithy-rs#1234](https://github.com/smithy-lang/smithy-rs/issues/1234))\n\n**Crate Versions**\n
\nClick to expand to view crate versions...\n\n|Crate|Version|\n|-|-|\n|aws-config|0.54.1|\n|aws-sdk-accessanalyzer|0.24.0|\n|aws-smithy-async|0.54.1|\n
\n\n", "prerelease": true }"#, release_manifest diff --git a/tools/ci-build/publisher/src/subcommand/claim_crate_names.rs b/tools/ci-build/publisher/src/subcommand/claim_crate_names.rs index ae7a41b30453dd879a42c6e6d8cc7614ebb72097..7e6bb52572e5977cddd4eab704ba787ce0b29d4b 100644 --- a/tools/ci-build/publisher/src/subcommand/claim_crate_names.rs +++ b/tools/ci-build/publisher/src/subcommand/claim_crate_names.rs @@ -119,7 +119,7 @@ version = "0.0.1" edition = "2021" description = "Placeholder ahead of the next smithy-rs release" license = "Apache-2.0" -repository = "https://github.com/awslabs/smithy-rs""#, +repository = "https://github.com/smithy-lang/smithy-rs""#, package_name ); fs.write_file(directory_path.join("Cargo.toml"), cargo_toml.as_bytes()) diff --git a/tools/ci-build/publisher/src/subcommand/upgrade_runtime_crates_version.rs b/tools/ci-build/publisher/src/subcommand/upgrade_runtime_crates_version.rs index d0a4a9749bd12074344e1d664591b9f7779383c7..c79cc5d021d53696a0d68cdae1abbe0392826e9e 100644 --- a/tools/ci-build/publisher/src/subcommand/upgrade_runtime_crates_version.rs +++ b/tools/ci-build/publisher/src/subcommand/upgrade_runtime_crates_version.rs @@ -58,7 +58,7 @@ pub async fn subcommand_upgrade_runtime_crates_version( ) })?; // TODO(GA): Error out if args.stable_version starts with "0." - // https://github.com/awslabs/smithy-rs/pull/3082#discussion_r1378637315 + // https://github.com/smithy-lang/smithy-rs/pull/3082#discussion_r1378637315 let updated_gradle_properties = if let Some(stable_version) = &args.stable_version { let upgraded_stable_version = semver::Version::parse(stable_version.as_str()) .with_context(|| format!("{} is not a valid semver version", &stable_version))?; diff --git a/tools/ci-build/sdk-lints/src/readmes.rs b/tools/ci-build/sdk-lints/src/readmes.rs index 392a4d63dfc28a6fa3f39a907cae550031bb15ab..9259197cc1b8b11d9b565017c91b16ce7154006e 100644 --- a/tools/ci-build/sdk-lints/src/readmes.rs +++ b/tools/ci-build/sdk-lints/src/readmes.rs @@ -66,7 +66,7 @@ impl Fix for ReadmesHaveFooters { const README_FOOTER: &str = "\nThis crate is part of the [AWS SDK for Rust](https://awslabs.github.io/aws-sdk-rust/) \ -and the [smithy-rs](https://github.com/awslabs/smithy-rs) code generator."; +and the [smithy-rs](https://github.com/smithy-lang/smithy-rs) code generator."; const NOT_TO_BE_USED_DIRECTLY: &str = " In most cases, it should not be used directly."; fn fix_readme(path: impl AsRef, to_be_used_directly: bool) -> Result<(bool, String)> { diff --git a/tools/ci-build/sdk-lints/src/todos.rs b/tools/ci-build/sdk-lints/src/todos.rs index 06cc50db3feb5fd2d83b5876a2a971e1ca0d38eb..c6f9affa8fc768ac883e6fdb9381cd9b3e5db659 100644 --- a/tools/ci-build/sdk-lints/src/todos.rs +++ b/tools/ci-build/sdk-lints/src/todos.rs @@ -25,7 +25,7 @@ impl Lint for TodosHaveContext { ext.eq_ignore_ascii_case("rs") || ext.eq_ignore_ascii_case("toml") || ext.eq_ignore_ascii_case("txt") - // TODO(https://github.com/awslabs/smithy-rs/issues/2077) + // TODO(https://github.com/smithy-lang/smithy-rs/issues/2077) // || ext.eq_ignore_ascii_case("md") || ext.eq_ignore_ascii_case("sh") || ext.eq_ignore_ascii_case("py") diff --git a/tools/ci-build/sdk-versioner/src/main.rs b/tools/ci-build/sdk-versioner/src/main.rs index df148894d1bfd9ebde6d3185eb72f3f36c0d3e25..39d81722f39ed11c45f7fee1b55f4da2eb053b0f 100644 --- a/tools/ci-build/sdk-versioner/src/main.rs +++ b/tools/ci-build/sdk-versioner/src/main.rs @@ -70,7 +70,7 @@ impl Args { } } -// TODO(https://github.com/awslabs/smithy-rs/issues/2810): Remove `SdkPath` and just use a `PathBuf` with the new logic +// TODO(https://github.com/smithy-lang/smithy-rs/issues/2810): Remove `SdkPath` and just use a `PathBuf` with the new logic // This is only around for backwards compatibility for the next release's sync process0 enum SdkPath { /// Don't even attempt to resolve the correct relative path to dependencies diff --git a/tools/ci-cdk/README.md b/tools/ci-cdk/README.md index 31c4a2fc6ef85baa196df853dd95209b18d24345..691489eeebf603e9b4bbf913c28f1deec75367db 100644 --- a/tools/ci-cdk/README.md +++ b/tools/ci-cdk/README.md @@ -1,6 +1,6 @@ # CI CDK -This is the CDK infrastructure as code for awslabs/smithy-rs and awslabs/aws-sdk-rust +This is the CDK infrastructure as code for smithy-lang/smithy-rs and awslabs/aws-sdk-rust continuous integration. The `cdk.json` file tells the CDK Toolkit how to synthesize the infrastructure. diff --git a/tools/ci-cdk/canary-runner/src/run.rs b/tools/ci-cdk/canary-runner/src/run.rs index 9521db6cae8f42e7f331216c72c29a90c4f9129d..8fd8cb40641ac7961ba1e2ecf86a85f720538c87 100644 --- a/tools/ci-cdk/canary-runner/src/run.rs +++ b/tools/ci-cdk/canary-runner/src/run.rs @@ -5,7 +5,7 @@ // This is the code used by CI to run the canary Lambda. // -// If running this locally, you'll need to make a clone of awslabs/smithy-rs in +// If running this locally, you'll need to make a clone of smithy-lang/smithy-rs in // the aws-sdk-rust project root. // // Also consider using the `AWS_PROFILE` and `AWS_REGION` environment variables @@ -47,10 +47,10 @@ lazy_static::lazy_static! { static ref PINNED_SMITHY_RS_VERSIONS: Vec<(ReleaseTag, &'static str)> = { let mut pinned = vec![ // Versions <= 0.6.0 no longer compile against the canary after this commit in smithy-rs - // due to the breaking change in https://github.com/awslabs/smithy-rs/pull/1085 + // due to the breaking change in https://github.com/smithy-lang/smithy-rs/pull/1085 (ReleaseTag::from_str("v0.6.0").unwrap(), "d48c234796a16d518ca9e1dda5c7a1da4904318c"), // Versions <= release-2022-10-26 no longer compile against the canary after this commit in smithy-rs - // due to the s3 canary update in https://github.com/awslabs/smithy-rs/pull/1974 + // due to the s3 canary update in https://github.com/smithy-lang/smithy-rs/pull/1974 (ReleaseTag::from_str("release-2022-10-26").unwrap(), "3e24477ae7a0a2b3853962a064bc8333a016af54") ]; pinned.sort(); diff --git a/tools/ci-cdk/lib/smithy-rs/pull-request-cdn-stack.ts b/tools/ci-cdk/lib/smithy-rs/pull-request-cdn-stack.ts index 3cb6e651d26efbef5e197171bce2199c9007ff6c..92e9bd34450619ec5b8b1ad4225bcdd5f296867c 100644 --- a/tools/ci-cdk/lib/smithy-rs/pull-request-cdn-stack.ts +++ b/tools/ci-cdk/lib/smithy-rs/pull-request-cdn-stack.ts @@ -25,7 +25,7 @@ export class PullRequestCdnStack extends Stack { this.smithyRsOidcRole = new GitHubOidcRole(this, "smithy-rs", { name: "smithy-rs-pull-request", - githubOrg: "awslabs", + githubOrg: "smithy-lang", githubRepo: "smithy-rs", oidcProvider: props.githubActionsOidcProvider, }); diff --git a/tools/ci-cdk/test/oidc-provider-stack.test.ts b/tools/ci-cdk/test/oidc-provider-stack.test.ts index f776fd843ed0057071d662b08914616585d9b44f..addc642696b091b6137998c7114900849b5aeac6 100644 --- a/tools/ci-cdk/test/oidc-provider-stack.test.ts +++ b/tools/ci-cdk/test/oidc-provider-stack.test.ts @@ -5,7 +5,7 @@ import { App } from "aws-cdk-lib"; import { Template } from "aws-cdk-lib/assertions"; -import { GITHUB_CERTIFICATE_THUMBPRINTS, OidcProviderStack } from "../lib/oidc-provider-stack"; +import { OidcProviderStack } from "../lib/oidc-provider-stack"; test("it should have an OIDC provider", () => { const app = new App(); @@ -15,7 +15,6 @@ test("it should have an OIDC provider", () => { // Verify the OIDC provider template.hasResourceProperties("Custom::AWSCDKOpenIdConnectProvider", { ClientIDList: ["sts.amazonaws.com"], - ThumbprintList: GITHUB_CERTIFICATE_THUMBPRINTS, Url: "https://token.actions.githubusercontent.com", }); }); diff --git a/tools/ci-scripts/check-aws-config b/tools/ci-scripts/check-aws-config index 5c6d910fe2ff600431989a35679f732b29ca1405..6a6d2cfc29d3332397530e46175f20f660d79f66 100755 --- a/tools/ci-scripts/check-aws-config +++ b/tools/ci-scripts/check-aws-config @@ -42,7 +42,7 @@ echo "${C_YELLOW}## Checking the wasm32-unknown-unknown and wasm32-wasi targets$ cargo check --target wasm32-unknown-unknown --no-default-features cargo check --target wasm32-wasi --no-default-features -# TODO(https://github.com/awslabs/smithy-rs/issues/2499): Uncomment the following once aws-config tests compile for WASM +# TODO(https://github.com/smithy-lang/smithy-rs/issues/2499): Uncomment the following once aws-config tests compile for WASM # echo "${C_YELLOW}## Testing the wasm32-unknown-unknown and wasm32-wasi targets${C_RESET}" # wasm-pack test --node -- --no-default-features # cargo wasi test --no-default-features