Open chrislearn opened 5 days ago
The recent changes across various Cargo.toml
files and Rust source files involved upgrading the Rust version requirement from 1.76 to 1.80 and removing dependencies on the once_cell
crate. Correspondingly, Lazy
and OnceCell
types from once_cell
were replaced with LazyLock
and OnceLock
from the standard library across the codebase. Documentation files were also updated to reflect the version change.
Files | Changes Summary |
---|---|
Cargo.toml , examples/.../Cargo.toml , crates/.../Cargo.toml |
Updated Rust version to 1.80, removed once_cell dependency |
README.md , README.osc.md , README.zh-hans.md , README.zh-hant.md |
Updated Rust version links to 1.80 |
crates/core/src/... , crates/oapi/... , crates/macros/... |
Replaced Lazy and OnceCell with LazyLock and OnceLock |
examples/.../static/... |
Removed once_cell::sync::Lazy import |
examples/.../src/main.rs |
Switch from once_cell::sync::Lazy/OnceCell to std::sync::LazyLock/OnceLock |
The changes do not introduce any new features or significant modifications to the control flow that warrant a sequence diagram.
In the code, a shift so grand,
FromLazy
toLazyLock
we now stand.
Rust's version bumped, dependencies trimmed,
A sleeker, leaner code we've now hymned.
WithOnceCell
gone, and fresh locks in play,
Hooray for progress! Code-rabbits cheer today! 🐰✨
[!TIP]
AI model upgrade
## `gpt-4o` model for reviews and chat is now live OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide any feedback or to report any issues.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Chores
once_cell
dependency in various project files, replacing withstd::sync::OnceLock
orLazyLock
.Documentation
These changes improve the codebase by using more recent standard library features and keeping dependencies up to date.