-
Notifications
You must be signed in to change notification settings - Fork 741
docs: minor improvements to CryptoProvider doc #2353
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
docs: minor improvements to CryptoProvider doc #2353
Conversation
@@ -120,7 +120,7 @@ pub use crate::suites::CipherSuiteCommon; | |||
/// provider (dynamically). | |||
/// | |||
/// For example, if we want to make a provider that just overrides key loading in the config builder | |||
/// API ([`ConfigBuilder::with_single_cert`] etc.), it might look like this: | |||
/// API (with [`ConfigBuilder::with_single_cert`], etc.), it might look like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without these updates, the line seems to breaks right after API (
in my browser.
With these updates, the line seems to break after API (with
in my browser.
I think this is a slight improvement, wonder if anyone can think of something better for this.
@@ -212,7 +212,7 @@ pub struct CryptoProvider { | |||
/// Source of cryptographically secure random numbers. | |||
pub secure_random: &'static dyn SecureRandom, | |||
|
|||
/// Provider for loading private [SigningKey]s from [PrivateKeyDer]. | |||
/// Provider for loading private [`SigningKey`]s from [`PrivateKeyDer`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I try cargo doc
in my local machine, which is mac M2, it renders [PrivateKeyDer]
with no link. I suspect that this is because docs for rustls-pki-types
are rendered with no platform support for arm(64). I am pretty surprised as rustls-pki-types
seems to be supported for all major platforms.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2353 +/- ##
=======================================
Coverage 94.89% 94.89%
=======================================
Files 103 103
Lines 24274 24274
=======================================
Hits 23034 23034
Misses 1240 1240 ☔ View full report in Codecov by Sentry. |
Benchmark resultsInstruction countsSignificant differencesThere are no significant instruction count differences Other differencesClick to expand
Wall-timeSignificant differencesThere are no significant wall-time differences Other differencesClick to expand
Additional informationCheckout details:
|
I just pushed another update, guessing it will miss the merge queue. I guess I will open another PR for this. |
@@ -110,7 +110,7 @@ pub use crate::suites::CipherSuiteCommon; | |||
/// | |||
/// # Making a custom `CryptoProvider` | |||
/// | |||
/// Your goal will be to populate a [`crypto::CryptoProvider`] struct instance. | |||
/// Your goal will be to populate an instance of this [`crypto::CryptoProvider`] struct. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to do this update a little differently, thankfully it missed the merge queue. I would like to remove the brackets, as it seems pretty useless for this page to reference itself here. Using CryptoProvider
with no brackets also seems more consistent with how this is done elsewhere for CryptoProvider
in the documentation. PR should be coming soon.
UPDATE NOW PROPOSED - #2355
STATUS: I think this should be ready for review. I made comments on a couple things I noticed, don't think they should be blocking. Thanks.