arc-vs-inject
CommunityCompare the use of Arc<T> and Inject<T> in Rust dependency injection
Authorjymchng
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps in deciding between using Arc<T> and Inject<T> for Rust dependency injection, addressing scenarios of type mismatches and dependency management.
Core Features & Use Cases
- Decision Guide: Offers a comprehensive guide for choosing between Arc<T> and Inject<T> based on specific use cases.
- Usage Examples: Demonstrates how to apply Arc<T> and Inject<T> in different scenarios such as in structs, constructors, and Axum handlers.
- Conversion Methods: Provides instructions on how to convert between Arc<T> and Inject<T> as needed.
Quick Start
Use the arc-vs-inject skill to understand when and how to choose between Arc<T> and Inject<T> for dependency injection in Rust.
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: arc-vs-inject Download link: https://github.com/jymchng/injectable/archive/main.zip#arc-vs-inject 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 620,000+ vetted skills library on demand.