File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ pub struct Client {
26
26
}
27
27
28
28
#[ cfg( not( target_arch = "wasm32" ) ) ]
29
+ #[ cfg_attr( docsrs, doc( cfg( not( target_arch = "wasm32" ) ) ) ) ]
29
30
pub struct CrateStream {
30
31
client : Client ,
31
32
filter : CratesQuery ,
@@ -36,6 +37,7 @@ pub struct CrateStream {
36
37
}
37
38
38
39
#[ cfg( not( target_arch = "wasm32" ) ) ]
40
+ #[ cfg_attr( docsrs, doc( cfg( not( target_arch = "wasm32" ) ) ) ) ]
39
41
impl CrateStream {
40
42
fn new ( client : Client , filter : CratesQuery ) -> Self {
41
43
Self {
@@ -49,6 +51,7 @@ impl CrateStream {
49
51
}
50
52
51
53
#[ cfg( not( target_arch = "wasm32" ) ) ]
54
+ #[ cfg_attr( docsrs, doc( cfg( not( target_arch = "wasm32" ) ) ) ) ]
52
55
impl futures:: stream:: Stream for CrateStream {
53
56
type Item = Result < Crate , Error > ;
54
57
@@ -391,6 +394,7 @@ impl Client {
391
394
392
395
/// Get a stream over all crates matching the given [`CratesQuery`].
393
396
#[ cfg( not( target_arch = "wasm32" ) ) ]
397
+ #[ cfg_attr( docsrs, doc( cfg( not( target_arch = "wasm32" ) ) ) ) ]
394
398
pub fn crates_stream ( & self , filter : CratesQuery ) -> CrateStream {
395
399
CrateStream :: new ( self . clone ( ) , filter)
396
400
}
Original file line number Diff line number Diff line change 43
43
44
44
#![ recursion_limit = "128" ]
45
45
#![ deny( missing_docs) ]
46
+ #![ cfg_attr( docsrs, feature( doc_cfg) ) ]
46
47
47
48
mod async_client;
48
49
mod error;
49
50
#[ cfg( not( target_arch = "wasm32" ) ) ]
51
+ #[ cfg_attr( docsrs, doc( cfg( not( target_arch = "wasm32" ) ) ) ) ]
50
52
mod sync_client;
51
53
mod types;
52
54
mod util;
@@ -58,4 +60,5 @@ pub use crate::{
58
60
} ;
59
61
60
62
#[ cfg( not( target_arch = "wasm32" ) ) ]
63
+ #[ cfg_attr( docsrs, doc( cfg( not( target_arch = "wasm32" ) ) ) ) ]
61
64
pub use crate :: sync_client:: SyncClient ;
You can’t perform that action at this time.
0 commit comments