I’m trying to use the google-drive3 crate which lists yup-oauth2 as an optional dependency. I want to get support for oauth2 so I enabled the feature in my Cargo.toml:
version = "1.0.2"
features = [“yup-oauth2”]
Then I tried to use some features of yup-oauth2 but I got the following error:
4 | extern crate yup_oauth2 as oauth2;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can’t find crate
I probably want to use the same version that google-drive3 expects, so I resorted to adding the following to my dependencies section:
yup-oauth2 = “*”
The hope is that the google-drive3 crate forces the right version of the yup-oauth2 package. Is that the right way to do it?