Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rust-version metadata to declare MSRV #240

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michel-slm
Copy link
Contributor

rbw uzes LazyLock which is only stabilized in 1.80.0

e.g. when building on RHEL 9 or derivatives (which currently has 1.79.0 - it will be refreshed in the next RHEL minor release)

https://koji.fedoraproject.org/koji/taskinfo?taskID=129121049

error[E0658]: use of unstable library feature 'lazy_cell'
  --> src/protocol.rs:70:5
   |
70 | > = std::sync::LazyLock::new(|| {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #109736 <https://github.com/rust-lang/rust/issues/109736> for more information
   = help: add `#![feature(lazy_cell)]` to the crate attributes to enable
   = note: this compiler was built on 2024-06-10; consider upgrading it if it is out of date

see https://doc.rust-lang.org/std/sync/struct.LazyLock.html for the version it's stabilized

`rbw` uzes `LazyLock` which is only stabilized in 1.80.0

e.g. when building on RHEL 9 or derivatives (which currently has 1.79.0 -
it will be refreshed in the next RHEL minor release)

https://koji.fedoraproject.org/koji/taskinfo?taskID=129121049

```
error[E0658]: use of unstable library feature 'lazy_cell'
  --> src/protocol.rs:70:5
   |
70 | > = std::sync::LazyLock::new(|| {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #109736 <rust-lang/rust#109736> for more information
   = help: add `#![feature(lazy_cell)]` to the crate attributes to enable
   = note: this compiler was built on 2024-06-10; consider upgrading it if it is out of date
```

see https://doc.rust-lang.org/std/sync/struct.LazyLock.html for the version it's stabilized

Signed-off-by: Michel Lind <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant