Skip to content

Commit d9c81f1

Browse files
FrTerstappenFrederik Terstappen
andauthored
docs: Add required-features for examples (#573)
Closes #572 Co-authored-by: Frederik Terstappen <[email protected]>
1 parent d3d3997 commit d9c81f1

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

Cargo.toml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,37 @@ tower = { version = "0.4.13" }
176176
http-body-util = "0.1.0"
177177

178178
[package.metadata.docs.rs]
179-
all-features = true
179+
all-features = true
180+
181+
182+
[[example]]
183+
name = "actix_webapi_oauth_interception_basic"
184+
required-features = ["actix"]
185+
186+
[[example]]
187+
name = "axum_webapi_oauth_interception_basic"
188+
required-features = ["axum"]
189+
190+
[[example]]
191+
name = "fetch_profile_with_pat"
192+
required-features = ["api", "interceptors"]
193+
194+
[[example]]
195+
name = "fetch_profile_with_service_account"
196+
required-features = ["api", "interceptors"]
197+
198+
[[example]]
199+
name = "rocket_webapi_oauth_interception_basic"
200+
required-features = ["rocket"]
201+
202+
[[example]]
203+
name = "rocket_webapi_oauth_interception_jwtprofile_cached"
204+
required-features = ["rocket", "introspection_cache"]
205+
206+
[[example]]
207+
name = "rocket_webapi_oauth_interception_jwtprofile"
208+
required-features = ["rocket"]
209+
210+
[[example]]
211+
name = "service_account_authentication"
212+
required-features = ["credentials"]

0 commit comments

Comments
 (0)