From f66b607a19647e67a54358a866d3812166dff647 Mon Sep 17 00:00:00 2001 From: Lucas Sunsi Abreu Date: Mon, 4 Dec 2023 08:53:41 -0300 Subject: [PATCH] fix(doc): add features and nightly stuff to doc --- Cargo.toml | 4 ++++ src/lib.rs | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) 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;