Skip to content

Commit

Permalink
fix(doc): add features and nightly stuff to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lsunsi committed Dec 4, 2023
1 parent a954556 commit f66b607
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit f66b607

Please sign in to comment.