Cargo Features

[dependencies]
powercap = { version = "0.3.5", default-features = false, features = ["modules", "with-serde", "mock"] }
default = modules

The modules feature is set by default whenever powercap is added without default-features = false somewhere in the dependency tree.

modules default = procfs

Affects powercap::helper

with-serde = serde
mock

Affects powercap::mock

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.

procfs modules

Enables procfs ^0.11

serde with-serde?