rust-rodio-wsl2-audio

Community

Make Rust audio work on WSL2 with rodio.

Authorstrataga
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill fixes Rust audio issues on WSL2 by providing a reliable workaround to make rodio/cpal work with ALSA and PulseAudio routing.

Core Features & Use Cases

  • Compilation workaround: Enables building Rust audio projects on WSL2 by extracting required ALSA dev headers from .deb packages without sudo.
  • Runtime audio routing: Redirects ALSA through PulseAudio under WSLg to produce working sound output.
  • Use Case: Imagine a Rust project that fails with "The system library 'alsa' required by crate 'alsa-sys' was not found"; this Skill provides a reproducible fix.

Quick Start

Follow the steps in SKILL.md to compile ALSA headers and configure PulseAudio routing for WSL2.

Dependency Matrix

Required Modules

None required

Components

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: rust-rodio-wsl2-audio
Download link: https://github.com/strataga/claude-setup/archive/main.zip#rust-rodio-wsl2-audio

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