-
Notifications
You must be signed in to change notification settings - Fork 190
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
Hide external buffer types used by primitive::Encoder
in aws-smithy-types
#1209
Conversation
A new doc preview is ready to view. |
A new generated diff is ready to view.
|
A new doc preview is ready to view. |
A new generated diff is ready to view.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, lmk what you think about just making it a private tuple struct though
A new generated diff is ready to view.
|
A new doc preview is ready to view. |
Motivation and Context
The buffer types are an implementation detail for the primitive encoding, and should not be tied to the public API. This PR wraps them in some lightweight structs to hide them.
Testing
api-linter
to CI for theaws-smithy-types
crate now that it reveals no external types in its APIChecklist
CHANGELOG.next.toml
if I made changes to the smithy-rs codegen or runtime cratesBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.