how to build? error[E0658]: inline-const is experimental
Closed this issue · 2 comments
Im trying to build another package that needs this but this does not build for me.
Compiling bitstream-io v2.4.0
error[E0658]: inline-const is experimental
--> /home/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitstream-io-2.4.0/src/read.rs:615:9
|
615 | const {
| ^^^^^
|
= note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information
error[E0658]: inline-const is experimental
--> /home/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitstream-io-2.4.0/src/read.rs:700:9
|
700 | const {
| ^^^^^
|
= note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information
error[E0658]: inline-const is experimental
--> /home/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitstream-io-2.4.0/src/write.rs:698:9
|
698 | const {
| ^^^^^
|
= note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information
error[E0658]: inline-const is experimental
--> /home/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitstream-io-2.4.0/src/write.rs:775:9
|
775 | const {
| ^^^^^
|
= note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information
error[E0658]: inline-const is experimental
--> /home/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitstream-io-2.4.0/src/write.rs:921:9
|
921 | const {
| ^^^^^
|
= note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information
error[E0658]: inline-const is experimental
--> /home/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitstream-io-2.4.0/src/write.rs:956:9
|
956 | const {
| ^^^^^
|
= note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information
Not used to rust, how do i go about resolving that?
It looks like version 2.4.0 bumped the minimum supported Rust version (MSRV) to 1.79.0, which was just released yesterday. Inline const
expressions were only stabilized with 1.79.0: https://blog.rust-lang.org/2024/06/13/Rust-1.79.0.html#inline-const-expressions
It might be good to specify the minimum supported Rust version in this crate's metadata to avoid cryptic errors like this.
Additionally, requiring the latest Rust stable only one day after its release is a pretty aggressive MSRV bump, and might be surprising for developers of dependent crates.
Well i am on a rolling release distro (arch) but updates within the day is an unreasonable ask of any package maintainer. Guess ill wait a few days then.