Cargo Features

[dependencies]
libstratis = { version = "2.4.2", default-features = false, features = ["dbus_enabled", "extras", "min", "systemd_compat"] }
default = dbus_enabled

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

dbus_enabled default = dbus, dbus-tree, libdbus-sys

Affects libstratis::dbus_api

extras = pretty-hex

Required by the stratis_dumpmetadata binary

min = rpassword

Affects libstratis::jsonrpc

Required by stratis-min and stratisd-min binaries

systemd_compat = bindgen

Affects libstratis::systemd

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.

bindgen build systemd_compat?

Enables bindgen ^0.57.0

dbus dbus_enabled
dbus-tree dbus_enabled
libdbus-sys dbus_enabled
pretty-hex extras?

Enables pretty-hex ^0.2.0

rpassword min?

Enables rpassword ^5.0.0