-
Notifications
You must be signed in to change notification settings - Fork 266
Description
Describe the feature
In the s3/src/lib.rs
, it would be great to add aws_smithy_http::byte_stream::Error
to the list of re-exported types.
This is probably a low priority and more convenient as a workable solution exists.
Use Case
When using AWS S3 SDK and wanting to write error convertors to S3-related Errors, we can do most of them, except the aws_smithy_http::byte_stream::Error
since it is not re-exported from the S3 SDK.
The simple workaround is to add aws_smithy_http
to the Cargo.toml
, which might create lib out-of-sync issues at compile time.
Having one place to import all of those relevant to AWS S3 SDK errors will remove this little friction.
Proposed Solution
In s3/src/lib.rs
add to the types
submodule:
pub mod types {
pub use aws_smithy_http::byte_stream::Error; // <<-- new line
// ...
}
Other Information
I just hit an error today when I upgraded all my dependencies, and when I upgraded aws-smithy-http
to 0.47.0
it caused some compiler issues.
Now, there might be a good reason why this should not be done, and if it is the case, feel free to disregard this feature request.
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
A note for the community
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue, please leave a comment