coding-guidelines

安装量: 1.2K
排名: #5861

安装

npx skills add https://github.com/actionbook/rust-skills --skill coding-guidelines

Rust Coding Guidelines (50 Core Rules) Naming (Rust-Specific) Rule Guideline No get_ prefix fn name() not fn get_name() Iterator convention iter() / iter_mut() / into_iter() Conversion naming as_ (cheap &), to_ (expensive), into_ (ownership) Static var prefix G_CONFIG for static , no prefix for const Data Types Rule Guideline Use newtypes struct Email(String) for domain semantics Prefer slice patterns if let [first, .., last] = slice Pre-allocate Vec::with_capacity() , String::with_capacity() Avoid Vec abuse Use arrays for fixed sizes Show more Installs 1.3K Repository actionbook/rust-skills GitHub Stars 1.3K First Seen Jan 23, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

返回排行榜