Rust Async/Await & Module Patterns

Community

Master Rust async and module design.

AuthorGoldziher
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the complexities of managing asynchronous operations and structuring code effectively within Rust applications, particularly when dealing with FFI (Foreign Function Interface) bindings and multi-threaded environments.

Core Features & Use Cases

  • Tokio Runtime Management: Provides patterns for global runtimes, dedicated thread pools, and feature-gated runtimes.
  • FFI Safety: Emphasizes Send + Sync requirements for thread-safe type exposure across language boundaries.
  • Bridging Sync/Async: Offers strategies for integrating asynchronous Rust code with synchronous host languages.
  • Module Organization: Suggests a clear directory structure for separating async and sync code.
  • Testing Async Code: Demonstrates unit and integration testing for asynchronous Rust functions.

Quick Start

Use the Rust Async/Await & Module Patterns skill to understand how to manage Tokio runtimes for FFI bindings.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: Rust Async/Await & Module Patterns
Download link: https://github.com/Goldziher/spikard/archive/main.zip#rust-async-await-module-patterns

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 471,000+ vetted skills library on demand.