Skip to content

refactor: replace deprecated lazy_static with std::sync::LazyLock#734

Merged
AlexMikhalev merged 1 commit into
mainfrom
task/136-replace-lazy-static
Mar 30, 2026
Merged

refactor: replace deprecated lazy_static with std::sync::LazyLock#734
AlexMikhalev merged 1 commit into
mainfrom
task/136-replace-lazy-static

Conversation

@AlexMikhalev

Copy link
Copy Markdown
Contributor

Summary

  • Replace all lazy_static! macro usage with std::sync::LazyLock (stable since Rust 1.80)
  • Remove lazy_static dependency from terraphim_rolegraph, terraphim_multi_agent, and terraphim_automata Cargo.toml files
  • Update bench files (throughput.rs, autocomplete_bench.rs) and test comments

Crates modified

  • terraphim_rolegraph -- RE regex in split_paragraphs, bench runtime
  • terraphim_multi_agent -- SUSPICIOUS_PATTERNS, CONTROL_CHAR_PATTERN, UNICODE_SPECIAL_CHARS in prompt sanitizer
  • terraphim_automata -- bench runtime (dev-dependency only)

Fixes #136

Test plan

  • cargo test -p terraphim_rolegraph -- 20 passed
  • cargo test -p terraphim_multi_agent -- 11 passed (unit) + 9 passed (concurrent security)
  • cargo clippy -- clean
  • cargo fmt -- clean

Generated with Terraphim AI

Migrate all lazy_static! macro usage to std::sync::LazyLock (stable since
Rust 1.80) across terraphim_rolegraph, terraphim_multi_agent, and
terraphim_automata crates. Removes the lazy_static dependency from all
three Cargo.toml files.

Fixes #136

Co-Authored-By: Terraphim AI <noreply@anthropic.com>
@AlexMikhalev AlexMikhalev merged commit d7bb30d into main Mar 30, 2026
37 of 38 checks passed
@AlexMikhalev AlexMikhalev deleted the task/136-replace-lazy-static branch March 30, 2026 11:33
AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
Migrate all lazy_static! macro usage to std::sync::LazyLock (stable since
Rust 1.80) across terraphim_rolegraph, terraphim_multi_agent, and
terraphim_automata crates. Removes the lazy_static dependency from all
three Cargo.toml files.

Fixes #136

Co-authored-by: Terraphim AI <noreply@anthropic.com>
AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
…tion to k2p6' (#734) from task/kimi-k2p6-provider into main
AlexMikhalev added a commit that referenced this pull request May 1, 2026
Migrate all lazy_static! macro usage to std::sync::LazyLock (stable since
Rust 1.80) across terraphim_rolegraph, terraphim_multi_agent, and
terraphim_automata crates. Removes the lazy_static dependency from all
three Cargo.toml files.

Fixes #136

Co-authored-by: Terraphim AI <noreply@anthropic.com>
AlexMikhalev added a commit that referenced this pull request May 1, 2026
…tion to k2p6' (#734) from task/kimi-k2p6-provider into main
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