summaryrefslogtreecommitdiffstats
path: root/futures
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-05-11 17:28:51 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-05-11 17:28:51 +0200
commitcf434236e7e15e0fa05e5915b8d4d78dcaf1b7e8 (patch)
tree27d32b10298698c30a5a5abb55e3ce8a143bd184 /futures
parent3220d472ac7ab2d11d6fc61d50bcbf9de91e1def (diff)
downloadiced-cf434236e7e15e0fa05e5915b8d4d78dcaf1b7e8.tar.gz
iced-cf434236e7e15e0fa05e5915b8d4d78dcaf1b7e8.tar.bz2
iced-cf434236e7e15e0fa05e5915b8d4d78dcaf1b7e8.zip
Enable `doc_auto_cfg` when generating documentation
Diffstat (limited to 'futures')
-rw-r--r--futures/src/backend/native.rs4
-rw-r--r--futures/src/backend/native/smol.rs2
-rw-r--r--futures/src/backend/native/thread_pool.rs1
-rw-r--r--futures/src/lib.rs2
4 files changed, 1 insertions, 8 deletions
diff --git a/futures/src/backend/native.rs b/futures/src/backend/native.rs
index 4199ad16..85af2c88 100644
--- a/futures/src/backend/native.rs
+++ b/futures/src/backend/native.rs
@@ -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;
diff --git a/futures/src/backend/native/smol.rs b/futures/src/backend/native/smol.rs
index 30bc8291..00d13d35 100644
--- a/futures/src/backend/native/smol.rs
+++ b/futures/src/backend/native/smol.rs
@@ -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;
diff --git a/futures/src/backend/native/thread_pool.rs b/futures/src/backend/native/thread_pool.rs
index da5d4b9b..c96f2682 100644
--- a/futures/src/backend/native/thread_pool.rs
+++ b/futures/src/backend/native/thread_pool.rs
@@ -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 {
diff --git a/futures/src/lib.rs b/futures/src/lib.rs
index 397fc2d2..34d81e1e 100644
--- a/futures/src/lib.rs
+++ b/futures/src/lib.rs
@@ -16,7 +16,7 @@
)]
#![forbid(unsafe_code, rust_2018_idioms)]
#![allow(clippy::inherent_to_string, clippy::type_complexity)]
-#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, feature(doc_auto_cfg))]
pub use futures;
pub use iced_core as core;