Any way to list enabled features for all dependencies?

Any way to list enabled features for all dependencies? I am trying to disable a feature for sub-dependency but I'm not sure if it is disabled or not. Is there any way to confirm?

I think cargo-tree with features should be okay, but cargo-tree does not print features for the dependencies.

I solved the problem with following command
RUST_LOG=cargo::core::resolver=trace cargo build

EDIT: The log shows list of all features, not enabled ones.

1 Like