btleplug
btleplug copied to clipboard
Workaround for Cargo error: feature edition2024 is required; caused by bluez-async v0.8.1 migration to Rust 2024 edition
When building:
Downloaded bluez-async v0.8.1
error: failed to parse manifest at `/home/mamadou/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bluez-async-0.8.1/Cargo.toml`
Caused by:
feature `edition2024` is required
The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.83.0 (5ffbef321 2024-10-29)).
Consider trying a newer version of Cargo (this may require the nightly release).
See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.
Locking bluez-async to v0.8.0 works around the issue.
Though, I have to mention it builds fine against a newer Rust, but in projects stuck with older Rust versions this causes a build failure.
I don't think this workaround belongs in btleplug, you can keep using an old version via your Cargo.lock file.