Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove third party types from public APIs #2845

Merged
merged 8 commits into from
Jul 14, 2023

Conversation

ysaito1001
Copy link
Contributor

@ysaito1001 ysaito1001 commented Jul 13, 2023

Motivation and Context

Addresses item 1, 3, and 9 in #2413

Description

This PR removes the third party types as follows:

  • removes InvalidHeaderValue from public API in aws-http
  • removes SendError from public API in aws-smithy-async
  • removes xmlparser from public API in aws-smithy-xml

Those types were exposed to public APIs primarily due to the implementation of traits, e.g. From and Iterator. Those implementations are used internally (such as XML deserialization and converting an error type) so we should be able to hide them within crates.

Testing

  • Passed tests in CI

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • 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.

@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

@ysaito1001 ysaito1001 marked this pull request as ready for review July 14, 2023 00:37
@ysaito1001 ysaito1001 requested review from a team as code owners July 14, 2023 00:37
@ysaito1001 ysaito1001 added breaking-change This will require a breaking change needs-sdk-review labels Jul 14, 2023
@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

Copy link
Collaborator

@jdisanti jdisanti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thanks.

rust-runtime/aws-smithy-async/src/future/rendezvous.rs Outdated Show resolved Hide resolved
rust-runtime/aws-smithy-xml/src/decode.rs Outdated Show resolved Hide resolved
@ysaito1001 ysaito1001 added this pull request to the merge queue Jul 14, 2023
@github-actions
Copy link

A new generated diff is ready to view.

  • AWS SDK (ignoring whitespace)
  • No codegen difference in the Client Test
  • No codegen difference in the Server Test
  • No codegen difference in the Server Test Python
  • No codegen difference in the Server Test Typescript

A new doc preview is ready to view.

Merged via the queue into main with commit 2999766 Jul 14, 2023
41 checks passed
@ysaito1001 ysaito1001 deleted the ysaito/remove-3rd-party-types branch July 14, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This will require a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants