From eb29d84169cc076433ba806510fb940fa440315a Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Wed, 24 Jul 2024 07:56:10 -0400 Subject: [PATCH] docs: fix cfg for docsrs --- any_spawner/src/lib.rs | 1 + hydration_context/src/lib.rs | 1 + 2 files changed, 2 insertions(+) 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")))]