Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Writes and reviews Rust crate docs: rustdoc module docs, public API examples, doctests, examples directories, and docs.rs readiness.
91% 95%+5 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
What is the recommended sequence of verification steps immediately prior to running `cargo publish` on a Rust library crate?
Recommends running documentation builds and doctests as a mandatory pre-publishing step
3 of 3 safety checks passed
Use this skill to make Rust library documentation executable, navigable, and useful to downstream crate consumers.
examples/ and reference them from docs.| Task | Load |
|---|---|
| Document a public crate API | guidelines.md, workflows/document-library.md |
| Add doctests or examples | references/rustdoc-patterns.md |
| Prepare docs for publishing | references/rustdoc-patterns.md |
Guidance is transformed and paraphrased from Herbert Wolverson, Advanced Hands-On Rust, especially Chapter 4 on documenting a library and Chapter 15 on sharing crates. Examples are original skeletons.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.