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
Image Daniel Baumann 9e9de40354
Image
Tidying depends for debhelper 14.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-09-02 09:10:00 +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 Tidying depends for debhelper 14. 2026-09-02 09:10:00 +02:00
include/libyang-cpp Merging upstream version 11. 2026-08-31 19:12:49 +02:00
src Merging upstream version 11. 2026-08-31 19:12:49 +02:00
tests Merging upstream version 11. 2026-08-31 19:12:49 +02:00
.clang-format Adding upstream version 4+20260710. 2026-07-10 13:03:37 +02:00
.zuul.yaml Merging upstream version 11. 2026-08-31 19:12:49 +02:00
CMakeLists.txt Merging upstream version 11. 2026-08-31 19:12:49 +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 Merging upstream version 11. 2026-08-31 19:12:49 +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
    • for the minimal required version, check the CMakeLists.txt
    • during development, our master branch is CI-checked against the devel branch of libyang
  • C++23 compiler (e.g., GCC 13.x+, clang 16+)
  • CMake 3.22+
  • 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.