libyang-cpp implements object-oriented bindings of the libyang library in modern C++.
Object lifetimes are managed automatically via RAII.
- libyang -
thedevelbranch (even for themasterbranch of libyang-cpp)- temporarily (March 2024) this requires the pre-v3 API of libyang (commit
b3d079fc3)
- temporarily (March 2024) this requires the pre-v3 API of libyang (commit
- C++20 compiler (e.g., GCC 10.x+, clang 10+)
- CMake 3.19+
libyang-cpp uses CMake for building. One way of building libyang-cpp looks like this:
mkdir build
cd build
cmake ..
make
make install
Check the test suite in tests/ for usage examples.
The development is being done on Gerrit here. Instructions on how to submit patches can be found here. GitHub Pull Requests are not used.