diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3591e10c..e91a6bd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,6 +63,8 @@ jobs: - name: Check docs run: cargo doc --no-deps -p boring -p boring-sys --features rpk,pq-experimental,underscore-wildcards env: + CARGO_BUILD_RUSTDOCFLAGS: "--cfg=docsrs" + RUST_BOOTSTRAP: 1 DOCS_RS: 1 - name: Cargo.toml boring versions consistency shell: bash diff --git a/boring-sys/src/lib.rs b/boring-sys/src/lib.rs index 6f027919..f19ef775 100644 --- a/boring-sys/src/lib.rs +++ b/boring-sys/src/lib.rs @@ -10,7 +10,6 @@ non_upper_case_globals, unused_imports )] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] use std::convert::TryInto; use std::ffi::c_void; diff --git a/boring/src/lib.rs b/boring/src/lib.rs index 4b84b7c5..e9d0e01b 100644 --- a/boring/src/lib.rs +++ b/boring/src/lib.rs @@ -96,8 +96,6 @@ //! Presently all these key agreements are deployed by Cloudflare, but we do not guarantee continued //! support for them. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] - #[macro_use] extern crate bitflags; #[macro_use] diff --git a/hyper-boring/src/lib.rs b/hyper-boring/src/lib.rs index 1822e135..a3dd9255 100644 --- a/hyper-boring/src/lib.rs +++ b/hyper-boring/src/lib.rs @@ -1,6 +1,5 @@ //! Hyper SSL support via BoringSSL. #![warn(missing_docs)] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] use crate::cache::SessionKey; use boring::error::ErrorStack; diff --git a/tokio-boring/src/lib.rs b/tokio-boring/src/lib.rs index 374a0bde..433e2f39 100644 --- a/tokio-boring/src/lib.rs +++ b/tokio-boring/src/lib.rs @@ -11,7 +11,6 @@ //! [`boring`] crate, on which this crate is built. Configuration of TLS parameters is still //! primarily done through the [`boring`] crate. #![warn(missing_docs)] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] use boring::ssl::{ self, ConnectConfiguration, ErrorCode, MidHandshakeSslStream, ShutdownResult, SslAcceptor,