diff --git a/CHANGELOG.next.toml b/CHANGELOG.next.toml index f74058dd8d..7f9f7ff212 100644 --- a/CHANGELOG.next.toml +++ b/CHANGELOG.next.toml @@ -457,9 +457,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" diff --git a/rust-runtime/aws-smithy-http/src/byte_stream.rs b/rust-runtime/aws-smithy-http/src/byte_stream.rs index e97a395b8e..4067ec517d 100644 --- a/rust-runtime/aws-smithy-http/src/byte_stream.rs +++ b/rust-runtime/aws-smithy-http/src/byte_stream.rs @@ -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;