File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ jobs:
142142 - name : cargo doc (rustls; all features)
143143 run : cargo doc --locked --all-features --no-deps --document-private-items
144144 env :
145- RUSTDOCFLAGS : -Dwarnings
145+ RUSTDOCFLAGS : -Dwarnings --cfg=rustls_native_certs_docsrs
146146
147147 format :
148148 name : Format
Original file line number Diff line number Diff line change @@ -32,3 +32,9 @@ openssl-probe = "0.2"
3232
3333[target .'cfg(target_os = "macos")' .dependencies ]
3434security-framework = " 3"
35+
36+ [lints .rust ]
37+ unexpected_cfgs = { level = " warn" , check-cfg = [ ' cfg(rustls_native_certs_docsrs)' ] }
38+
39+ [package .metadata .docs .rs ]
40+ rustdoc-args = [" --cfg" , " rustls_native_certs_docsrs" ]
Original file line number Diff line number Diff line change 1919//! ```
2020
2121// Enable documentation for all features on docs.rs
22- #![ cfg_attr( docsrs , feature( doc_cfg) ) ]
22+ #![ cfg_attr( rustls_native_certs_docsrs , feature( doc_cfg) ) ]
2323
2424use std:: error:: Error as StdError ;
2525use std:: path:: { Path , PathBuf } ;
You can’t perform that action at this time.
0 commit comments