From fbff947058ee6fe5236aaf77241ccc0d758d1500 Mon Sep 17 00:00:00 2001 From: Steven Meyer <108885656+meyertst-aws@users.noreply.github.com> Date: Fri, 26 Jan 2024 10:33:39 -0500 Subject: [PATCH 1/2] Fix service name (#6009) * fixing bug that broke pipeline build for Bedrock guide --- .doc_gen/metadata/cross_metadata.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.doc_gen/metadata/cross_metadata.yaml b/.doc_gen/metadata/cross_metadata.yaml index ef1c034f27a..5b04616e112 100644 --- a/.doc_gen/metadata/cross_metadata.yaml +++ b/.doc_gen/metadata/cross_metadata.yaml @@ -791,7 +791,3 @@ cross_ServerlessPromptChaining: service_main: bedrock services: bedrock: - bedrock-runtime: - bedrock-agent: - bedrock-agent-runtime: - sfn: From 7194ce6f2778117150845b1c664b4a7aba1e49ef Mon Sep 17 00:00:00 2001 From: David Souther Date: Fri, 26 Jan 2024 11:17:59 -0500 Subject: [PATCH 2/2] Rust: Document lint and static checks. (#5998) Closes $5997 --- rustv1/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rustv1/README.md b/rustv1/README.md index 83d904940fa..769e8786cda 100644 --- a/rustv1/README.md +++ b/rustv1/README.md @@ -98,6 +98,11 @@ these examples in an isolated environment. ## Contributing +When adding or modifying Rust code examples, follow common Rust best practices. +As much as is reasonable, this means having tests that run with `cargo test`, code that has no lint errors from `cargo clippy --all-targets`, and code that has been formatted using `cargo fmt`. +These can be verified using cargo with in the example folders, or across the entire Rust code base with the `./run_all.sh` script. +The `run_all.sh` script is also used in continuous integration toolchains. + To propose a new code example to the AWS documentation team, see [CONTRIBUTING.md](https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/CONTRIBUTING.md). The team prefers to create code examples that show broad scenarios rather than individual API calls.