request-scoped

Community

Per-request dependency injection for Rust applications

Authorjymchng
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill unit solves the problem of managing dependencies that require a unique instance per HTTP request in Rust applications, such as database transactions or request-specific state.

Core Features & Use Cases

  • Per-Request Scoping: Ensures that dependencies like database connections are created once per HTTP request, maintaining isolation and avoiding conflicts.
  • Axum Compatibility: Integrates seamlessly with Axum, a Rust web framework, for typed dependency injection.
  • Compile-Time Safety: Catches circular dependencies and missing registrations at compile time, preventing runtime errors.

Quick Start

Use the injectable skill to define a request-scoped dependency in your Axum application.

Dependency Matrix

Required Modules

axuminjectable

Components

scriptsreferences

💻 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: request-scoped
Download link: https://github.com/jymchng/injectable/archive/main.zip#request-scoped

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.