-
Notifications
You must be signed in to change notification settings - Fork 247
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
aws-sdk-s3 - re-export aws_smithy_http::byte_stream::Error #600
Comments
We probably need to either:
It's probably a little misleading for types::Error to actually be a ByteStream error. Definitely agree that this would be nice to fix though |
Funny enough I just came here to open a similar issue. Would it be possible to just rexport all of
And I keep getting errors when aws_smithy_http gets bumped without the SDK getting bumped. Is there a better way to do what I'm trying to do? |
@mattklein123 - Thank you for the code snippet. That's very informative for what we should be re-exporting. Tracking implementation of this in smithy-rs#1759. |
|
Describe the feature
In the
s3/src/lib.rs
, it would be great to addaws_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 theCargo.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 thetypes
submodule:Other Information
I just hit an error today when I upgraded all my dependencies, and when I upgraded
aws-smithy-http
to0.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
A note for the community
Community Note
The text was updated successfully, but these errors were encountered: