Fix building docs with --all-features
This commit is contained in:
parent
6c3eeb1db2
commit
2501c9021a
|
@ -1,4 +1,5 @@
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
|
#![feature(doc_cfg)]
|
||||||
//! Kochab is an ergonomic and intuitive library for quickly building highly functional
|
//! Kochab is an ergonomic and intuitive library for quickly building highly functional
|
||||||
//! and advanced Gemini applications on either SCGI or raw Gemini.
|
//! and advanced Gemini applications on either SCGI or raw Gemini.
|
||||||
//!
|
//!
|
||||||
|
@ -180,7 +181,7 @@
|
||||||
|
|
||||||
#[macro_use] extern crate log;
|
#[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");
|
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")))]
|
#[cfg(not(any(feature = "gemini_srv", feature = "scgi_srv")))]
|
||||||
|
@ -311,7 +312,7 @@ impl ServerInner {
|
||||||
&self,
|
&self,
|
||||||
#[cfg(feature = "gemini_srv")]
|
#[cfg(feature = "gemini_srv")]
|
||||||
stream: TcpStream,
|
stream: TcpStream,
|
||||||
#[cfg(feature = "scgi_srv")]
|
#[cfg(all(feature = "scgi_srv", not(feature = "gemini_srv")))]
|
||||||
stream: impl AsyncWrite + AsyncRead + Unpin + Send,
|
stream: impl AsyncWrite + AsyncRead + Unpin + Send,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
let fut_accept_request = async {
|
let fut_accept_request = async {
|
||||||
|
|
Loading…
Reference in a new issue