|
1 |
| -# binary-serialize |
2 |
| -A minimal library for binary serialization, using compile time specifier strings similar to std::format |
| 1 | +# Binary Serialize, Header-Only C++ 20 Binary Serialization Classes and Functions |
| 2 | + |
| 3 | +#### Unit Test and Documentation Generation Workflow Status |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +## Overview |
| 14 | + |
| 15 | +The |
| 16 | + |
| 17 | +## Generated Documentation |
| 18 | + |
| 19 | +The generated Doxygen documentation for `binary_serialize` is [here](https://connectivecpp.github.io/binary-serialize/). |
| 20 | + |
| 21 | +## Dependencies |
| 22 | + |
| 23 | +The `binary_serialize` header file does not have any third-party dependencies. It uses C++ standard library headers only. The unit test code does have dependencies as noted below. |
| 24 | + |
| 25 | +## C++ Standard |
| 26 | + |
| 27 | +`binary_serialize` uses C++ 20 features, including ... (fill in details here) ... the "spaceship" operator (`<=>`), `std::span`, and `concepts` / `requires`. |
| 28 | + |
| 29 | +## Supported Compilers |
| 30 | + |
| 31 | +Continuous integration workflows build and unit test on g++ (through Ubuntu), MSVC (through Windows), and clang (through macOS). |
| 32 | + |
| 33 | +## Unit Test Dependencies |
| 34 | + |
| 35 | +The unit test code uses [Catch2](https://github.com/catchorg/Catch2). If the `BINARY_SERIALIZE_BUILD_TESTS` flag is provided to Cmake (see commands below) the Cmake configure / generate will download the Catch2 library as appropriate using the [CPM.cmake](https://github.com/cpm-cmake/CPM.cmake) dependency manager. If Catch2 (v3 or greater) is already installed using a different package manager (such as Conan or vcpkg), the `CPM_USE_LOCAL_PACKAGES` variable can be set which results in `find_package` being attempted. Note that v3 (or later) of Catch2 is required. |
| 36 | + |
| 37 | +The unit test uses utilities from Connective C++'s [utility-rack](https://github.com/connectivecpp/utility-rack). |
| 38 | + |
| 39 | +Specific version (or branch) specs for the dependenies are in `test/CMakeLists.txt`. |
| 40 | + |
| 41 | +## Build and Run Unit Tests |
| 42 | + |
| 43 | +To build and run the unit test program: |
| 44 | + |
| 45 | +First clone the `binary-serialize` repository, then create a build directory in parallel to the `binary-serialize` directory (this is called "out of source" builds, which is recommended), then `cd` (change directory) into the build directory. The CMake commands: |
| 46 | + |
| 47 | +``` |
| 48 | +cmake -D BINARY_SERIALIZE_BUILD_TESTS:BOOL=ON ../binary-serialize |
| 49 | +
|
| 50 | +cmake --build . |
| 51 | +
|
| 52 | +ctest |
| 53 | +``` |
| 54 | + |
| 55 | +For additional test output, run the unit test individually, for example: |
| 56 | + |
| 57 | +``` |
| 58 | +test/binary_serialize_test -s |
| 59 | +``` |
| 60 | + |
| 61 | +The example can be built by adding `-D BINARY_SERIALIZE_BUILD_EXAMPLES:BOOL=ON` to the CMake configure / generate step. |
| 62 | + |
0 commit comments