Cargo Features

libyang2-sys has no features set by default.

[dependencies]
libyang2-sys = { version = "0.9.0", features = ["use_bindgen", "bundled"] }
default

Use pre-generated FFI bindings

use_bindgen = bindgen

Generate FFI bindings dynamically.
For this to work libyang2 needs to be installed in the system.

bundled = cc, cmake

Bundle libyang2 C files into a static archive linked to this crate.
This removes the libyang2 dynamic link dependency.

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 use_bindgen?

Enables bindgen ^0.68.0

cc build bundled?
cmake build bundled?