Skip to content

Commit

Permalink
Remove unnecessary doc attributes (#3206)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Aug 16, 2024
1 parent 0e1671c commit f766e5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
16 changes: 6 additions & 10 deletions crates/libs/sys/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#![cfg_attr(
all(
feature = "Win32_Security",
feature = "Win32_System_Threading",
feature = "Win32_UI_WindowsAndMessaging",
),
doc = include_str!("../readme.md")
)]
// fallback if not all features are enabled
#![cfg_attr(not(all(feature = "Win32_Security", feature = "Win32_System_Threading", feature = "Win32_UI_WindowsAndMessaging",)), doc = "Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs>\n\n[Feature search](https://microsoft.github.io/windows-rs/features/#/0.58.0)")]
/*!
Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs>
[Feature search](https://microsoft.github.io/windows-rs/features/#/0.59.0)
*/

#![no_std]
#![doc(html_no_source)]
#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, missing_docs, clippy::all)]
Expand Down
17 changes: 6 additions & 11 deletions crates/libs/windows/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
#![cfg_attr(docsrs, doc = "This is a stub. The latest API documentation is here: <https://microsoft.github.io/windows-docs-rs/>")]
#![cfg_attr(docsrs, doc = "")]
#![cfg_attr(
all(
feature = "Data_Xml_Dom",
feature = "Win32_Security",
feature = "Win32_System_Threading",
feature = "Win32_UI_WindowsAndMessaging",
),
doc = include_str!("../readme.md"),
)]
// fallback if not all features are enabled
#![cfg_attr(all(not(all(feature = "Data_Xml_Dom", feature = "Win32_Security", feature = "Win32_System_Threading", feature = "Win32_UI_WindowsAndMessaging",)), not(docsrs),), doc = "Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs>\n\n[Feature search](https://microsoft.github.io/windows-rs/features/#/0.58.0)")]
/*!
Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs>
[Feature search](https://microsoft.github.io/windows-rs/features/#/0.58.0)
*/

#![cfg(windows)]
#![doc(html_no_source)]
#![allow(non_snake_case, clashing_extern_declarations, non_upper_case_globals, non_camel_case_types, missing_docs, clippy::all)]
Expand Down

0 comments on commit f766e5a

Please sign in to comment.