Skip to content

Replace lazy_static with std::sync::LazyLock#306

Open
jbgriesner wants to merge 1 commit intortk-ai:masterfrom
jbgriesner:chore/replace-lazy-static-with-lazy-lock
Open

Replace lazy_static with std::sync::LazyLock#306
jbgriesner wants to merge 1 commit intortk-ai:masterfrom
jbgriesner:chore/replace-lazy-static-with-lazy-lock

Conversation

@jbgriesner
Copy link

Replaces all uses of the lazy_static crate with std::sync::LazyLock, which has been stable since Rust 1.80.

Motivation:

  • Removes one external dependency (lazy_static = "1.4")
  • Uses std

No behavior change. LazyLock initializes on first access, exactly like lazy_static. All regex patterns remain identical.

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