Browse Source

Merge pull request #1284 from Demonthos/fix-fullstack-docs

Fix Fullstack docs building
Jonathan Kelley 1 year ago
parent
commit
3e96dda7c7
1 changed files with 5 additions and 5 deletions
  1. 5 5
      packages/fullstack/src/server_fn.rs

+ 5 - 5
packages/fullstack/src/server_fn.rs

@@ -36,10 +36,10 @@ impl ServerFnTraitObj {
     }
     }
 }
 }
 
 
-#[cfg(any(feature = "ssr", doc))]
+#[cfg(feature = "ssr")]
 server_fn::inventory::collect!(ServerFnTraitObj);
 server_fn::inventory::collect!(ServerFnTraitObj);
 
 
-#[cfg(any(feature = "ssr", doc))]
+#[cfg(feature = "ssr")]
 /// Middleware for a server function
 /// Middleware for a server function
 pub struct ServerFnMiddleware {
 pub struct ServerFnMiddleware {
     /// The prefix of the server function.
     /// The prefix of the server function.
@@ -50,7 +50,7 @@ pub struct ServerFnMiddleware {
     pub middleware: fn() -> Vec<std::sync::Arc<dyn crate::layer::Layer>>,
     pub middleware: fn() -> Vec<std::sync::Arc<dyn crate::layer::Layer>>,
 }
 }
 
 
-#[cfg(any(feature = "ssr", doc))]
+#[cfg(feature = "ssr")]
 pub(crate) static MIDDLEWARE: once_cell::sync::Lazy<
 pub(crate) static MIDDLEWARE: once_cell::sync::Lazy<
     std::collections::HashMap<
     std::collections::HashMap<
         (&'static str, &'static str),
         (&'static str, &'static str),
@@ -69,14 +69,14 @@ pub(crate) static MIDDLEWARE: once_cell::sync::Lazy<
     map
     map
 });
 });
 
 
-#[cfg(any(feature = "ssr", doc))]
+#[cfg(feature = "ssr")]
 server_fn::inventory::collect!(ServerFnMiddleware);
 server_fn::inventory::collect!(ServerFnMiddleware);
 
 
 #[cfg(any(feature = "ssr", doc))]
 #[cfg(any(feature = "ssr", doc))]
 /// A server function that can be called on serializable arguments and returns a serializable result.
 /// A server function that can be called on serializable arguments and returns a serializable result.
 pub type ServerFunction = server_fn::SerializedFnTraitObj<()>;
 pub type ServerFunction = server_fn::SerializedFnTraitObj<()>;
 
 
-#[cfg(any(feature = "ssr", doc))]
+#[cfg(feature = "ssr")]
 #[allow(clippy::type_complexity)]
 #[allow(clippy::type_complexity)]
 static REGISTERED_SERVER_FUNCTIONS: once_cell::sync::Lazy<
 static REGISTERED_SERVER_FUNCTIONS: once_cell::sync::Lazy<
     std::sync::Arc<std::sync::RwLock<std::collections::HashMap<&'static str, ServerFnTraitObj>>>,
     std::sync::Arc<std::sync::RwLock<std::collections::HashMap<&'static str, ServerFnTraitObj>>>,