Byron / google-apis-rs

A binding and CLI generator for all Google APIs
http://byron.github.io/google-apis-rs
Other
1.01k stars 131 forks source link

Expose oauth2 crate #298

Closed DeboMac closed 2 years ago

DeboMac commented 2 years ago

Hello, and thank you for this crate !

The yup_oauth2 crate is required for any project that wishes to call DriveHub::new. This could lead to some issues when new versions of yup_oauth2 are released. For example, version 6.0.0 of yup_oauth2 has been released, and it is impossible use yup_oauth2 = "*" and google_drive3 = "*" in the same Cargo.toml.

If the yup_oauth2 is exposed with a pub use yup_oauth2, it removes the need having a dependency on yup_oauth2 in the first place, and solves this issue.

Byron commented 2 years ago

Thanks for letting me know, and agree that having necessary external crates that are part of ones API should be re-exported for convenience and to keep dependency hell closed a little longer.

This should be an easy fix if you would like to provide a PR, as I don't know when I get to it. Thanks for your understanding.