This repository was archived by the owner on Sep 1, 2023. It is now read-only.
File tree 8 files changed +23
-1
lines changed
8 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ pub mod ip_port;
8
8
pub mod rfc_3339;
9
9
10
10
#[ cfg( feature = "codec_base64" ) ]
11
+ #[ cfg_attr( docsrs, doc( cfg( feature = "codec_base64" ) ) ) ]
11
12
pub mod base64_bytes;
12
13
13
14
#[ cfg( feature = "codec_big_int" ) ]
15
+ #[ cfg_attr( docsrs, doc( cfg( feature = "codec_big_int" ) ) ) ]
14
16
pub mod hex_0x_big_int;
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ pub mod info;
7
7
pub mod platformvm;
8
8
9
9
#[ cfg( feature = "jsonrpc_client" ) ]
10
+ #[ cfg_attr( docsrs, doc( cfg( feature = "jsonrpc_client" ) ) ) ]
10
11
pub mod client;
11
12
12
13
use std:: {
Original file line number Diff line number Diff line change 1
1
#[ cfg( feature = "kms_aws" ) ]
2
+ #[ cfg_attr( docsrs, doc( cfg( feature = "kms_aws" ) ) ) ]
2
3
pub mod aws;
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ pub mod signature;
7
7
pub mod txs;
8
8
9
9
#[ cfg( feature = "libsecp256k1" ) ]
10
+ #[ cfg_attr( docsrs, doc( cfg( feature = "libsecp256k1" ) ) ) ]
10
11
pub mod libsecp256k1;
11
12
12
13
#[ cfg( feature = "mnemonic" ) ]
14
+ #[ cfg_attr( docsrs, doc( cfg( feature = "mnemonic" ) ) ) ]
13
15
pub mod mnemonic;
14
16
15
17
use std:: {
Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ impl Key {
237
237
238
238
/// Derives the private key that uses libsecp256k1.
239
239
#[ cfg( feature = "libsecp256k1" ) ]
240
+ #[ cfg_attr( docsrs, doc( cfg( feature = "libsecp256k1" ) ) ) ]
240
241
pub fn to_libsecp256k1 ( & self ) -> Result < crate :: key:: secp256k1:: libsecp256k1:: PrivateKey > {
241
242
let b = self . to_bytes ( ) ;
242
243
crate :: key:: secp256k1:: libsecp256k1:: PrivateKey :: from_bytes ( & b)
Original file line number Diff line number Diff line change
1
+ #![ cfg_attr( docsrs, feature( doc_cfg) ) ]
2
+
1
3
pub mod avm;
2
4
pub mod choices;
3
5
pub mod codec;
@@ -17,28 +19,37 @@ pub mod utils;
17
19
pub mod verify;
18
20
19
21
#[ cfg( feature = "avalanchego" ) ]
22
+ #[ cfg_attr( docsrs, doc( cfg( feature = "avalanchego" ) ) ) ]
20
23
pub mod avalanchego;
21
24
22
25
#[ cfg( feature = "avalanchego" ) ]
26
+ #[ cfg_attr( docsrs, doc( cfg( feature = "avalanchego" ) ) ) ]
23
27
pub mod coreth;
24
28
25
29
#[ cfg( feature = "subnet_evm" ) ]
30
+ #[ cfg_attr( docsrs, doc( cfg( feature = "subnet_evm" ) ) ) ]
26
31
pub mod subnet_evm;
27
32
28
33
#[ cfg( feature = "xsvm" ) ]
34
+ #[ cfg_attr( docsrs, doc( cfg( feature = "xsvm" ) ) ) ]
29
35
pub mod xsvm;
30
36
31
37
#[ cfg( feature = "evm" ) ]
38
+ #[ cfg_attr( docsrs, doc( cfg( feature = "evm" ) ) ) ]
32
39
pub mod evm;
33
40
34
41
#[ cfg( feature = "message" ) ]
42
+ #[ cfg_attr( docsrs, doc( cfg( feature = "message" ) ) ) ]
35
43
pub mod message;
36
44
37
45
#[ cfg( feature = "wallet" ) ]
46
+ #[ cfg_attr( docsrs, doc( cfg( feature = "wallet" ) ) ) ]
38
47
pub mod wallet;
39
48
40
49
#[ cfg( feature = "proto" ) ]
50
+ #[ cfg_attr( docsrs, doc( cfg( feature = "proto" ) ) ) ]
41
51
pub mod proto;
42
52
43
- #[ cfg( any( doc, feature = "subnet" ) ) ]
53
+ #[ cfg( feature = "subnet" ) ]
54
+ #[ cfg_attr( docsrs, doc( cfg( feature = "subnet" ) ) ) ]
44
55
pub mod subnet;
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ pub struct Server<V> {
45
45
pub vm : Arc < RwLock < V > > ,
46
46
47
47
#[ cfg( feature = "subnet_metrics" ) ]
48
+ #[ cfg_attr( docsrs, doc( cfg( feature = "subnet_metrics" ) ) ) ]
48
49
/// Subnet Prometheus process metrics.
49
50
pub process_metrics : Arc < RwLock < prometheus:: Registry > > ,
50
51
@@ -57,6 +58,7 @@ impl<V: ChainVm> Server<V> {
57
58
Self {
58
59
vm : Arc :: new ( RwLock :: new ( vm) ) ,
59
60
#[ cfg( feature = "subnet_metrics" ) ]
61
+ #[ cfg_attr( docsrs, doc( cfg( feature = "subnet_metrics" ) ) ) ]
60
62
process_metrics : Arc :: new ( RwLock :: new ( prometheus:: default_registry ( ) . to_owned ( ) ) ) ,
61
63
stop_ch,
62
64
}
@@ -710,6 +712,7 @@ where
710
712
}
711
713
712
714
#[ cfg( feature = "subnet_metrics" ) ]
715
+ #[ cfg_attr( docsrs, doc( cfg( feature = "subnet_metrics" ) ) ) ]
713
716
async fn gather (
714
717
& self ,
715
718
_req : Request < Empty > ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ pub mod p;
2
2
pub mod x;
3
3
4
4
#[ cfg( feature = "wallet_evm" ) ]
5
+ #[ cfg_attr( docsrs, doc( cfg( feature = "wallet_evm" ) ) ) ]
5
6
pub mod evm;
6
7
7
8
use std:: {
You can’t perform that action at this time.
0 commit comments