diff --git a/src/lib.rs b/src/lib.rs index 5039e39..142e61d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ #![warn(missing_docs)] +#![feature(doc_cfg)] //! Kochab is an ergonomic and intuitive library for quickly building highly functional //! and advanced Gemini applications on either SCGI or raw Gemini. //! @@ -180,7 +181,7 @@ #[macro_use] extern crate log; -#[cfg(all(feature = "gemini_srv", feature = "scgi_srv"))] +#[cfg(all(feature = "gemini_srv", feature = "scgi_srv", not(doc)))] compile_error!("Please enable only one of either the `gemini_srv` or `scgi_srv` features on the kochab crate"); #[cfg(not(any(feature = "gemini_srv", feature = "scgi_srv")))] @@ -311,7 +312,7 @@ impl ServerInner { &self, #[cfg(feature = "gemini_srv")] stream: TcpStream, - #[cfg(feature = "scgi_srv")] + #[cfg(all(feature = "scgi_srv", not(feature = "gemini_srv")))] stream: impl AsyncWrite + AsyncRead + Unpin + Send, ) -> Result<()> { let fut_accept_request = async {