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
somewhere in the dependency tree.default-features = false - 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.