Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do some docs improvements #35

Merged
merged 3 commits into from
Oct 31, 2023
Merged

Conversation

tcharding
Copy link
Member

Do a few minor improvements, note please that patch one is not just docs it introduces the rustfmt::skip trick for public re-exports. Its part of "docs improvements" because it includes adding doc(inline). The other two are trivial.

Implement a pattern we have recently been playing with.

Currently public re-exports are listed in a separate section in the HTML
docs. This is kinda clunky, instead use `doc(inline)`.

Separately but related, put the pub re-export statements below other use
statements and use `rustfmt::skip` to stop `rustfmt` from squashing them
together.
No content change, just slight re-wording.
Slightly improve the documentation about using the `package` trick in
the manifest when depending on this crate.
@tcharding tcharding mentioned this pull request Oct 26, 2023
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 0bc4043

@tcharding tcharding mentioned this pull request Oct 30, 2023
Copy link
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 0bc4043

use super::Case;

#[rustfmt::skip] // Keep public re-exports separate.
#[doc(inline)]
pub use self::out_bytes::OutBytes;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this exported in the first place? This should be just mostly-internal type, downstream crates don't need to touch it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its in a private module, without this it would be private to the crate - is that what we want?

Note, changing it is not in scope for this PR so we can still merge.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️ sorry, I thought it's in lib.rs

@apoelstra apoelstra merged commit 9c6df3e into rust-bitcoin:master Oct 31, 2023
9 checks passed
@tcharding tcharding deleted the 10-26-docs branch November 1, 2023 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants