Skip to content

Commit 41ad38d

Browse files
authored
Add docs feature (#2676)
1 parent ba72e60 commit 41ad38d

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

crates/libs/sys/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ path = "../targets"
2121

2222
[features]
2323
default = []
24+
docs = []
2425
# generated features
2526
Wdk = []
2627
Wdk_Foundation = ["Wdk"]

crates/libs/sys/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
55
#![no_std]
66
#![doc(html_no_source)]
77
#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, clippy::all)]
8+
#![cfg_attr(not(feature = "docs"), doc(hidden))]
89

910
extern crate self as windows_sys;
1011
mod Windows;

crates/libs/windows/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ windows-interface = { path = "../interface", version = "0.52.0", optional = tru
2525

2626
[features]
2727
default = []
28+
docs = []
2829
deprecated = []
2930
implement = ["windows-implement", "windows-interface", "windows-core/implement"]
3031
# generated features

crates/libs/windows/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
66

77
#![doc(html_no_source)]
88
#![allow(non_snake_case, clashing_extern_declarations, non_upper_case_globals, non_camel_case_types, clippy::all)]
9+
#![cfg_attr(not(feature = "docs"), doc(hidden))]
910

1011
extern crate self as windows;
1112
pub use Windows::*;

0 commit comments

Comments
 (0)