idiomatic-rust
OfficialIdiomatic Rust patterns for ported C code.
Authorbearcove
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Rust port of C code emphasizes idiomatic Rust patterns. Do not write C in Rust; the goal is correct behavior and safe interfaces rather than literal line-by-line translation.
Core Features & Use Cases
- Prefer data-driven designs by putting behavior with data via methods on structs.
- Use newtypes to encode domain concepts and prevent type confusion.
- Prefer methods over standalone functions to improve readability and IDE support.
- Use enums instead of boolean flags to improve self-documentation and safety.
- Porting C code should preserve behavior while adopting idiomatic Rust techniques.
Quick Start
Review or port a C-inspired Rust module using idiomatic patterns to replace boolean flags and improve type safety.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: idiomatic-rust Download link: https://github.com/bearcove/pikru/archive/main.zip#idiomatic-rust Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.