Rust Async
Advanced async patterns expert. Handles Stream processing, backpressure control, select/join operations, cancellation, Future trait implementation, and async runtime optimization.
Install
npx skills add huiali/rust-skills --skill rust-asyncgit clone --depth 1 https://github.com/huiali/rust-skills.git /tmp/rust-skills
mkdir -p ~/.claude/skills
cp -r /tmp/rust-skills/.codex/skills/rust-async ~/.claude/skills/rust-asyncPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
## Solution Patterns
### Pattern 1: Stream Processing
```rust
use tokio_stream::{self as stream, StreamExt};
async fn process_stream(stream: impl Stream<Item = Data>) {
stream
.chunks(100) // Batch processing
.for_each(|batch| async {
process_batch(batch).await;
})
.await;
}
```
**When to use**: Processing continuous data flows (websockets, file streams, API pagination).
**Key insight**: Streams are async iterators - pull-based, lazy evaluation.
### Pattern 2: Backpressure Control
```rust
use tokio::sync::Semaphore;
use std::sync::Arc;
let semaphore = Arc::new(Semaphore::new(10)); // Max 10 concurrent
let stream = tokio_stream::iter(0..1000)
.map(|i| {
let permit = semaphore.clone().acquire_owned();
async move {
let _permit = permit.await?;
process(i).await
}
})
.buffer_unordered(100); // Max 100 buffered futures
```
**When to use**: Prevent overwhelming downstream systems or resource exhaustion.
**Trade-offs**: Adds latency but prevents overload.
### Pattern 3: Select MultiplexingDetails
- Skill name
rust-async- Repository
- huiali/rust-skills
- Path
.codex/skills/rust-async/SKILL.md- License
- MIT
- Repo updated
- 9 February 2026
FAQ
What does the Rust Async skill do?
Advanced async patterns expert. Handles Stream processing, backpressure control, select/join operations, cancellation, Future trait implementation, and async runtime optimization.
How do I install the Rust Async skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add huiali/rust-skills --skill rust-async. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Rust Async popular?
It lives in huiali/rust-skills, which has 49 GitHub stars and 7 forks.
Related skills
Rust Actor
49huiali/rust-skills
Actor model expert covering message passing, state isolation, supervision trees, deadlock prevention, fault tolerance, Actix framework, and Erlang-style concurrency patterns.
Rust Anti Pattern
49huiali/rust-skills
Rust anti-patterns and common mistakes expert. Handles code review issues with clone abuse, unwrap in production, String misuse, index loops, and refactoring guidance.
Rust Async Pattern
49huiali/rust-skills
Advanced async patterns expert covering Stream implementation, zero-copy buffers, tokio::spawn lifetimes, plugin system scheduling, tonic streaming, and async lifetime management.
Rust Auth
49huiali/rust-skills
Authentication and authorization expert covering JWT, API keys, OAuth, RBAC, password hashing, distributed token storage, and session management patterns.
Rust Cache
49huiali/rust-skills
Caching and distributed storage expert covering Redis, connection pools, TTL strategies, cache patterns (Cache-Aside, Write-Through), invalidation, and performance optimization.
Rust
48martinholovsky/claude-skills-generator
Systems programming expertise for Tauri desktop application backend development with memory safety and performance optimization
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.