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
On this page
Latest version 0.18.2, released August 16, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
cpal 0.18.0 breaking changes
- Removed
Migrate Emscripten builds to wasm32-unknown-unknown with the wasm-bindgen feature. github.com - Removed
cpal::BackendSpecificError
cpal::BackendSpecificError was removed in cpal 0.18.0 crates.io - Removed
cpal::BuildStreamError
Match on the kind() of cpal::Error instead of BuildStreamError. crates.io - Removed
cpal::DefaultStreamConfigError
DefaultStreamConfigError is gone; match on e.kind() of cpal::Error instead. crates.io - Removed
cpal::DeviceIdError
cpal::DeviceIdError was removed in cpal 0.18.0 crates.io - Removed
cpal::DeviceNameError
cpal::DeviceNameError was removed in cpal 0.18.0 crates.io - Removed
cpal::DevicesError
Match on the kind() of cpal::Error instead of the per-operation error enum. crates.io - Removed
cpal::HostUnavailable
The HostUnavailable struct is gone; handle cpal::Error with kind HostUnavailable. crates.io - Removed
cpal::PauseStreamError
PauseStreamError is gone; match on e.kind() of cpal::Error instead. crates.io - Removed
cpal::platform::EmscriptenHost
cpal::platform::EmscriptenHost was removed in cpal 0.18.0 crates.io - Removed
cpal::PlayStreamError
PlayStreamError is gone; match on e.kind() of cpal::Error instead. crates.io - Removed
cpal::StreamError
Match on the kind() of cpal::Error instead of StreamError. crates.io - Removed
cpal::StreamInstant::add
Use checked_add or checked_sub, or the + and - operators, instead of add and sub. crates.io - Removed
cpal::StreamInstant::sub
Use checked_sub or the - operator instead of sub. crates.io - Removed
cpal::SupportedStreamConfigsError
SupportedStreamConfigsError is gone; match on e.kind() of cpal::Error instead. crates.io - Removed
cpal::traits::DeviceTrait::name
Use device.description() or device.id() instead of name(). crates.io - Removed
cpal.platform.AlsaHost
Obtain the ALSA host through cpal::host_from_id instead of importing the type. github.com - Removed
Device.default
Use host.default_output_device() or host.default_input_device() instead. github.com - Removed
emscripten
Use wasm32-unknown-unknown with the wasm-bindgen feature and the webaudio host instead. github.com - Renamed
audio_thread_priority
Update the Cargo feature name to realtime-dbus; the realtime feature is available for systems without D-Bus. github.com - 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 - Behavior changed
Timestamps now reflect when audio reaches hardware instead of when the callback fired, so values differ from before. github.com - Behavior changed
WASAPI device names now use FriendlyName instead of DeviceDesc, so names shown to users change. github.com - Behavior changed
build_output_stream
ALSA, CoreAudio and JACK no longer auto-start streams; call play() after building a stream. github.com - 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 - 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 - 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 - Configuration changed
Raise the windows dependency to at least 0.61 in your project. github.com - Signature changed
cpal::device_description::DeviceDescription::extended
Was fn extended(&self) -> &[String]; now fn extended(&self) -> impl Iterator<Item = &str>. crates.io - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
cpal::DeviceDescription::extended
Was fn extended(&self) -> &[String]; now fn extended(&self) -> impl Iterator<Item = &str>. crates.io - 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 - 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 - 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 - 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 - 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 - Signature changed
cpal::DeviceDescriptionBuilder::new
Was fn new(name: impl Into<String>) -> Self; now fn new(name: impl AsRef<str>) -> Self. crates.io - Signature changed
cpal::DeviceId
Construct with DeviceId::new and read with host() and id() instead of tuple fields. crates.io - Signature changed
cpal::FromSample
Was pub use samples_formats::FromSample; now pub use sample_format::FromSample. crates.io - Signature changed
cpal::I24
Was pub use samples_formats::I24; now pub use sample_format::I24. crates.io - Signature changed
cpal::platform::JackHost::new
Was fn new() -> Result<Self, crate::HostUnavailable>; now fn new() -> Result<Self, Error>. crates.io - Signature changed
cpal::Sample
Was pub use samples_formats::Sample; now pub use sample_format::Sample. crates.io - Signature changed
cpal::StreamInstant::duration_since
duration_since returns a saturating Duration, and secs and nanos are now u64. crates.io - Signature changed
cpal::StreamInstant::new
The secs argument is now u64 instead of i64; negative values no longer compile. crates.io - Signature changed
cpal::traits::DeviceTrait
Custom Device types must implement these supertraits. crates.io
And 24 more in this version. Sign up to see every change
cpal 0.17.0 breaking changes
- Removed
cpal::I48
cpal::I48 was removed in cpal 0.17.0 crates.io - Removed
cpal::platform::AAudioDevice
cpal::platform::AAudioDevice was removed in cpal 0.17.0 crates.io - Removed
cpal::platform::AAudioDevices
cpal::platform::AAudioDevices was removed in cpal 0.17.0 crates.io - Removed
cpal::platform::AAudioStream
cpal::platform::AAudioStream was removed in cpal 0.17.0 crates.io - Removed
cpal::platform::AAudioSupportedInputConfigs
cpal::platform::AAudioSupportedInputConfigs was removed in cpal 0.17.0 crates.io - Removed
cpal::platform::AAudioSupportedOutputConfigs
cpal::platform::AAudioSupportedOutputConfigs was removed in cpal 0.17.0 crates.io - Removed
cpal::platform::AlsaDevice
cpal::platform::AlsaDevice was removed in cpal 0.17.0 crates.io - Removed
cpal::platform::AlsaDevices
cpal::platform::AlsaDevices was removed in cpal 0.17.0 crates.io - Removed
cpal::platform::AlsaStream
cpal::platform::AlsaStream was removed in cpal 0.17.0 crates.io - Removed
cpal::platform::AlsaSupportedInputConfigs
cpal::platform::AlsaSupportedInputConfigs was removed in cpal 0.17.0 crates.io
And 45 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.