Skip to content

switch once_cell recommendation to std::sync::LazyLock #1217

Open
@kzhui125

Description

@kzhui125

LazyLock is stabilized in 1.80, maybe it's recommend than once_cell crate

Activity

changed the title [-]README: we recommend using the once_cell crate to ensure that regular expressions are compiled[/-] [+]switch `once_cell` recommendation to `std::sync::LazyLock`[/+] on Jul 27, 2024
BurntSushi

BurntSushi commented on Jul 27, 2024

@BurntSushi
Member

Yes. But let's wait a release cycle or two. LazyLock was just stabilized.

nyurik

nyurik commented on Jan 25, 2025

@nyurik

@BurntSushi, I think we are safe - it has been 5 releases now :) Thx @noritada for creating a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @BurntSushi@nyurik@kzhui125

      Issue actions

        switch `once_cell` recommendation to `std::sync::LazyLock` · Issue #1217 · rust-lang/regex