mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
docs: fix cfg for docsrs
This commit is contained in:
parent
200047a8bc
commit
eb29d84169
2 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
use std::{future::Future, pin::Pin, sync::OnceLock};
|
use std::{future::Future, pin::Pin, sync::OnceLock};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
#[cfg(feature = "browser")]
|
#[cfg(feature = "browser")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "browser")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "browser")))]
|
||||||
|
|
Loading…
Reference in a new issue