Cargo Features

systemd = { version = "0.10.0", default-features = false, features = ["bus", "journal", "systemd_v245", "unstable-doc-cfg", "serde"] }
default = bus, journal

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

bus default

Enables bus of libsystemd-sys

Affects systemd::bus

journal default

Enables journal of libsystemd-sys

Affects systemd::journal


Enables systemd_v245 of libsystemd-sys


Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde implicit feature