Cargo Features

[dependencies]
whitebreadx = { version = "0.1.0", default-features = false, features = ["std", "dl", "pl", "real_mutex", "to_socket", "xlib"] }
default = real_mutex, std, xlib

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

std default dl? real_mutex to_socket?

Enables std of breadx

dl = libloading, std
pl = parking_lot, real_mutex

Enables pl of breadx and parking_lot of once_cell

once_cell:

Uses parking_lot to implement once_cell::sync::OnceCell.
This makes no speed difference, but makes each OnceCell<T>
up to 16 bytes smaller, depending on the size of the T.

real_mutex default pl? = once_cell, std
to_socket = std
xlib default

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.

libloading dl?

Enables libloading ^0.7.3

once_cell pl? real_mutex
parking_lot pl?