From d9c81f1f790ec922449beec67c0a648999935c94 Mon Sep 17 00:00:00 2001 From: Frederik Terstappen Date: Mon, 9 Sep 2024 11:03:51 +0200 Subject: [PATCH] docs: Add required-features for examples (#573) Closes #572 Co-authored-by: Frederik Terstappen --- Cargo.toml | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 4cc2467..3dc306a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -176,4 +176,37 @@ tower = { version = "0.4.13" } http-body-util = "0.1.0" [package.metadata.docs.rs] -all-features = true \ No newline at end of file +all-features = true + + +[[example]] +name = "actix_webapi_oauth_interception_basic" +required-features = ["actix"] + +[[example]] +name = "axum_webapi_oauth_interception_basic" +required-features = ["axum"] + +[[example]] +name = "fetch_profile_with_pat" +required-features = ["api", "interceptors"] + +[[example]] +name = "fetch_profile_with_service_account" +required-features = ["api", "interceptors"] + +[[example]] +name = "rocket_webapi_oauth_interception_basic" +required-features = ["rocket"] + +[[example]] +name = "rocket_webapi_oauth_interception_jwtprofile_cached" +required-features = ["rocket", "introspection_cache"] + +[[example]] +name = "rocket_webapi_oauth_interception_jwtprofile" +required-features = ["rocket"] + +[[example]] +name = "service_account_authentication" +required-features = ["credentials"]