everpcpc commented on code in PR #8524: URL: https://github.com/apache/opendal/pull/8524#discussion_r4582789972
########## core/services/oss/src/lib.rs: ########## @@ -31,6 +31,16 @@ mod writer; pub use backend::OssBuilder as Oss; pub use config::OssConfig; +/// Re-export of the [`reqsign_aliyun_oss`] crate that this service signs +/// requests with. +/// +/// [`Oss::credential_provider_chain`] takes a chain of providers for +/// [`reqsign_aliyun_oss::Credential`]. Implement providers against this +/// re-export and [`opendal_core::reqsign_core`] rather than depending on the +/// `reqsign` crates directly, so that the types always match the ones this +/// service is built with. +pub use reqsign_aliyun_oss; Review Comment: This follows the pattern introduced in #8346 for S3, GCS, Azblob, and Azdls. The re-export lets downstream custom providers use the exact reqsign types used by the service, without independently aligning reqsign crate versions. What do you think? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
