smithy-rs/rust-runtime/aws-smithy-async
Zelda Hessler 5f7113f506
Sourcing service config from the environment. (#3493)
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here -->
https://github.com/smithy-lang/smithy-rs/issues/2863
https://github.com/awslabs/aws-sdk-rust/issues/1060

## Description
<!--- Describe your changes in detail -->
This PR adds a new feature: the ability to source service-specific
config from the environment.
This is **only** supported when creating a service config from an
`SdkConfig`. I've posted [a
guide](https://github.com/smithy-lang/smithy-rs/discussions/3537) to our
discussions board.

[This also adds support for setting an endpoint URL in environment
config.](https://github.com/smithy-lang/smithy-rs/issues/2863)

## Testing
<!--- Please describe in detail how you tested your changes -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->
I have written several tests ensuring config is extracted with the
correct precedence.

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [x] I have updated `CHANGELOG.next.toml` if I made changes to the AWS
SDK, generated SDK code, or SDK runtime crates

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._

---------

Co-authored-by: John DiSanti <jdisanti@amazon.com>
Co-authored-by: ysaito1001 <awsaito@amazon.com>
2024-04-01 14:50:31 +00:00
..
src Add tick-advancing test sleep primitive (#3469) 2024-03-12 22:22:12 +00:00
Cargo.toml Sourcing service config from the environment. (#3493) 2024-04-01 14:50:31 +00:00
LICENSE Prefix Smithy runtime crates with `aws-` (#788) 2021-10-20 10:21:15 -07:00
README.md Fix repo org move issues (#3166) 2023-11-10 18:51:04 +00:00
additional-ci Split test-util feature to allow test-util to be utilized in WASM (#2873) 2023-07-27 15:52:12 +00:00
external-types.toml Remove `futures_core::stream::Stream` from `aws-smithy-async` (#2978) 2023-09-27 21:14:40 +00:00

README.md

aws-smithy-async

Runtime-agnostic abstractions and utilities for asynchronous code in smithy-rs.

Async runtime specific code is abstracted behind async traits, and implementations are provided via feature flag. For now, only Tokio runtime implementations are provided.

This crate is part of the AWS SDK for Rust and the smithy-rs code generator. In most cases, it should not be used directly.