Skip to content

Commit 4a8947f

Browse files
committed
chore: Update docs for - chore: Comprehensive randomized fuzzy mutation testing
1 parent 339adea commit 4a8947f

27 files changed

Lines changed: 646 additions & 410 deletions

Cargo.lock

Lines changed: 16 additions & 132 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ zlob = "1.3.3"
3737
mlua = { version = "0.11.1", features = ["module", "luajit"] }
3838
neo_frizbee = { version = "0.10.1", features = ["match_end_col"] }
3939
notify = { version = "9.0.0-rc.3" }
40-
notify-debouncer-full = { package = "fff-notify-debouncer-full", version = "0.9.1" }
40+
notify-debouncer-full = { package = "fff-notify-debouncer-full", version = "0.9.2" }
4141
once_cell = "1.20.2"
4242
parking_lot = "0.12"
4343
pathdiff = "0.2.1"
@@ -54,6 +54,12 @@ lto = "fat"
5454
codegen-units = 1
5555
strip = true
5656

57+
[patch.crates-io]
58+
# Local fork of notify-debouncer-full with `watch_raw` that bypasses the
59+
# O(N²) `add_root` path. Required for fast per-directory NonRecursive
60+
# setup on Linux (see background_watcher.rs).
61+
fff-notify-debouncer-full = { path = "../notify/notify-debouncer-full" }
62+
5763
[profile.ci]
5864
inherits = "release"
5965
# we use lto=fat locally for better SIMD for the march=native but

crates/fff-c/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use fff::file_picker::FilePicker;
3535
use fff::frecency::FrecencyTracker;
3636
use fff::query_tracker::QueryTracker;
3737
use fff::{DbHealthChecker, FFFMode, FuzzySearchOptions, PaginationArgs, QueryParser};
38-
use fff::{SharedFrecency, SharedPicker};
38+
use fff::{SharedFrecency, SharedFilePicker};
3939
use ffi_types::{
4040
FffDirItem, FffDirSearchResult, FffFileItem, FffGrepMatch, FffGrepResult, FffMixedItem,
4141
FffMixedSearchResult, FffResult, FffScanProgress, FffScore, FffSearchResult,
@@ -46,7 +46,7 @@ use ffi_types::{
4646
/// The caller receives this as `*mut c_void` and must pass it to every FFI call.
4747
/// The fff_handle is freed by `fff_destroy`.
4848
struct FffInstance {
49-
picker: SharedPicker,
49+
picker: SharedFilePicker,
5050
frecency: SharedFrecency,
5151
query_tracker: SharedQueryTracker,
5252
}
@@ -204,7 +204,7 @@ pub unsafe extern "C" fn fff_create_instance2(
204204
let history_path = unsafe { optional_cstr(history_db_path) }.map(|s| s.to_string());
205205

206206
// Create shared state that background threads will write into.
207-
let shared_picker = SharedPicker::default();
207+
let shared_picker = SharedFilePicker::default();
208208
let shared_frecency = SharedFrecency::default();
209209
let query_tracker = SharedQueryTracker::default();
210210

0 commit comments

Comments
 (0)