summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar fogarecious <fogarecious@gmail.com>2024-01-08 16:00:17 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-06 00:39:47 +0100
commit1cd22bb6a20a2235b57fba81757eb7de684d3a00 (patch)
treebc32d4dc534ae968ee6dab770f44e7fd016e2790 /src
parentcb2c8dd86e1f2f0c1eec10d52ee717db6e6f34c2 (diff)
downloadiced-1cd22bb6a20a2235b57fba81757eb7de684d3a00.tar.gz
iced-1cd22bb6a20a2235b57fba81757eb7de684d3a00.tar.bz2
iced-1cd22bb6a20a2235b57fba81757eb7de684d3a00.zip
Fix missing feature flag docs for `time::every`
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs1
-rw-r--r--src/time.rs9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a49259ff..3cd145f8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -159,6 +159,7 @@
rustdoc::broken_intra_doc_links
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+#![cfg_attr(docsrs, feature(doc_cfg))]
use iced_widget::graphics;
use iced_widget::renderer;
use iced_widget::style;
diff --git a/src/time.rs b/src/time.rs
index f10f7a5e..e255d751 100644
--- a/src/time.rs
+++ b/src/time.rs
@@ -2,4 +2,13 @@
pub use iced_core::time::{Duration, Instant};
#[allow(unused_imports)]
+#[cfg_attr(
+ docsrs,
+ doc(cfg(any(
+ feature = "tokio",
+ feature = "async-std",
+ feature = "smol",
+ target_arch = "wasm32"
+ )))
+)]
pub use iced_futures::backend::default::time::*;