The old version of cpal that Tetra currently depends on fails to build with edition = "2021" or resolver = "2" in the Cargo.toml.
I'm not 100% sure why, but it seems like that version of cpal uses the errhandlingapi feature without actually enabling it (perhaps it's getting enabled via a conditional dependency or a dev dependency). This appears to be fixed in cpal 0.12 and up, but we can't upgrade without doing a breaking change to Tetra.
Workaround
Add this to your Cargo.toml, in the [package] section:
resolver = "1"
I have confirmed on one of my own projects that this resolves the issue.
Actual Fix
Long term, the fix will be to upgrade cpal, but in the meantime we may be able to get away with adding a winapi dependency to Tetra itself.
Steps to Reproduce
Create a new Cargo project on Windows, with the latest version of Rust installed.
Summary
The old version of
cpal
that Tetra currently depends on fails to build withedition = "2021"
orresolver = "2"
in theCargo.toml
.I'm not 100% sure why, but it seems like that version of
cpal
uses theerrhandlingapi
feature without actually enabling it (perhaps it's getting enabled via a conditional dependency or a dev dependency). This appears to be fixed incpal
0.12 and up, but we can't upgrade without doing a breaking change to Tetra.Workaround
Add this to your Cargo.toml, in the
[package]
section:I have confirmed on one of my own projects that this resolves the issue.
Actual Fix
Long term, the fix will be to upgrade
cpal
, but in the meantime we may be able to get away with adding awinapi
dependency to Tetra itself.Steps to Reproduce
tetra = "0.6"
as a dependency.Additional Info
No response