Skip to content

Commit

Permalink
Add docs feature (#2676)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Oct 4, 2023
1 parent ba72e60 commit 41ad38d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/libs/sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ path = "../targets"

[features]
default = []
docs = []
# generated features
Wdk = []
Wdk_Foundation = ["Wdk"]
Expand Down
1 change: 1 addition & 0 deletions crates/libs/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
#![no_std]
#![doc(html_no_source)]
#![allow(non_snake_case, non_upper_case_globals, non_camel_case_types, clippy::all)]
#![cfg_attr(not(feature = "docs"), doc(hidden))]

extern crate self as windows_sys;
mod Windows;
Expand Down
1 change: 1 addition & 0 deletions crates/libs/windows/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ windows-interface = { path = "../interface", version = "0.52.0", optional = tru

[features]
default = []
docs = []
deprecated = []
implement = ["windows-implement", "windows-interface", "windows-core/implement"]
# generated features
Expand Down
1 change: 1 addition & 0 deletions crates/libs/windows/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs

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

extern crate self as windows;
pub use Windows::*;
Expand Down

0 comments on commit 41ad38d

Please sign in to comment.