File tree 3 files changed +3
-10
lines changed 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ Examples that use `iroh-blobs` can be found in the `iroh` crate. the iroh crate
78
78
This project is licensed under either of
79
79
80
80
* Apache License, Version 2.0, ([ LICENSE-APACHE] ( LICENSE-APACHE ) or
81
- http://www.apache.org/licenses/LICENSE-2.0 )
81
+ < http://www.apache.org/licenses/LICENSE-2.0 > )
82
82
* MIT license ([ LICENSE-MIT] ( LICENSE-MIT ) or
83
- http://opensource.org/licenses/MIT )
83
+ < http://opensource.org/licenses/MIT > )
84
84
85
85
at your option.
86
86
Original file line number Diff line number Diff line change 26
26
//! [iroh]: https://docs.rs/iroh
27
27
#![ deny( missing_docs, rustdoc:: broken_intra_doc_links) ]
28
28
#![ recursion_limit = "256" ]
29
- #![ cfg_attr( iroh_docsrs, feature( doc_cfg ) ) ]
29
+ #![ cfg_attr( iroh_docsrs, feature( doc_auto_cfg ) ) ]
30
30
31
31
#[ cfg( feature = "cli" ) ]
32
- #[ cfg_attr( iroh_docsrs, doc( cfg( feature = "cli" ) ) ) ]
33
32
pub mod cli;
34
33
#[ cfg( feature = "downloader" ) ]
35
- #[ cfg_attr( iroh_docsrs, doc( cfg( feature = "downloader" ) ) ) ]
36
34
pub mod downloader;
37
35
pub mod export;
38
36
pub mod format;
39
37
pub mod get;
40
38
pub mod hashseq;
41
39
pub mod metrics;
42
40
#[ cfg( feature = "net_protocol" ) ]
43
- #[ cfg_attr( iroh_docsrs, doc( cfg( feature = "net_protocol" ) ) ) ]
44
41
pub mod net_protocol;
45
42
pub mod protocol;
46
43
pub mod provider;
47
44
#[ cfg( feature = "rpc" ) ]
48
- #[ cfg_attr( iroh_docsrs, doc( cfg( feature = "rpc" ) ) ) ]
49
45
pub mod rpc;
50
46
pub mod store;
51
47
pub mod ticket;
Original file line number Diff line number Diff line change @@ -75,14 +75,12 @@ pub fn scan_path(
75
75
}
76
76
77
77
#[ cfg( feature = "rpc" ) ]
78
- #[ cfg_attr( iroh_docsrs, doc( cfg( feature = "rpc" ) ) ) ]
79
78
fn file_name ( path : & Path ) -> anyhow:: Result < String > {
80
79
relative_canonicalized_path_to_string ( path. file_name ( ) . context ( "path is invalid" ) ?)
81
80
}
82
81
83
82
/// Create data sources from a directory.
84
83
#[ cfg( feature = "rpc" ) ]
85
- #[ cfg_attr( iroh_docsrs, doc( cfg( feature = "rpc" ) ) ) ]
86
84
pub fn scan_dir (
87
85
root : PathBuf ,
88
86
wrap : crate :: rpc:: client:: blobs:: WrapOption ,
@@ -129,7 +127,6 @@ pub fn relative_canonicalized_path_to_string(path: impl AsRef<Path>) -> anyhow::
129
127
/// Loads a [`iroh::SecretKey`] from the provided file, or stores a newly generated one
130
128
/// at the given location.
131
129
#[ cfg( feature = "rpc" ) ]
132
- #[ cfg_attr( iroh_docsrs, doc( cfg( feature = "rpc" ) ) ) ]
133
130
pub async fn load_secret_key ( key_path : PathBuf ) -> anyhow:: Result < iroh:: SecretKey > {
134
131
use iroh:: SecretKey ;
135
132
use tokio:: io:: AsyncWriteExt ;
You can’t perform that action at this time.
0 commit comments