What problem does it solve?
This Skill helps you quickly set up a realistic Axum application with dependency injection, streamlining the process of adding a compile-time injection framework to your project.
Core Features & Use Cases
- Compile-Time Dependency Injection: Ensures no runtime reflection is needed, improving performance and reducing overhead.
- Axum Compatibility: Seamlessly integrates with Axum's typed extractor model for easy dependency management.
- Error Handling: Detects circular dependencies, missing registrations, and scope mismatches early in the development process.
- Testing: Allows direct testing of constructors without the container, enabling unit testing with test doubles.
- Use Case: Ideal for starting a new Axum project or adding dependency injection to an existing one to enhance maintainability and scalability.
Quick Start
Start by cloning the repository and running the setup command: cargo new my-axum-app && git clone https://github.com/jymchng/injectable.git my-axum-app/vendor/injectable.