external-types

Create custom factories to inject external types into Rust applications.

Updated May 10, 2026
One-click install
npx skills add https://github.com/jymchng/injectable --skill external-types
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: external-types
Source: https://github.com/jymchng/injectable/tree/main/skills/external-types
Command: npx skills add https://github.com/jymchng/injectable --skill external-types

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of injecting external, third-party types (like databases and HTTP clients) into Rust applications that cannot be annotated with the standard #[injectable] attribute.

Core Features & Use Cases

  • Inject External Types: Facilitates the integration of types from external libraries that are not #[injectable].
  • Custom Factories: Supports the creation of custom factories for external types that require specific setup or configuration.
  • Use Case: Ideal for setting up database connections, HTTP clients, or any other type that needs a more complex initialization process.

Quick Start

To use the external-types skill, define a factory function for your external type and register it as a provider in your application container.

Frequently Asked Questions about external-types

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inject external types in Rust when I cannot use the #[injectable] attribute?

Yes, you can inject database connections and HTTP clients in Rust by creating custom factories. This approach provides specialized initialization logic for complex external types that cannot be directly annotated with #[injectable].

When do I need a custom factory for Rust dependency injection?

Yes, you can inject database connections and HTTP clients in Rust by creating custom factories. This approach provides specialized initialization logic for complex external types that cannot be directly annotated with #[injectable].

What is the best way to set up dependency injection for third-party Rust libraries?

Yes, you can inject database connections and HTTP clients in Rust by creating custom factories. This approach provides specialized initialization logic for complex external types that cannot be directly annotated with #[injectable].

How do I register an external type provider in a Rust application container?

Yes, you can inject database connections and HTTP clients in Rust by creating custom factories. This approach provides specialized initialization logic for complex external types that cannot be directly annotated with #[injectable].

Why does dependency injection fail for external types without the #[injectable] attribute?

Yes, you can inject database connections and HTTP clients in Rust by creating custom factories. This approach provides specialized initialization logic for complex external types that cannot be directly annotated with #[injectable].