rust-docs-guidelines

Standards to follow when writing Rust documentation.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "rust-docs-guidelines" with this command: npx skills add redisearch/redisearch/redisearch-redisearch-rust-docs-guidelines

Rust Docs Guidelines

Standards to follow when writing Rust documentation.

Guidelines

  • Key concepts should be explained only once. All other documentation should use an intra-documentation link to the first explanation.

  • Always use an intra-documentation link when mentioning a Rust symbol (type, function, constant, etc.).

  • Avoid referring to specific lines or line ranges, as they may change over time. Use line comments if the documentation needs to be attached to a specific code section inside a function/method body.

  • Focus on why, not how. In particular, avoid explaining trivial implementation details in line comments.

  • Refer to constants using intra-documentation links. Don't hard-code their values in the documentation of other items.

  • Intra-documentation links to private items are preferable to duplication. Add #[allow(rustdoc::private_intra_doc_links)] where relevant.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

write-rust-tests

No summary provided by upstream source.

Repository SourceNeeds Review
General

check-rust-coverage

No summary provided by upstream source.

Repository SourceNeeds Review
General

rust-tests-guidelines

No summary provided by upstream source.

Repository SourceNeeds Review
General

analyze-rust-ffi-crate-surface

No summary provided by upstream source.

Repository SourceNeeds Review