docs: fix cfg for docsrs

This commit is contained in:
Greg Johnston 2024-07-24 07:56:10 -04:00
parent 200047a8bc
commit eb29d84169
2 changed files with 2 additions and 0 deletions

View file

@ -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;

View file

@ -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")))]