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

refactor(cubesql): Use LazyLock instead of lazy_static, move more regexps to statics #8675

Merged
merged 10 commits into from
Sep 6, 2024

Conversation

mcheshkov
Copy link
Member

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Description of Changes Made (if issue reference is not provided)

Rust 1.80.0 introduced std::sync::LazyLock, which is intended to replace lazy_static crate.
https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html

This PR replaces all of lazy_static instances with either LazyLock or std::sync::Once, and moves some static Regex instances to LazyLock as well.

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.56%. Comparing base (33b1383) to head (263ec6f).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8675      +/-   ##
==========================================
+ Coverage   82.55%   82.56%   +0.01%     
==========================================
  Files         209      209              
  Lines       77054    77095      +41     
==========================================
+ Hits        63611    63653      +42     
+ Misses      13443    13442       -1     
Flag Coverage Δ
cubesql 82.56% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

vercel bot commented Sep 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 2:34pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 2:34pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 2:34pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 2:34pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 2:34pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 2:34pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 2:34pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Sep 6, 2024 2:34pm

@mcheshkov mcheshkov marked this pull request as ready for review September 6, 2024 15:04
@mcheshkov mcheshkov requested review from a team as code owners September 6, 2024 15:04
@mcheshkov mcheshkov merged commit acbdcd2 into master Sep 6, 2024
65 checks passed
@mcheshkov mcheshkov deleted the more-lazy-statics branch September 6, 2024 16:05
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.

2 participants