m02-resource
๐ฏSkillfrom actionbook/rust-skills
Guides developers in selecting the right smart pointer and resource management strategy based on ownership, thread safety, and design constraints.
Part of
actionbook/rust-skills(35 items)
Installation
npx skills add ZhangHanDong/rust-skillscargo install coworkgit clone https://github.com/ZhangHanDong/rust-skills.git/plugin marketplace add ZhangHanDong/rust-skillsSkill Details
"CRITICAL: Use for smart pointers and resource management. Triggers: Box, Rc, Arc, Weak, RefCell, Cell, smart pointer, heap allocation, reference counting, RAII, Drop, should I use Box or Rc, when to use Arc vs Rc, ๆบ่ฝๆ้, ๅผ็จ่ฎกๆฐ, ๅ ๅ้ "
More from this repository10
Comprehensive Rust development assistant with meta-question routing, coding guidelines, version queries, and ecosystem support
Provides comprehensive Rust coding guidelines covering naming conventions, best practices, error handling, memory management, concurrency, and code style recommendations.
Performs safe Rust refactoring by analyzing symbol references, dependencies, and potential impacts using Language Server Protocol (LSP) operations.
Guides domain modeling in Rust by helping identify entities, value objects, aggregates, and their ownership patterns with domain-driven design principles.
Enforces compile-time type safety by preventing invalid states through type-level design techniques like newtypes, type states, and phantom types.
Designs comprehensive domain error handling strategies with categorization, recovery mechanisms, and contextual error management for different audiences.
Retrieves and provides comprehensive Rust and crate information, including versions, features, documentation, and changelogs from authoritative sources.
Explores Rust trait implementations, revealing which types implement specific traits and their implementation details using LSP.
Guides developers in choosing zero-cost abstractions by analyzing type system errors and runtime polymorphism needs in Rust.
Generates and visualizes Rust function call graphs using LSP, revealing function relationships and call hierarchies.