Watch
1
0
Fork
You've already forked libyang-cpp
0
No description
  • C++ 98.3%
  • CMake 1.1%
  • Shell 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Baumann be4f942d64
Adding debian version 4+20260710-1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-07-10 13:47:07 +02:00
ci Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
compat/experimental-iterator/experimental Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
debian Adding debian version 4+20260710-1. 2026-07-10 13:47:07 +02:00
include/libyang-cpp Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
src Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
tests Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
.clang-format Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
.zuul.yaml Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
CMakeLists.txt Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
Doxyfile.in Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
libyang-cpp.pc.in Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
LICENSE Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
README.md Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00

C++ bindings for libyang

License Gerrit Zuul CI

libyang-cpp implements object-oriented bindings of the libyang library in modern C++. Object lifetimes are managed automatically via RAII.

Dependencies

  • libyang v5 - the cesnet/2026-07-09-before-v6 branch (even for the master branch of libyang-cpp)
  • C++20 compiler (e.g., GCC 10.x+, clang 10+)
  • CMake 3.19+
  • optionally for built-in tests, Doctest as a C++ unit test framework
  • optionally for the docs, Doxygen

Building

libyang-cpp uses CMake for building. One way of building libyang-cpp looks like this:

mkdir build
cd build
cmake ..
make
make install

Usage

Check the test suite in tests/ for usage examples.

Contributing

The development is being done on Gerrit here. Instructions on how to submit patches can be found here. GitHub Pull Requests are not used.