Enable doc_auto_cfg when generating documentation
This commit is contained in:
parent
3220d472ac
commit
cf434236e7
12 changed files with 7 additions and 19 deletions
|
|
@ -1,16 +1,12 @@
|
|||
//! Backends that are only available in native platforms: Windows, macOS, or Linux.
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "tokio",)))]
|
||||
#[cfg(feature = "tokio")]
|
||||
pub mod tokio;
|
||||
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "async-std",)))]
|
||||
#[cfg(feature = "async-std")]
|
||||
pub mod async_std;
|
||||
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "smol",)))]
|
||||
#[cfg(feature = "smol")]
|
||||
pub mod smol;
|
||||
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "thread-pool",)))]
|
||||
#[cfg(feature = "thread-pool")]
|
||||
pub mod thread_pool;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
//! A `smol` backend.
|
||||
|
||||
use futures::Future;
|
||||
|
||||
/// A `smol` executor.
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "smol")))]
|
||||
#[derive(Debug)]
|
||||
pub struct Executor;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
use futures::Future;
|
||||
|
||||
/// A thread pool executor for futures.
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "thread-pool")))]
|
||||
pub type Executor = futures::executor::ThreadPool;
|
||||
|
||||
impl crate::Executor for Executor {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue