File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -61,3 +61,8 @@ name = "proto"
61
61
path = " benches/encoding/proto.rs"
62
62
harness = false
63
63
required-features = [" protobuf" ]
64
+
65
+ # Passing arguments to the docsrs builder in order to properly document cfg's.
66
+ # More information: https://docs.rs/about/builds#cross-compiling
67
+ [package .metadata .docs .rs ]
68
+ all-features = true
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use std::rc::Rc;
13
13
use std:: sync:: Arc ;
14
14
15
15
#[ cfg( feature = "protobuf" ) ]
16
+ #[ cfg_attr( docsrs, doc( cfg( feature = "protobuf" ) ) ) ]
16
17
pub mod protobuf;
17
18
pub mod text;
18
19
Original file line number Diff line number Diff line change 3
3
#![ deny( unused) ]
4
4
#![ forbid( unsafe_code) ]
5
5
#![ warn( missing_debug_implementations) ]
6
+ #![ cfg_attr( docsrs, feature( doc_cfg) ) ]
6
7
7
8
//! Client library implementation of the [Open Metrics
8
9
//! specification](https://github.com/OpenObservability/OpenMetrics). Allows
You can’t perform that action at this time.
0 commit comments