forked from rustls/rustls-ffi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make rustdoc rendered output better (rustls#156)
Previously, rustdoc didn't render most of our types and functions, because they weren't brought in with `pub mod` or `pub use`. This change makes everything public that should be. Also, some internal-only things were accidentally public; made those pub(crate). Wrapped most method-like functions in an `impl` block, so they become associated functions and are listed on their struct's page rather than on separate pages by themselves. Hide all macros, because they are internal implementation details. Fix some leftover places where comments referred to `rustls_client_session` or `rustls_server_session`. This change doesn't affect visibility or naming of symbols in the built C library, just how rustdoc renders things. Note: rustdoc probably isn't the best overall tool for documenting this library, since it presents function signatures with Rust syntax and types rather than C syntax and types. However, it's handy for navigation and seeing how things fit together.
- Loading branch information
Showing
11 changed files
with
1,380 additions
and
1,337 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.