Cargo Features

[dependencies]
gpiod-core = { version = "0.3.0", default-features = false, features = ["v2", "clap", "serde"] }
default = v2

The v2 feature is set by default whenever gpiod-core is added without default-features = false somewhere in the dependency tree.

v2 default

Affects raw::v2

Features from optional dependencies

clap implicit feature

Enables clap

clap:

A simple to use, efficient, and full-featured Command Line Argument Parser

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework