C++ Templates · Installation

Installation

b6b12730

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

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

§ Getting Them

CMake names the headers ustore::header, which holds the include paths of c/ and include/ and links the header targets of ForkUnion, SmashTable and StringZilla, plus the include paths of yyjson and fmt. It lives in the build tree alone, since no install ships the siblings it includes, so a program using the templates vendors UStore through FetchContent:

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::header)

Headers that call ForkUnion’s C ABI, such as ram_buffers.hpp and ram_device.hpp, also need forkunion::static or ustore::static at link time. docs/json_paths.hpp calls StringZilla’s dispatched kernels, which its header-only build answers with sz_missing_library_k, so it resolves nothing without stringzilla::static or ustore::static, and its callers fall back to yyjson.