rust-fuzz / libfuzzer

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

Remove `once_cell` #120

Closed c410-f3r closed 4 months ago

c410-f3r commented 4 months ago

In favor of LazyLock.

Needs Rustc 1.80 that will be released in ten days.

c410-f3r commented 4 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.