From 09d7b7a69143265daa8d1196022a8062beedeb3b Mon Sep 17 00:00:00 2001 From: Patrick Urbanke Date: Sun, 21 Jan 2024 15:58:23 +0100 Subject: [PATCH] Added CBOR to the README --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cbc93407..6fb8341d 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ The following table lists the serialization formats currently supported by refle |--------------|------------------------------------------------------|--------------|------------| -----------------------------------------------------| | JSON | [yyjson](https://github.com/ibireme/yyjson) | >= 0.8.0 | MIT | out-of-the-box support, included in this repository | | BSON | [libbson](https://github.com/mongodb/libbson) | >= 1.25.1 | Apache 2.0 | | +| CBOR | [tinycbor](https://github.com/intel/tinycbor) | >= 0.6.0 | MIT | | | flexbuffers | [flatbuffers](https://github.com/google/flatbuffers) | >= 23.5.26 | Apache 2.0 | | | XML | [pugixml](https://github.com/zeux/pugixml) | >= 1.14 | MIT | | | YAML | [yaml-cpp](https://github.com/jbeder/yaml-cpp) | >= 0.8.0 | MIT | | @@ -450,6 +451,7 @@ To use reflect-cpp in your project: add_subdirectory(reflect-cpp) # Add this project as a subdirectory set(REFLECTCPP_BSON ON) # Optional +set(REFLECTCPP_CBOR ON) # Optional set(REFLECTCPP_FLEXBUFFERS ON) # Optional set(REFLECTCPP_XML ON) # Optional set(REFLECTCPP_YAML ON) # Optional @@ -496,7 +498,7 @@ git submodule update --init ./vcpkg/bootstrap-vcpkg.bat # Windows # You may be prompted to install additional dependencies. -cmake -S . -B build -DREFLECTCPP_BUILD_TESTS=ON -DREFLECTCPP_BSON=ON -DREFLECTCPP_FLEXBUFFERS=ON -DREFLECTCPP_XML=ON -DREFLECTCPP_YAML=ON -DCMAKE_BUILD_TYPE=Release +cmake -S . -B build -DREFLECTCPP_BUILD_TESTS=ON -DREFLECTCPP_BSON=ON -DREFLECTCPP_CBOR=ON -DREFLECTCPP_FLEXBUFFERS=ON -DREFLECTCPP_XML=ON -DREFLECTCPP_YAML=ON -DCMAKE_BUILD_TYPE=Release cmake --build build -j 4 # gcc, clang cmake --build build --config Release -j 4 # MSVC ``` @@ -504,6 +506,8 @@ cmake --build build --config Release -j 4 # MSVC To run the tests, do the following: ``` +./build/tests/bson/reflect-cpp-bson-tests +./build/tests/cbor/reflect-cpp-cbor-tests ./build/tests/flexbuffers/reflect-cpp-flexbuffers-tests ./build/tests/json/reflect-cpp-json-tests ./build/tests/xml/reflect-cpp-xml-tests