Skip to content

Commit

Permalink
Merge pull request #142 from GregoryConrad/v0.12-posix-sem
Browse files Browse the repository at this point in the history
Add POSIX semaphores Cargo feature
  • Loading branch information
Kerollmops committed Jan 5, 2023
2 parents 7a4542b + 189e1cf commit 0ecdbcf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions heed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ sync-read-txn = []
lmdb = ["lmdb-rkv-sys"]
mdbx = ["mdbx-sys"]

# Whether to tell LMDB to use POSIX semaphores during compilation
# (instead of the default, which are System V semaphores).
# POSIX semaphores are required for Apple's App Sandbox on iOS & macOS,
# and are possibly faster and more appropriate for single-process use.
# There are tradeoffs for both POSIX and SysV semaphores; which you
# should look into before enabling this feature. Also, see here:
# https://github.com/LMDB/lmdb/blob/3947014aed7ffe39a79991fa7fb5b234da47ad1a/libraries/liblmdb/lmdb.h#L46-L69
posix-sem = ["lmdb-rkv-sys/posix-sem"]

# Enable the serde en/decoders for bincode or serde_json
serde-bincode = ["heed-types/serde", "heed-types/bincode"]
serde-json = ["heed-types/serde", "heed-types/serde_json"]
Expand Down

0 comments on commit 0ecdbcf

Please sign in to comment.