Cargo Features

[dependencies]
sem_safe = { version = "0.2.0", default-features = false, features = ["unnamed", "named", "anonymous", "plaster"] }
default = anonymous, named, plaster, unnamed

These default features are set whenever sem_safe is added without default-features = false somewhere in the dependency tree.

unnamed default

On MacOS, ignored, because not available.

Affects sem_safe::unnamed, non_named::Semaphore, sem_safe::non_named

named default anonymous = errno

Affects sem_safe::named

anonymous default = base64, getrandom, named

Affects sem_safe::anonymous, non_named::Semaphore, sem_safe::non_named

plaster default

Provides a uniform "non-named" semaphore abstraction across Mac and all other OSs.

Affects sem_safe::plaster

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.

base64 anonymous

Enables base64

These crates are only internal implementation details that could be replaced with others that provide equivalent capabilities as needed.

errno named
getrandom anonymous