---
title: "cpal 0.18.0 Breaking Changes on crates.io | Since.dev"
description: "What each cpal release removed, renamed or changed: 129 breaking changes in 2 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/cpal
last_updated: 2026-12-04
---

# cpal breaking changes

cpal 0.18.0 (June 6, 2026) is its newest release with breaking changes, 74 of them. The first: Emscripten host removed in cpal 0.18.0. Every breaking API change we have recorded in cpal on crates.io: 129 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.18.2`, released August 16, 2026. [Source repository](https://github.com/RustAudio/cpal)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.17.0](#v-0-17-0) to [0.18.0](#v-0-18-0): 74 breaking changes in 1 version.

## cpal 0.18.0 breaking changes

cpal 0.18.0, released June 6, 2026: 74 breaking changes.

- **Removed**  

Migrate Emscripten builds to wasm32-unknown-unknown with the wasm-bindgen feature. [github.com](https://github.com/RustAudio/cpal/releases/tag/v0.18.0)
- **Removed** `cpal::BackendSpecificError`  

cpal::BackendSpecificError was removed in cpal 0.18.0 [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::BuildStreamError`  

Match on the kind() of cpal::Error instead of BuildStreamError. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::DefaultStreamConfigError`  

DefaultStreamConfigError is gone; match on e.kind() of cpal::Error instead. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::DeviceIdError`  

cpal::DeviceIdError was removed in cpal 0.18.0 [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::DeviceNameError`  

cpal::DeviceNameError was removed in cpal 0.18.0 [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::DevicesError`  

Match on the kind() of cpal::Error instead of the per-operation error enum. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::HostUnavailable`  

The HostUnavailable struct is gone; handle cpal::Error with kind HostUnavailable. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::PauseStreamError`  

PauseStreamError is gone; match on e.kind() of cpal::Error instead. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::platform::EmscriptenHost`  

cpal::platform::EmscriptenHost was removed in cpal 0.18.0 [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::PlayStreamError`  

PlayStreamError is gone; match on e.kind() of cpal::Error instead. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::StreamError`  

Match on the kind() of cpal::Error instead of StreamError. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::StreamInstant::add`  

Use checked_add or checked_sub, or the + and - operators, instead of add and sub. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::StreamInstant::sub`  

Use checked_sub or the - operator instead of sub. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::SupportedStreamConfigsError`  

SupportedStreamConfigsError is gone; match on e.kind() of cpal::Error instead. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal::traits::DeviceTrait::name`  

Use device.description() or device.id() instead of name(). [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Removed** `cpal.platform.AlsaHost`  

Obtain the ALSA host through cpal::host_from_id instead of importing the type. [github.com](https://github.com/RustAudio/cpal/blob/v0.18.0/UPGRADING.md)
- **Removed** `Device.default`  

Use host.default_output_device() or host.default_input_device() instead. [github.com](https://github.com/RustAudio/cpal/blob/v0.18.0/UPGRADING.md)
- **Removed** `emscripten`  

Use wasm32-unknown-unknown with the wasm-bindgen feature and the webaudio host instead. [github.com](https://github.com/RustAudio/cpal/blob/v0.18.0/UPGRADING.md)
- **Renamed** `audio_thread_priority`  

Update the Cargo feature name to realtime-dbus; the realtime feature is available for systems without D-Bus. [github.com](https://github.com/RustAudio/cpal/blob/v0.18.0/UPGRADING.md)
- **Behavior changed**  

Streams on ALSA, CoreAudio and JACK previously started on creation. Now you must call play() on a stream, or its callback will never fire. [github.com](https://github.com/RustAudio/cpal/releases/tag/v0.18.0)
- **Behavior changed**  

Timestamps now reflect when audio reaches hardware instead of when the callback fired, so values differ from before. [github.com](https://github.com/RustAudio/cpal/releases/tag/v0.18.0)
- **Behavior changed**  

WASAPI device names now use FriendlyName instead of DeviceDesc, so names shown to users change. [github.com](https://github.com/RustAudio/cpal/releases/tag/v0.18.0)
- **Behavior changed** `build_output_stream`  

ALSA, CoreAudio and JACK no longer auto-start streams; call play() after building a stream. [github.com](https://github.com/RustAudio/cpal/blob/v0.18.0/UPGRADING.md)
- **Default changed**  

Floats are now preferred over integers, and higher bit depths over lower. Pin F32 explicitly if you relied on the old default. [github.com](https://github.com/RustAudio/cpal/releases/tag/v0.18.0)
- **Default changed** `default_input_config`  

default_input_config now prefers 48 kHz, then 44.1 kHz. Pin 44.1 kHz explicitly if you need it. [github.com](https://github.com/RustAudio/cpal/releases/tag/v0.18.0)
- **Default changed** `default_output_config`  

default_output_config now prefers 48 kHz, then 44.1 kHz. Pin 44.1 kHz explicitly if you need it. [github.com](https://github.com/RustAudio/cpal/releases/tag/v0.18.0)
- **Configuration changed**  

Raise the windows dependency to at least 0.61 in your project. [github.com](https://github.com/RustAudio/cpal/blob/v0.18.0/UPGRADING.md)
- **Signature changed** `cpal::device_description::DeviceDescription::extended`  

Was fn extended(&self) -> &\[String\]; now fn extended(&self) -> impl Iterator\<Item = &str>. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::device_description::DeviceDescriptionBuilder::add_extended_line`  

Was fn add_extended_line(mut self, line: impl Into\<String>) -> Self; now fn add_extended_line(mut self, line: impl AsRef\<str>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::device_description::DeviceDescriptionBuilder::address`  

Was fn address(mut self, address: impl Into\<String>) -> Self; now fn address(mut self, address: impl AsRef\<str>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::device_description::DeviceDescriptionBuilder::driver`  

Was fn driver(mut self, driver: impl Into\<String>) -> Self; now fn driver(mut self, driver: impl AsRef\<str>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::device_description::DeviceDescriptionBuilder::extended`  

Was fn extended(mut self, lines: Vec\<String>) -> Self; now fn extended\<S: AsRef\<str>>(mut self, lines: impl IntoIterator\<Item = S>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::device_description::DeviceDescriptionBuilder::manufacturer`  

Was fn manufacturer(mut self, manufacturer: impl Into\<String>) -> Self; now fn manufacturer(mut self, manufacturer: impl AsRef\<str>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::device_description::DeviceDescriptionBuilder::new`  

Was fn new(name: impl Into\<String>) -> Self; now fn new(name: impl AsRef\<str>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::DeviceDescription::extended`  

Was fn extended(&self) -> &\[String\]; now fn extended(&self) -> impl Iterator\<Item = &str>. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::DeviceDescriptionBuilder::add_extended_line`  

Was fn add_extended_line(mut self, line: impl Into\<String>) -> Self; now fn add_extended_line(mut self, line: impl AsRef\<str>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::DeviceDescriptionBuilder::address`  

Was fn address(mut self, address: impl Into\<String>) -> Self; now fn address(mut self, address: impl AsRef\<str>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::DeviceDescriptionBuilder::driver`  

Was fn driver(mut self, driver: impl Into\<String>) -> Self; now fn driver(mut self, driver: impl AsRef\<str>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::DeviceDescriptionBuilder::extended`  

Was fn extended(mut self, lines: Vec\<String>) -> Self; now fn extended\<S: AsRef\<str>>(mut self, lines: impl IntoIterator\<Item = S>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::DeviceDescriptionBuilder::manufacturer`  

Was fn manufacturer(mut self, manufacturer: impl Into\<String>) -> Self; now fn manufacturer(mut self, manufacturer: impl AsRef\<str>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::DeviceDescriptionBuilder::new`  

Was fn new(name: impl Into\<String>) -> Self; now fn new(name: impl AsRef\<str>) -> Self. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::DeviceId`  

Construct with DeviceId::new and read with host() and id() instead of tuple fields. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::FromSample`  

Was pub use samples_formats::FromSample; now pub use sample_format::FromSample. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::I24`  

Was pub use samples_formats::I24; now pub use sample_format::I24. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::platform::JackHost::new`  

Was fn new() -> Result\<Self, crate::HostUnavailable>; now fn new() -> Result\<Self, Error>. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::Sample`  

Was pub use samples_formats::Sample; now pub use sample_format::Sample. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::StreamInstant::duration_since`  

duration_since returns a saturating Duration, and secs and nanos are now u64. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::StreamInstant::new`  

The secs argument is now u64 instead of i64; negative values no longer compile. [crates.io](https://crates.io/crates/cpal/0.18.0)
- **Signature changed** `cpal::traits::DeviceTrait`  

Custom Device types must implement these supertraits. [crates.io](https://crates.io/crates/cpal/0.18.0)

And 24 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## cpal 0.17.0 breaking changes

cpal 0.17.0, released December 20, 2025: 55 breaking changes.

- **Removed** `cpal::I48`  

cpal::I48 was removed in cpal 0.17.0 [crates.io](https://crates.io/crates/cpal/0.17.0)
- **Removed** `cpal::platform::AAudioDevice`  

cpal::platform::AAudioDevice was removed in cpal 0.17.0 [crates.io](https://crates.io/crates/cpal/0.17.0)
- **Removed** `cpal::platform::AAudioDevices`  

cpal::platform::AAudioDevices was removed in cpal 0.17.0 [crates.io](https://crates.io/crates/cpal/0.17.0)
- **Removed** `cpal::platform::AAudioStream`  

cpal::platform::AAudioStream was removed in cpal 0.17.0 [crates.io](https://crates.io/crates/cpal/0.17.0)
- **Removed** `cpal::platform::AAudioSupportedInputConfigs`  

cpal::platform::AAudioSupportedInputConfigs was removed in cpal 0.17.0 [crates.io](https://crates.io/crates/cpal/0.17.0)
- **Removed** `cpal::platform::AAudioSupportedOutputConfigs`  

cpal::platform::AAudioSupportedOutputConfigs was removed in cpal 0.17.0 [crates.io](https://crates.io/crates/cpal/0.17.0)
- **Removed** `cpal::platform::AlsaDevice`  

cpal::platform::AlsaDevice was removed in cpal 0.17.0 [crates.io](https://crates.io/crates/cpal/0.17.0)
- **Removed** `cpal::platform::AlsaDevices`  

cpal::platform::AlsaDevices was removed in cpal 0.17.0 [crates.io](https://crates.io/crates/cpal/0.17.0)
- **Removed** `cpal::platform::AlsaStream`  

cpal::platform::AlsaStream was removed in cpal 0.17.0 [crates.io](https://crates.io/crates/cpal/0.17.0)
- **Removed** `cpal::platform::AlsaSupportedInputConfigs`  

cpal::platform::AlsaSupportedInputConfigs was removed in cpal 0.17.0 [crates.io](https://crates.io/crates/cpal/0.17.0)

And 45 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
