rust-fuzz / libfuzzer

Rust bindings and utilities for LLVM’s libFuzzer
Apache License 2.0
212 stars 44 forks source link

Remove `once_cell` #120

Closed c410-f3r closed 3 months ago

c410-f3r commented 3 months ago

In favor of LazyLock.

Needs Rustc 1.80 that will be released in ten days.

c410-f3r commented 3 months ago

Well, at least I tried like in https://github.com/rust-fuzz/arbitrary/pull/112 🤷

Replaced with OnceLock that will be initialized as soon as rust_libfuzzer_debug_path is read in fuzz_target. This behavior differs from the current approach that will initialize only when initialize is called.