From 3f69dd645039a7de61ca29c8663379dd5758a40d Mon Sep 17 00:00:00 2001 From: Gregory Conrad Date: Thu, 19 Jan 2023 12:08:38 -0500 Subject: [PATCH] feat: add Cargo feature for LMDB's POSIX semaphores --- Cargo.lock | 8 ++++---- milli/Cargo.toml | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1959006d2..a8668fccc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1747,8 +1747,8 @@ checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9" [[package]] name = "heed" -version = "0.12.4" -source = "git+https://github.com/meilisearch/heed?tag=v0.12.4#7a4542bc72dd60ef0f508c89900ea292218223fb" +version = "0.12.5" +source = "git+https://github.com/meilisearch/heed?tag=v0.12.5#4158a6c484752afaaf9e2530a6ee0e7ab0f24ee8" dependencies = [ "byteorder", "heed-traits", @@ -1765,12 +1765,12 @@ dependencies = [ [[package]] name = "heed-traits" version = "0.7.0" -source = "git+https://github.com/meilisearch/heed?tag=v0.12.4#7a4542bc72dd60ef0f508c89900ea292218223fb" +source = "git+https://github.com/meilisearch/heed?tag=v0.12.5#4158a6c484752afaaf9e2530a6ee0e7ab0f24ee8" [[package]] name = "heed-types" version = "0.7.2" -source = "git+https://github.com/meilisearch/heed?tag=v0.12.4#7a4542bc72dd60ef0f508c89900ea292218223fb" +source = "git+https://github.com/meilisearch/heed?tag=v0.12.5#4158a6c484752afaaf9e2530a6ee0e7ab0f24ee8" dependencies = [ "bincode", "heed-traits", diff --git a/milli/Cargo.toml b/milli/Cargo.toml index b32592ab9..0ba44a819 100644 --- a/milli/Cargo.toml +++ b/milli/Cargo.toml @@ -19,7 +19,7 @@ fst = "0.4.7" fxhash = "0.2.1" geoutils = "0.5.1" grenad = { version = "0.4.3", default-features = false, features = ["tempfile"] } -heed = { git = "https://github.com/meilisearch/heed", tag = "v0.12.4", default-features = false, features = ["lmdb", "sync-read-txn"] } +heed = { git = "https://github.com/meilisearch/heed", tag = "v0.12.5", default-features = false, features = ["lmdb", "sync-read-txn"] } json-depth-checker = { path = "../json-depth-checker" } levenshtein_automata = { version = "0.2.1", features = ["fst_automaton"] } memmap2 = "0.5.7" @@ -63,6 +63,10 @@ fuzzcheck = "0.12.1" [features] default = [ "charabia/default" ] +# Use POSIX semaphores instead of SysV semaphores in LMDB +# For more information on this feature, see heed's Cargo.toml +lmdb-posix-sem = ["heed/posix-sem"] + # allow chinese specialized tokenization chinese = ["charabia/chinese"]