Skip to content

Commit 1a35f65

Browse files
authored
Switch fs2 to fs4 as it is now unmaintained and does not support illumos (#1944)
Signed-off-by: Till Wegmueller <[email protected]>
1 parent e5e5060 commit 1a35f65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ log = "0.4.16"
3232
serde = { version = "1.0.136", features = ["derive"] }
3333
serde_json = "1.0.79"
3434
num_cpus = "1.13.1"
35-
fs2 = { version = "0.4.3", optional = true }
35+
fs4 = { version = "0.6.3", optional = true }
3636
levenshtein_automata = "0.2.1"
3737
uuid = { version = "1.0.0", features = ["v4", "serde"] }
3838
crossbeam-channel = "0.5.4"
@@ -94,7 +94,7 @@ overflow-checks = true
9494

9595
[features]
9696
default = ["mmap", "stopwords", "lz4-compression"]
97-
mmap = ["fs2", "tempfile", "memmap2"]
97+
mmap = ["fs4", "tempfile", "memmap2"]
9898
stopwords = []
9999

100100
brotli-compression = ["brotli"]

src/directory/mmap_directory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::sync::{Arc, RwLock, Weak};
77
use std::{fmt, result};
88

99
use common::StableDeref;
10-
use fs2::FileExt;
10+
use fs4::FileExt;
1111
use memmap2::Mmap;
1212
use serde::{Deserialize, Serialize};
1313
use tempfile::TempDir;

0 commit comments

Comments
 (0)