Fix building docs with `--all-features`

docs
Emi Tatsuo 2 years ago
parent 6c3eeb1db2
commit 2501c9021a
Signed by: Emi
GPG Key ID: 68FAB2E2E6DFC98B

@ -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 {

Loading…
Cancel
Save