Skip to content

Commit

Permalink
docs: show the required feature on docs.rs (#209)
Browse files Browse the repository at this point in the history
see https://docs.rs/about/builds#detecting-docsrs
see https://doc.rust-lang.org/rustdoc/unstable-features.html#doc_auto_cfg-automatically-generate-doccfg

While other projects seem to `--cfg docsrs` in the Cargo.toml this is likely not required (anymore?) as its documented as the way to detect docs.rs
  • Loading branch information
EdJoPaTo authored Sep 13, 2024
1 parent 05032dd commit 160579e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

#[doc(hidden)]
#[cfg(feature = "async-http-client")]
pub use reqwest;
Expand Down

0 comments on commit 160579e

Please sign in to comment.