-
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
Remove futures_core::stream::Stream
from aws-smithy-async
#2978
Remove futures_core::stream::Stream
from aws-smithy-async
#2978
Conversation
A new generated diff is ready to view.
A new doc preview 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.
nice! like the direction here.
This commit responses to #2978 (comment)
A new generated diff is ready to view.
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.
A new doc preview is ready to view. |
This commit addresses #2978 (comment)
This commit addresses #2978 (comment)
A new generated diff is ready to view.
A new doc preview 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.
Looking good! Just a couple of small tweaks. Nice work on this.
This commit addresses #2978 (comment)
This commit addresses #2978 (comment)
This commit addresses #2978 (comment)
A new generated diff is ready to view.
A new doc preview is ready to view. |
## Motivation and Context Fixes [canary failures](https://github.com/awslabs/aws-sdk-rust/actions/runs/6345490441/job/17237658244) by updating the-last-release-before-breaking-change module in `canary-lambda`. ## Description [A previous PR](#2978) removing the `Steram` trait from public API had a breaking change, requiring canary to update its code. The latest release at the time while the PR was worked on was `release-2023-08-23` so we created a new module with that date and moved the previously working canary's code prior to the breaking change to it. The `latest` module then contained canary's code after the breaking change. However, before that PR was merged to main, we made several releases in `aws-sdk-rust`, making `release-2023-08-23` no longer the latest release before the breaking change; a new one is `release_2023_09_25`. Hence this PR. ## Testing Manually executed ``` ➜ canary-runner git:(ysaito/fix-canary-module-dates) cargo run -- build-bundle --canary-path ../canary-lambda --sdk-release-tag release-2023-09-25 --musl --manifest-only ➜ canary-runner git:(ysaito/fix-canary-module-dates) cd ../canary-lambda ➜ canary-lambda git:(ysaito/fix-canary-module-dates) cargo check ``` (also tested for `--sdk-release-tag` with `release-2023-09-22` and `release-2023-09-20`) ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Motivation and Context
Removes
futures_core::stream::Stream
from theaws-smithy-async
crate.Description
This PR is part of our ongoing effort, #2413. We remove the
futures_core::stream::Stream
trait from the public API in theaws-smithy-async
crate. While doing so, we compensateFnStream
by providing the explicit.next
and.collect
methods to let the previously working code continue working.TryFlatMap
by making it return a new-type wrapperPaginationStream
to hideFnStream
from those who use paginators.With this change, the latest canary no longer uses
tokio_stream::StreamExt
, since the paginator does not work in terms of theStream
trait. Furthermore,aws-sdk-rust
has been more than 3 releases since release-2023-01-26, so the modulerelease-2023-01-26
has been removed fromcanary-lambda
.Testing
No new tests added, but made sure the existing tests keep working with the change.
Checklist
CHANGELOG.next.toml
if I made changes to the smithy-rs codegen or runtime cratesCHANGELOG.next.toml
if I made changes to the AWS SDK, generated SDK code, or SDK runtime cratesBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.