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

Re-export aws_smithy_types::date_time::Format in service client crates #2534

Merged
merged 5 commits into from
Apr 13, 2023

Conversation

ysaito1001
Copy link
Contributor

@ysaito1001 ysaito1001 commented Apr 3, 2023

Motivation and Context

This small PR is a follow-up on #2437. We re-export aws_smithy_types::date_time::Format into primitives.rs (or into types.rs prior to the client crate re-organization).

Description

Note if we run rg aws_smithy_* in aws-doc-sdk-examples/rust_dev_preview, we see use statements on

  • aws_smithy_types_convert::date_time::Error
  • aws_smithy_types_convert::date_time::DateTimeExt

These types are under consideration. They are feature-gated in aws_smithy_types_convert and we probably do not want to turn on the cargo feature and re-export them by default across client 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.

This commit adds two more client re-exports that were not included
in smithy-rs#2437:
- `aws_smithy_http::byte_stream::Length`
- `aws_smithy_types::date_time::Format`
@ysaito1001 ysaito1001 requested review from a team as code owners April 3, 2023 21:14
@ysaito1001 ysaito1001 requested review from jdisanti and hlbarber April 3, 2023 21:14
@github-actions
Copy link

github-actions bot commented Apr 3, 2023

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

A new doc preview is ready to view.

@jdisanti
Copy link
Collaborator

jdisanti commented Apr 3, 2023

Should we re-export these under crate::primitives::byte_stream and crate::primitives::date_time respectively?

This commit removes re-export of `aws_smithy_http::byte_stream::Length`
for now as it is a feature-gated type, which requires further consideration.
@github-actions
Copy link

github-actions bot commented Apr 4, 2023

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

A new doc preview is ready to view.

@ysaito1001 ysaito1001 changed the title Add more client crate re-exports Re-export aws_smithy_types::date_time::Format in service client crates Apr 5, 2023
@ysaito1001
Copy link
Contributor Author

Should we re-export these under crate::primitives::byte_stream and crate::primitives::date_time respectively

Yes, and as discussed off-line, we'll re-export them by prefixing. So aws_smithy_types::date_time::Format will be re-exported as DateTimeFormat.

@github-actions
Copy link

github-actions bot commented Apr 5, 2023

A new generated diff is ready to view.

A new doc preview is ready to view.

@ysaito1001 ysaito1001 added this pull request to the merge queue Apr 6, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 6, 2023
@ysaito1001 ysaito1001 enabled auto-merge April 13, 2023 22:31
@github-actions
Copy link

@ysaito1001 ysaito1001 added this pull request to the merge queue Apr 13, 2023
Merged via the queue into main with commit 35f2f27 Apr 13, 2023
@ysaito1001 ysaito1001 deleted the ysaito/add-more-client-reexports branch April 13, 2023 23:24
Velfi pushed a commit that referenced this pull request Apr 17, 2023
…tes (#2534)

* Add more client crate re-exports

This commit adds two more client re-exports that were not included
in smithy-rs#2437:
- `aws_smithy_http::byte_stream::Length`
- `aws_smithy_types::date_time::Format`

* Remove re-export of `aws_smithy_http::byte_stream::Length`

This commit removes re-export of `aws_smithy_http::byte_stream::Length`
for now as it is a feature-gated type, which requires further consideration.

* CHANGELOG.next.toml

---------

Co-authored-by: Yuki Saito <[email protected]>
unexge pushed a commit that referenced this pull request Apr 24, 2023
…tes (#2534)

* Add more client crate re-exports

This commit adds two more client re-exports that were not included
in smithy-rs#2437:
- `aws_smithy_http::byte_stream::Length`
- `aws_smithy_types::date_time::Format`

* Remove re-export of `aws_smithy_http::byte_stream::Length`

This commit removes re-export of `aws_smithy_http::byte_stream::Length`
for now as it is a feature-gated type, which requires further consideration.

* CHANGELOG.next.toml

---------

Co-authored-by: Yuki Saito <[email protected]>
rcoh pushed a commit that referenced this pull request Apr 24, 2023
…tes (#2534)

* Add more client crate re-exports

This commit adds two more client re-exports that were not included
in smithy-rs#2437:
- `aws_smithy_http::byte_stream::Length`
- `aws_smithy_types::date_time::Format`

* Remove re-export of `aws_smithy_http::byte_stream::Length`

This commit removes re-export of `aws_smithy_http::byte_stream::Length`
for now as it is a feature-gated type, which requires further consideration.

* CHANGELOG.next.toml

---------

Co-authored-by: Yuki Saito <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants