Cargo Features

[dependencies]
videocore-gencmd = { version = "0.1.0", default-features = false, features = ["run_bindgen", "mock_vc_ffi", "cli_app", "global_singleton"] }
default = global_singleton

The global_singleton feature is set by default whenever videocore-gencmd is added without default-features = false somewhere in the dependency tree.

run_bindgen = bindgen
mock_vc_ffi = once_cell

Affects ffi::mock

cli_app = anyhow, clap, edwardium_logger

Required by the vcgencmd binary

global_singleton default = once_cell

Affects gencmd::global, global::singleton

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.

once_cell global_singleton mock_vc_ffi?
clap cli_app?

Enables clap ^2

anyhow cli_app?
edwardium_logger cli_app?
bindgen build run_bindgen?

Enables bindgen ^0.58