Skip to content

Commit 6b05f0e

Browse files
authored
use auto docs (#21)
also fix links in README.md so we don't get a warning for naked links
1 parent 98e2e17 commit 6b05f0e

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ async fn main() -> anyhow::Result<()> {
8686
This project is licensed under either of
8787

8888
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
89-
http://www.apache.org/licenses/LICENSE-2.0)
89+
<http://www.apache.org/licenses/LICENSE-2.0>)
9090
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
91-
http://opensource.org/licenses/MIT)
91+
<http://opensource.org/licenses/MIT>)
9292

9393
at your option.
9494

src/lib.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,22 @@
3333
//!
3434
//! [paper]: https://arxiv.org/abs/2212.13567
3535
#![deny(missing_docs, rustdoc::broken_intra_doc_links)]
36-
#![cfg_attr(iroh_docsrs, feature(doc_cfg))]
36+
#![cfg_attr(iroh_docsrs, feature(doc_auto_cfg))]
3737

3838
pub mod metrics;
3939
#[cfg(feature = "net")]
40-
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "net")))]
4140
pub mod net;
4241
#[cfg(feature = "engine")]
43-
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "engine")))]
4442
pub mod protocol;
4543
#[cfg(feature = "net")]
46-
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "net")))]
4744
mod ticket;
4845

4946
#[cfg(feature = "engine")]
50-
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "engine")))]
5147
pub mod engine;
5248
#[cfg(feature = "rpc")]
53-
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "rpc")))]
5449
pub mod rpc;
5550

5651
#[cfg(feature = "cli")]
57-
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "cli")))]
5852
pub mod cli;
5953

6054
pub mod actor;
@@ -66,11 +60,9 @@ mod keys;
6660
mod ranger;
6761

6862
#[cfg(feature = "net")]
69-
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "net")))]
7063
#[doc(inline)]
7164
pub use net::ALPN;
7265

7366
#[cfg(feature = "net")]
74-
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "net")))]
7567
pub use self::ticket::DocTicket;
7668
pub use self::{heads::*, keys::*, sync::*};

0 commit comments

Comments
 (0)