diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7503164..b7b89af 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -73,10 +73,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@nightly - run: cargo doc --locked --all-features --no-deps --document-private-items env: - RUSTDOCFLAGS: -Dwarnings + RUSTDOCFLAGS: -Dwarnings --cfg=instant_acme_docsrs semver: name: Check semver compatibility diff --git a/Cargo.lock b/Cargo.lock index 208ec60..3b0d959 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -701,7 +701,7 @@ dependencies = [ [[package]] name = "instant-acme" -version = "0.8.3" +version = "0.8.4" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index a1e454f..bda1c42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "instant-acme" -version = "0.8.3" +version = "0.8.4" edition = "2021" rust-version = "1.70" license = "Apache-2.0" @@ -68,7 +68,7 @@ required-features = ["hyper-rustls"] [package.metadata.docs.rs] # all non-default features except fips (cannot build on docs.rs environment) features = ["aws-lc-rs", "x509-parser", "time"] -rustdoc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "instant_acme_docsrs"] [package.metadata.cargo_check_external_types] allowed_external_types = [ @@ -80,3 +80,6 @@ allowed_external_types = [ "serde::*", "serde_json::*", ] + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ["cfg(instant_acme_docsrs)"] } diff --git a/src/lib.rs b/src/lib.rs index ce9daf9..6e8676a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,7 @@ #![warn(unreachable_pub)] #![warn(missing_docs)] -#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] +#![cfg_attr(instant_acme_docsrs, feature(doc_cfg))] use std::convert::Infallible; use std::error::Error as StdError;