Skip to content

Commit 79be505

Browse files
authored
chore: enable doc_auto_cfg
Fixes #1498.
1 parent eb276dc commit 79be505

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

glutin/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,14 @@ objc = "0.2.7"
5757

5858
[build-dependencies]
5959
cfg_aliases = "0.1.1"
60+
61+
[package.metadata.docs.rs]
62+
rustdoc-args = ["--cfg", "docsrs"]
63+
targets = [
64+
"aarch64-linux-android",
65+
"x86_64-unknown-linux-gnu",
66+
"x86_64-pc-windows-msvc",
67+
"x86_64-apple-darwin",
68+
"i686-unknown-linux-gnu",
69+
"i686-pc-windows-msvc",
70+
]

glutin/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#![deny(missing_debug_implementations)]
1919
#![deny(missing_docs)]
2020
#![cfg_attr(feature = "cargo-clippy", deny(warnings))]
21+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
2122

2223
#[cfg(all(not(egl_backend), not(glx_backend), not(wgl_backend), not(cgl_backend)))]
2324
compile_error!("Please select at least one api backend");

0 commit comments

Comments
 (0)