diff --git a/Cargo.toml b/Cargo.toml index 98ca796..ff8084d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,10 @@ tokio = { version = "1.0.0", features = ["macros"], default-features = false } client = ["dep:reqwest"] server = ["dep:axum"] +[package.metadata.docs.rs] +rustdoc-args = ["--cfg", "docsrs"] +all-features = true + [lints.rust] warnings = "deny" diff --git a/src/lib.rs b/src/lib.rs index 64eccc2..37c661c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ -#![allow(clippy::multiple_crate_versions)] -// socket2 from hyper and tokio +#![cfg_attr(all(doc, docsrs), feature(doc_auto_cfg))] pub mod core; mod serde;