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

Improve documentation and doctests #1741

Merged
merged 5 commits into from Dec 4, 2022
Merged

Conversation

wiktor-k
Copy link
Sponsor Contributor

@wiktor-k wiktor-k commented Dec 1, 2022

This PR aims to provide module descriptions for several modules as well as more elaborate examples for modules I've used.

In openssl::hash I've moved the examples to functions that the example used (hash and hash_xof).

I intentionally modified only the examples I touched and left the others alone (not to inflate the diffs).

It's a little bit challenging to come up with a example that is both short and works across all supported OpenSSL flavors. I hope this will provide a nice starting point for people new to the crate as it shows how to build more complex algorithms out of OpenSSL primitives.

Comments and suggestions welcome! Thanks in advance.

@sfackler
Copy link
Owner

sfackler commented Dec 4, 2022

Thanks!

@sfackler sfackler merged commit 54d4496 into sfackler:master Dec 4, 2022
@wiktor-k wiktor-k deleted the improve-docs branch December 4, 2022 19:55
@wiktor-k
Copy link
Sponsor Contributor Author

wiktor-k commented Dec 5, 2022

@sfackler Can I kindly ask you for a new release of the openssl crate? (I think openssl-sys is also needed due to changes in #1733). Thank you in advance! 🙏

(Context: #1733 (comment))

@sfackler
Copy link
Owner

sfackler commented Dec 6, 2022

Done!

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.

None yet

2 participants