Fix feature guards in rest_api related to oauth
This allows the 'oauth' feature to build by itself.
@@ -83,8 +83,10 @@ use percent_encoding::{AsciiSet, CONTROLS};
#[cfg(feature = "oauth")]
use std::boxed::Box;
+#[cfg(all(feature = "oauth", feature = "rest-api-actix-web-1"))]
+use crate::oauth::rest_api::OAuthResourceProvider;
#[cfg(feature = "oauth")]
-use crate::oauth::{rest_api::OAuthResourceProvider, store::InflightOAuthRequestStore};
+use crate::oauth::store::InflightOAuthRequestStore;
pub use errors::{RequestError, RestApiServerError};
@@ -103,8 +105,8 @@ pub use actix_web_1::{
feature = "authorization",
feature = "biome-credentials",
feature = "biome-key-management",
- feature = "oauth",
feature = "registry",
+ all(feature = "oauth", feature = "rest-api-actix-web-1"),
))]
pub(crate) const SPLINTER_PROTOCOL_VERSION: u32 = 2;
