From a064241a6baa2b0c2b3c718e144c43056525fbdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Wed, 8 Oct 2025 04:37:13 +0200 Subject: [PATCH] Replace `doc_auto_cfg` with `doc_cfg` See https://github.com/rust-lang/rust/pull/138907 --- futures/src/lib.rs | 2 +- graphics/src/lib.rs | 2 +- renderer/src/lib.rs | 3 ++- runtime/src/lib.rs | 2 +- src/lib.rs | 1 - tiny_skia/src/lib.rs | 2 +- wgpu/src/lib.rs | 2 +- widget/src/lib.rs | 2 +- winit/src/lib.rs | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/futures/src/lib.rs b/futures/src/lib.rs index 31738823..e11ceb66 100644 --- a/futures/src/lib.rs +++ b/futures/src/lib.rs @@ -4,7 +4,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg" )] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] pub use futures; pub use iced_core as core; diff --git a/graphics/src/lib.rs b/graphics/src/lib.rs index b5ef55e7..ed6ec87f 100644 --- a/graphics/src/lib.rs +++ b/graphics/src/lib.rs @@ -7,7 +7,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg" )] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] mod antialiasing; mod settings; mod viewport; diff --git a/renderer/src/lib.rs b/renderer/src/lib.rs index 220542e1..70e8e090 100644 --- a/renderer/src/lib.rs +++ b/renderer/src/lib.rs @@ -1,5 +1,6 @@ //! The official renderer for iced. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] + #[cfg(feature = "wgpu")] pub use iced_wgpu as wgpu; diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index af43edce..691d6d73 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -8,7 +8,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg" )] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] pub mod clipboard; pub mod font; pub mod keyboard; diff --git a/src/lib.rs b/src/lib.rs index c72da926..129fc682 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -473,7 +473,6 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/bdf0430880f5c29443f5f0a0ae4895866dfef4c6/docs/logo.svg" )] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))] use iced_widget::graphics; use iced_widget::renderer; diff --git a/tiny_skia/src/lib.rs b/tiny_skia/src/lib.rs index e5739ea7..085468dc 100644 --- a/tiny_skia/src/lib.rs +++ b/tiny_skia/src/lib.rs @@ -1,5 +1,5 @@ #![allow(missing_docs)] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] pub mod window; mod engine; diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 97a3216b..6b34889e 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -20,7 +20,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg" )] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #![allow(missing_docs)] pub mod layer; pub mod primitive; diff --git a/widget/src/lib.rs b/widget/src/lib.rs index 73f1ed22..3164db2d 100644 --- a/widget/src/lib.rs +++ b/widget/src/lib.rs @@ -2,7 +2,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg" )] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] pub use iced_renderer as renderer; pub use iced_renderer::core; pub use iced_renderer::graphics; diff --git a/winit/src/lib.rs b/winit/src/lib.rs index 8be0e924..c486db23 100644 --- a/winit/src/lib.rs +++ b/winit/src/lib.rs @@ -17,7 +17,7 @@ #![doc( html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg" )] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] pub use iced_program as program; pub use program::core; pub use program::graphics;