Skip to content

Commit

Permalink
Enable 'doc_cfg' only when supported.
Browse files Browse the repository at this point in the history
Closes #177.
  • Loading branch information
SergioBenitez committed Dec 29, 2021
1 parent 2ffdb96 commit 8871b9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ hkdf = { version = "0.12.0", optional = true }
subtle = { version = "2.3", optional = true }

[build-dependencies]
version_check = "0.9"
version_check = "0.9.4"

[package.metadata.docs.rs]
all-features = true
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fn main() {
if let Some(true) = version_check::is_feature_flaggable() {
if let Some(true) = version_check::supports_feature("doc_cfg") {
println!("cargo:rustc-cfg=nightly");
}
}

0 comments on commit 8871b9a

Please sign in to comment.