-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(*): Use doc-auto-cfg feature (#3029)
## Description This switches from the doc-cfg feature which needs an explicit annotation to the doc-auto-cfg feature which does not need this. We already had several places where the docs and actual features were out of sync. So hopefully this will work better. doc-auto-cfg does not seem perfect and may miss some things. E.g. one difference I noticed is that it does not seem to surface the "test" feature when we do `any(test, feature = "something")`. But I'm thinking that might be a reasonable price to pay here. ## Breaking Changes <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [x] Tests if relevant. - [x] All breaking changes documented.
- Loading branch information
Showing
17 changed files
with
6 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
//! Base types and utilities for Iroh | ||
#![cfg_attr(iroh_docsrs, feature(doc_cfg))] | ||
#![cfg_attr(iroh_docsrs, feature(doc_auto_cfg))] | ||
|
||
#[cfg(feature = "base32")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "base32")))] | ||
pub mod base32; | ||
#[cfg(feature = "hash")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "hash")))] | ||
pub mod hash; | ||
#[cfg(feature = "key")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "key")))] | ||
pub mod key; | ||
#[cfg(feature = "key")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "key")))] | ||
pub mod node_addr; | ||
#[cfg(feature = "relay")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "relay")))] | ||
pub mod relay_map; | ||
#[cfg(any(feature = "relay", feature = "key"))] | ||
mod relay_url; | ||
#[cfg(feature = "base32")] | ||
#[cfg_attr(iroh_docsrs, doc(cfg(feature = "base32")))] | ||
pub mod ticket; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters