diff options
author | 2024-02-06 00:51:43 +0100 | |
---|---|---|
committer | 2024-02-06 00:51:43 +0100 | |
commit | 6f97b62457d924ef690d736c1aabe658f9c5778b (patch) | |
tree | f3a1270a5a964b63e6589ddb36009fe091168116 | |
parent | cb2c8dd86e1f2f0c1eec10d52ee717db6e6f34c2 (diff) | |
parent | 12ea2a18a5f6b4edd5379ed415bb2cb044869a88 (diff) | |
download | iced-6f97b62457d924ef690d736c1aabe658f9c5778b.tar.gz iced-6f97b62457d924ef690d736c1aabe658f9c5778b.tar.bz2 iced-6f97b62457d924ef690d736c1aabe658f9c5778b.zip |
Merge pull request #2188 from fogarecious/add_doc
Add doc to direct developers to enable features for iced::time::every
Diffstat (limited to '')
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/lib.rs | 1 | ||||
-rw-r--r-- | src/time.rs | 9 |
3 files changed, 11 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index af45feb8..28c2fcaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -92,6 +92,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `size_hint` not being called from `element::Explain`. [#2225](https://github.com/iced-rs/iced/pull/2225) - Slow touch scrolling for `TextEditor` widget. [#2140](https://github.com/iced-rs/iced/pull/2140) - `Subscription::map` using unreliable function pointer hash to identify mappers. [#2237](https://github.com/iced-rs/iced/pull/2237) +- Missing feature flag docs for `time::every`. [#2188](https://github.com/iced-rs/iced/pull/2188) Many thanks to... @@ -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::*; |