From 8871b9add43177f2f5efc3be08c6f6dc2eb0a41c Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 29 Dec 2021 00:45:42 -0800 Subject: [PATCH] Enable 'doc_cfg' only when supported. Closes #177. --- Cargo.toml | 2 +- build.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 87505433..2b2859da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/build.rs b/build.rs index 99369685..66f1ea21 100644 --- a/build.rs +++ b/build.rs @@ -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"); } }