diff --git a/any_spawner/src/lib.rs b/any_spawner/src/lib.rs index 455d28c76..88493a175 100644 --- a/any_spawner/src/lib.rs +++ b/any_spawner/src/lib.rs @@ -27,6 +27,7 @@ #![forbid(unsafe_code)] #![deny(missing_docs)] +#![cfg_attr(docsrs, feature(doc_cfg))] use std::{future::Future, pin::Pin, sync::OnceLock}; use thiserror::Error; diff --git a/hydration_context/src/lib.rs b/hydration_context/src/lib.rs index 6d5a48a8d..402c5765c 100644 --- a/hydration_context/src/lib.rs +++ b/hydration_context/src/lib.rs @@ -10,6 +10,7 @@ #![deny(missing_docs)] #![forbid(unsafe_code)] +#![cfg_attr(docsrs, feature(doc_cfg))] #[cfg(feature = "browser")] #[cfg_attr(docsrs, doc(cfg(feature = "browser")))]