C++ · Installation

Installation

#include <ustore/types.hpp> 1.0.0-rc.1 · 084197c4

Ask your coding agent about this page, or add the docs server to it

curl -s 'https://www.unum.cloud/docs/ustore/cpp/installation.md' | claude -p "How would this fit my code?"

Build the C++ suite from a checkout and run it, which checks the wrappers against the library they link:

cmake -B build_release -D CMAKE_BUILD_TYPE=Release -D USTORE_BUILD_TEST=1
cmake --build build_release --target ustore_test_cpp && ctest --test-dir build_release -R ustore_test_cpp

The wrappers are headers over the C library, so they link exactly as the C SDK does: ustore::cpp adds cpp/ as an include root beside the c/ of ustore::abi and links the archive ustore::static, and every header is spelled <ustore/...> in the tree and once installed.

FetchContent_Declare(ustore GIT_REPOSITORY https://github.com/unum-cloud/UStore.git GIT_SHALLOW TRUE)
FetchContent_MakeAvailable(ustore)
target_link_libraries(your_target PRIVATE ustore::cpp)

USTORE_MODALITIES lists the modalities the library compiles beside blobs, strings;docs;graph;pages by default, and the C call ustore_modalities_compiled() reports the ones kept, while creating a collection of any other answers status_code_t::unsupported_k. With USTORE_BUILD_STUB on, ustore_test_cpp_stub runs the same suite against the brute-force stand-in, which links the SDK headers alone, so a header that reaches past c/ fails to compile there.

API

Functions

version_nameThe linked library's version, a release-candidate suffix included.
types.hpp:1756 ↗
std::string_view version_name() noexcept;