Cargo Features

yang2 has no features set by default.

[dependencies]
yang2 = { version = "0.11.0", features = ["use_bindgen", "bundled"] }
use_bindgen

Enables use_bindgen of libyang2-sys

libyang2-sys:

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

bundled

Enables bundled of libyang2-sys

libyang2-sys:

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

yang2 has 2 features without comments.