Fix docs.rs build
This commit is contained in:
parent
33b36ab7a1
commit
64b3e14976
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user