task: fix task module feature flags in docs (#7891)

This commit is contained in:
Mattia Pitossi
2026-02-12 12:27:25 +01:00
committed by GitHub
parent 2486d49778
commit 5bcd7c1d09
+5
View File
@@ -549,6 +549,11 @@ cfg_not_sync! {
mod sync;
}
// Currently, task module does not expose any public API outside `rt`
// feature, so we mark it in the docs. This happens only to docs to
// avoid introducing breaking changes by restricting the visibility
// of the task module.
#[cfg_attr(docsrs, doc(cfg(feature = "rt")))]
pub mod task;
cfg_rt! {
pub use task::spawn;