Skip to content

Commit 6f97b62

Browse files
authored
Merge pull request #2188 from fogarecious/add_doc
Add doc to direct developers to enable features for iced::time::every
2 parents cb2c8dd + 12ea2a1 commit 6f97b62

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9292
- `size_hint` not being called from `element::Explain`. [#2225](https://github.com/iced-rs/iced/pull/2225)
9393
- Slow touch scrolling for `TextEditor` widget. [#2140](https://github.com/iced-rs/iced/pull/2140)
9494
- `Subscription::map` using unreliable function pointer hash to identify mappers. [#2237](https://github.com/iced-rs/iced/pull/2237)
95+
- Missing feature flag docs for `time::every`. [#2188](https://github.com/iced-rs/iced/pull/2188)
9596

9697
Many thanks to...
9798

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
rustdoc::broken_intra_doc_links
160160
)]
161161
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
162+
#![cfg_attr(docsrs, feature(doc_cfg))]
162163
use iced_widget::graphics;
163164
use iced_widget::renderer;
164165
use iced_widget::style;

src/time.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@
22
pub use iced_core::time::{Duration, Instant};
33

44
#[allow(unused_imports)]
5+
#[cfg_attr(
6+
docsrs,
7+
doc(cfg(any(
8+
feature = "tokio",
9+
feature = "async-std",
10+
feature = "smol",
11+
target_arch = "wasm32"
12+
)))
13+
)]
514
pub use iced_futures::backend::default::time::*;

0 commit comments

Comments
 (0)