diff --git a/Cargo.toml b/Cargo.toml index 87243f32..915a26a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "abci-rs" -version = "0.4.1" +version = "0.4.2" authors = ["Devashish Dixit "] license = "MIT/Apache-2.0" description = "A Rust crate for creating ABCI applications" @@ -16,6 +16,10 @@ edition = "2018" [lib] name = "abci" +[package.metadata.docs.rs] +features = ["doc"] +rustdoc-args = ["--cfg", "feature=\"doc\""] + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] diff --git a/src/lib.rs b/src/lib.rs index 5923ab96..69fe8cd5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,7 +56,7 @@ //! //! - Tendermint v0.32.0 //! - ABCI v0.16.0 -#![cfg_attr(any(docsrs, feature = "doc"), feature(doc_cfg))] +#![cfg_attr(feature = "doc", feature(doc_cfg))] #[cfg(all(feature = "async-std", feature = "tokio"))] compile_error!("Features `async-std` and `tokio` are mutually exclusive"); diff --git a/src/server.rs b/src/server.rs index a7c48151..251e714b 100644 --- a/src/server.rs +++ b/src/server.rs @@ -267,7 +267,7 @@ pub enum Address { Tcp(SocketAddr), /// UDS Address #[cfg(unix)] - #[cfg_attr(any(docsrs, feature = "doc"), doc(cfg(unix)))] + #[cfg_attr(feature = "doc", doc(cfg(unix)))] Uds(PathBuf), }