Skip to content

Commit

Permalink
docs: show the required feature on docs.rs
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 committed Sep 12, 2024
1 parent 05032dd commit cc5c7f4
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 cc5c7f4

Please sign in to comment.