Skip to content

Conversation

@nbarbier-265
Copy link

MSRV bump to 1.83 enables using standard library equivalents. This removes the external once_cell dependency.

Changes:

  • Replace once_cell::sync::Lazy with std::sync::LazyLock
  • Replace once_cell::sync::OnceCell with std::sync::OnceLock
  • Update try_insert() pattern in pingora-runtime to use set()
  • Remove once_cell from workspace and crate dependencies

Fixes #721

MSRV bump to 1.83 enables using standard library equivalents.
This removes the external once_cell dependency.

Changes:
- Replace once_cell::sync::Lazy with std::sync::LazyLock
- Replace once_cell::sync::OnceCell with std::sync::OnceLock
- Update try_insert() pattern in pingora-runtime to use set()
- Remove once_cell from workspace and crate dependencies

Fixes cloudflare#721
Address clippy lints that were failing in CI:
- Replace map_or(true, ...) with is_none_or() per clippy::unnecessary_map_or
- Replace io::Error::new(io::ErrorKind::Other, e) with io::Error::other(e)
- Fix cfg gate on wait_for_peer to match its only caller
- Add cfg gates to imports only used in Linux-specific tests
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.

Replace once_cell dependency with std LazyLock and OnceLock

1 participant