Cargo Features

SimpleLock has no features set by default.

[dependencies]
simplelock = { version = "0.4.1", features = ["fake", "file", "sema"] }
fake

Lock Implementations

file = fs2, serde, serde_json, uuid
sema = libc, nix

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

nix sema?

Enables nix ^0.19.1

Needed for Semaphore implementation:

libc sema?
fs2 file?

Enables fs2

Needed for FileLock implementation:

serde file?
serde_json file?
uuid file?

Enables uuid ^0.8.1