rust-safety-performance
CommunitySafe Rust: safety and performance guidance.
Authorvincent119
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Rust code that uses unsafe blocks can violate memory safety and hinder performance; this skill provides a consistent set of rules to keep unsafe code sound while optimizing efficiency.
Core Features & Use Cases
- Unsafe 規範(M-UNSAFE): 何時允許 unsafe(FFI 呼叫、效能關鍵路徑、實作底層抽象),並要求必要的安全註解與審核。
- Soundness(M-UNSOUND): 適當驗證與轉換,避免不安全的字串/記憶體轉換造成的崩潰或數據損壞。
- 效能優化與 Profiling:allocators 選擇、Hot Path 優化、避免不必要的 clone、吞吐量提升等實務做法。
- 編譯時最佳化與穩定性:提供編譯時配置建議以提升開發與發布效能。
Quick Start
Apply the rust-safety-performance guidelines to an unsafe Rust module to begin strengthening safety and performance.
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: rust-safety-performance Download link: https://github.com/vincent119/ai-rules-kit/archive/main.zip#rust-safety-performance 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 471,000+ vetted skills library on demand.