async-trait
CommunityMake async traits fast and safe.
Authoryankeeinlondon
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Using async functions in trait objects is not natively supported in stable Rust. This skill explains how the #[async_trait] macro enables object-safe async methods, including Send/Sync bounds and performance implications.
Core Features & Use Cases
- Applies #[async_trait] to both trait definitions and implementations to enable async methods on trait objects.
- Documents and compares dynamic dispatch approaches with and without boxing, including the trade-offs of Send vs non-Send variants.
- Provides practical usage patterns for registries, plugins, and dependency-injection scenarios in Rust.
Quick Start
Annotate a trait and its impl with #[async_trait] and start calling async methods on trait objects.
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: async-trait Download link: https://github.com/yankeeinlondon/rusty-biscuit/archive/main.zip#async-trait 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 471,000+ vetted skills library on demand.