Cargo Features

[dependencies]
libcgroups = { version = "0.4.1", default-features = false, features = ["v1", "v2", "systemd", "cgroupsv2_devices"] }
default = systemd, v1, v2

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

v1 default

Affects libcgroups::v1

v2 default systemd

Affects libcgroups::v2

systemd default = v2

Enables socket and uio of nix ^0.28.0

Affects libcgroups::systemd

cgroupsv2_devices = errno, libbpf-sys, libc, rbpf

Enables dir of nix ^0.28.0

Affects v2::devices

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.

rbpf cgroupsv2_devices?

Enables rbpf ^0.2.0

libbpf-sys cgroupsv2_devices?
errno cgroupsv2_devices?
libc cgroupsv2_devices?