rust-blockchain-dev

Installation
SKILL.md

Rust & Blockchain Development Guidelines

This skill provides comprehensive Rust development best practices with emphasis on blockchain development patterns. It auto-activates when working on Rust files or discussing Rust/blockchain topics.

Quick Reference Checklist

When writing Rust code, always:

  1. Use inline string interpolation: format!("{name}") not format!("{}", name)
  2. Consolidate imports at file top: All use statements in single group
  3. Use checked arithmetic: value.checked_add() not value + amount
  4. Avoid .unwrap(): Use .expect() with clear reasoning or Result<T, E>
  5. Document all pub items: Add doc-comments for public APIs
  6. Add // SAFETY: comments: Required for all unsafe blocks
  7. Run before commit: cargo +nightly fmt --all and cargo clippy
  8. Prefer obvious over clever: Write idiomatic, maintainable Rust
  9. Keep dependencies sorted: Alphabetize [dependencies] in Cargo.toml
  10. Meaningful commits: Self-contained, logical commit history
Installs
3
GitHub Stars
213
First Seen
Jan 24, 2026
rust-blockchain-dev — liuchengxu/dotfiles