FkYAML Save

A C++ header-only YAML library

Project README

Ubuntu Windows macOS Coverage Status Codacy Badge CodeQL GitHub Releases Documentation GitHub license GitHub Issues REUSE status

fkYAML

fkYAML is a C++ header-only YAML library.
If you want portability & development speed-up, fkYAML is the way to go.
No need to build a library only for a third party project.
You can add YAML support into your projects by just including header files where it's needed.

Table of contents

Design Goals

There are a lot of YAML libraries out there, and each may have its reason to exist.
fkYAML has been developed with these design goals:

:briefcase: Portable

The whole code depends only on C++ standards, and is carefully designed to work on many platforms so that fkYAML can be imported into existing C++ projects written in C++11 or better.
No external dependencies, no sub-project, or no additional compiler flags are required.
Although fkYAML is a library with multiple header files by default, you can use the single-header version located in the single_include directory.
Furthermore, the project supports CMake and provides the documentation exclusively for CMake integration.
Those characteristics allow existing C++ project using CMake for builds to quickly incorporate YAML support with just a little effort.

:memo: Well Documented

The documentation provides plenty of information so that users can understand what fkYAML is and what they can achieve with fkYAML.
For instance, the tutorial pages show how you can read/write/customize fkYAML to handle YAML documents while creating a simple C++ project using CMake.
More detailed, exclusive descriptions with example usages for each fkYAML API are available in the API reference pages.

:mag: Heavily Tested

fkYAML has been unit-tested and its test suite covers 100% of lines and conditions of the codebase. (You can see the actual coverage here.)
We check with Valgrind and the Clang Sanitizers that there are no runtime issues such as memory leak.
Furthermore, the quality of our codebase has been checked with Clang-Tidy and CodeQL.
GitHub Actions workflows run against every commit pushed on the main & develop branches to ensure that the fkYAML library can be successfully built/tested with a variety of compilers and C++ standards.
See the supported compilers section for more details.

Community Support

:question: Questions

If you have questions regarding the fkYAML library, feel free to open a Q&A discussion at GitHub.

:zap: Feature Requests

If you have feature requests for the fkYAML library, let us know by opening an Ideas discussion.
It's really helpful for us if you describe what the new feature aims at and why it's needed.

:bug: Bug Reports

If you encounter a issue or find a bug, open an issue.
Please describe your problem as detailed as possible, and also mention the version of the library you are using as well as the versions of your compiler and operating system.
Opening an issue at GitHub allows other users and contributors to this library to collabolate.

:closed_lock_with_key: Private Reports

If you want to make a private report (e.g., for a vulnerability or to attach an example that is not meant to be published), please send an email to [email protected].

How to use fkYAML

The documentation is available on GitHub Pages.
Here is the list you might want to know:

How to test fkYAML

You can execute the unit tests with the following commands.
Make sure the CMake executable has been registered to your PATH.

$ cd path/to/fkYAML
$ cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DFK_YAML_BUILD_TEST=ON
$ cmake --build build --config Debug
$ ctest -C Debug --test-dir build --output-on-failure

Supported compilers

Currently, the following compilers are known to work and used in GitHub Actions workflows:

Compiler Operating System
AppleClang 11.0.3.11030032 macOS 11
AppleClang 12.0.0.12000032 macOS 11
AppleClang 12.0.5.12050022 macOS 11
AppleClang 13.0.0.13000029 macOS 11
AppleClang 13.0.0.13000029 macOS 12
AppleClang 13.1.6.13160021 macOS 12
AppleClang 14.0.0.14000029 macOS 12
AppleClang 14.0.0.14000029 macOS 13
AppleClang 14.0.3.14030022 macOS 13
AppleClang 14.0.3.14030022 macOS 14
AppleClang 15.0.0.15000040 macOS 13
AppleClang 15.0.0.15000040 macOS 14
AppleClang 15.0.0.15000100 macOS 13
AppleClang 15.0.0.15000100 macOS 14
AppleClang 15.0.0.15000309 macOS 14
Clang 3.5.2 Ubuntu 22.04
Clang 3.6.2 Ubuntu 22.04
Clang 3.7.1 Ubuntu 22.04
Clang 3.8.1 Ubuntu 22.04
Clang 3.9.1 Ubuntu 22.04
Clang 4.0.1 Ubuntu 22.04
Clang 5.0.2 Ubuntu 22.04
Clang 6.0.1 Ubuntu 22.04
Clang 7.1.0 Ubuntu 22.04
Clang 9.0.1 Ubuntu 22.04
Clang 10.0.1 Ubuntu 22.04
Clang 11.1.0 Ubuntu 22.04
Clang 12.0.1 Ubuntu 22.04
Clang 13.0.1 Ubuntu 22.04
Clang 14.0.6 Ubuntu 22.04
Clang 15.0.7 Ubuntu 22.04
Clang 16.0.6 Ubuntu 22.04
Clang 17.0.6 Ubuntu 22.04
GCC 7.5.0 Ubuntu 22.04
GCC 8.5.0 Ubuntu 22.04
GCC 9.5.0 Ubuntu 22.04
GCC 10.5.0 Ubuntu 22.04
GCC 11.4.0 Ubuntu 22.04
GCC 12.3.0 Ubuntu 22.04
GCC 13.2.0 Ubuntu 22.04
MinGW-64 8.1.0 Windows Server 2019
MinGW-64 12.2.0 Windows Server 2022
Visual Studio 16 2019 Windows Server 2019
Visual Studio 17 2022 Windows Server 2022

Requests for new compiler supports are welcome.
If you encounter a problem regarding compilers, please let us know by creating an issue or a PR with the information of your Operating System so that the same situation can be reproduced.

License

This project is distributed under the MIT License:

Copyright (c) 2023 Kensuke Fukutani

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

How to contribute

See the CONTRIBUTING.md file for detailed information.

Used third-party tools

The library itself depends only on C++ standards and licensed under the MIT licence.
However, it is built, tested or documented with a lot of third-party tools and services.
Thanks a lot!

Open Source Agenda is not affiliated with "FkYAML" Project. README Source: fktn-k/fkYAML
Stars
47
Open Issues
0
Last Commit
2 weeks ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating