@@ -32,7 +32,7 @@ clap = "2"
32
32
http- body- util = " 0.1"
33
33
% endif
34
34
hyper = " 1"
35
- hyper- rustls = { version = " 0.27" , default- features = false }
35
+ hyper- rustls = { version = " 0.27" , default- features = false, features = [ " http2 " , " rustls-native-certs " , " native-tokio " ] }
36
36
hyper- util = " 0.1"
37
37
mime = " 0.3"
38
38
serde = { version = " 1" , features = [" derive" ] }
@@ -47,7 +47,7 @@ tokio = { version = "1", features = ["full"] }
47
47
% endif
48
48
url = " 2"
49
49
utoipa = { version = " 4" , optional = true }
50
- yup- oauth2 = { version = " 12" , optional = true }
50
+ yup- oauth2 = { version = " 12" , default - features = false, optional = true }
51
51
52
52
google- apis- common = { path = " ../../google-apis-common" , version = " 7" }
53
53
% if cargo.get(' is_executable' ):
@@ -71,7 +71,22 @@ version = "${util.crate_version()}"
71
71
72
72
% if not cargo.get(' is_executable' ):
73
73
[features]
74
- default = ["yup-oauth2"]
74
+ default = ["yup-oauth2", "ring" ]
75
75
utoipa = ["dep:utoipa"]
76
+
77
+ ## Enable OAuth 2.0 authentication support via the `yup-oauth2` crate
76
78
yup-oauth2 = ["dep:yup-oauth2", "google-apis-common/yup-oauth2"]
79
+
80
+ ## Enable Service Account support for the `yup-oauth2 crate
81
+ yup-oauth2-service-account = ["yup-oauth2", "yup-oauth2/service-account", "google-apis-common/yup-oauth2-service-account"]
82
+
83
+ ## Use AWS-LC as the crypto backend
84
+ ##
85
+ ## Either this feature or `ring` must be enabled when enabling `yup-oauth2-service-account`
86
+ aws-lc-rs = ["yup-oauth2?/aws-lc-rs", "google-apis-common/aws-lc-rs", "hyper-rustls/aws-lc-rs"]
87
+
88
+ ## Use Ring as the crypto backend
89
+ ##
90
+ ## Either this feature or `aws-lc-rs` must be enabled when enabling `yup-oauth2-service-account`
91
+ ring = ["yup-oauth2?/ring", "google-apis-common/ring", "hyper-rustls/ring"]
77
92
% endif
0 commit comments