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

Add more type aliases for types moved to the aws-smithy-types crate #3091

Merged
merged 3 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.next.toml
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,9 @@ author = "ysaito1001"

[[smithy-rs]]
message = """
`aws_smithy_http::byte_stream::{AggregatedBytes, ByteStream, error::Error}` have been moved to `aws_smithy_types::byte_stream::{AggregatedBytes, ByteStream, error::Error}`. Type aliases for them are left in `aws_smithy_http` for backwards compatibility but are deprecated.
`aws_smithy_http::byte_stream::{AggregatedBytes, ByteStream, error::Error, FsBuilder, Length}` have been moved to `aws_smithy_types::byte_stream::{AggregatedBytes, ByteStream, error::Error, FsBuilder, Length}`. Type aliases for them are left in `aws_smithy_http` for backwards compatibility but are deprecated.
"""
references = ["smithy-rs#3076"]
references = ["smithy-rs#3076", "smithy-rs#3091"]
meta = { "breaking" = true, "tada" = false, "bug" = false, "target" = "all" }
author = "ysaito1001"

Expand Down
10 changes: 10 additions & 0 deletions rust-runtime/aws-smithy-http/src/byte_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ pub mod error {
#[deprecated(note = "Moved to `aws_smithy_types::byte_stream::error::Error`.")]
pub type Error = aws_smithy_types::byte_stream::error::Error;
}

/// Builder for creating [`ByteStreams`](aws_smithy_types::byte_stream::ByteStream) from a file/path, with full control over advanced options.
#[cfg(feature = "rt-tokio")]
#[deprecated(note = "Moved to `aws_smithy_types::byte_stream::FsBuilder`.")]
pub type FsBuilder = aws_smithy_types::byte_stream::FsBuilder;

/// The length (in bytes) to read. Determines whether or not a short read counts as an error.
#[cfg(feature = "rt-tokio")]
#[deprecated(note = "Moved to `aws_smithy_types::byte_stream::Length`.")]
pub type Length = aws_smithy_types::byte_stream::Length;
Loading