From 1cd22bb6a20a2235b57fba81757eb7de684d3a00 Mon Sep 17 00:00:00 2001 From: fogarecious Date: Mon, 8 Jan 2024 16:00:17 +0100 Subject: [PATCH 1/2] Fix missing feature flag docs for `time::every` --- src/lib.rs | 1 + src/time.rs | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index a49259fff4..3cd145f848 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 f10f7a5efd..e255d7513c 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::*; From 12ea2a18a5f6b4edd5379ed415bb2cb044869a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 6 Feb 2024 00:41:10 +0100 Subject: [PATCH 2/2] Update `CHANGELOG` --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index af45feb8b6..28c2fcaac6 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...