diff --git a/Cargo.toml b/Cargo.toml index d1c1be9..5bf7199 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,7 @@ version = "1.33.1" [package.metadata.docs.rs] all-features = true +rustdoc-args = ["--cfg", "docsrs"] [dependencies] arbitrary = { default-features = false, optional = true, version = "1.0" } diff --git a/src/lib.rs b/src/lib.rs index 56ecaaf..cb3c7dc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,7 @@ #![forbid(unsafe_code)] #![deny(clippy::print_stdout, clippy::print_stderr)] #![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] extern crate alloc; mod constants;