include/ustore/ holds the first-party classes and templates UStore's own engines are built from, header-only: multi-version stores, LSM trees and their compactions, document and graph folds, and the NVMe transports under them.
They serve advanced users who build their own low-level stores rather than calling the engines.
These headers carry no stability promise: their names, layouts and signatures change with the engines that instantiate them, in any release, while the C ABI of c/ustore/*.h and the C++ SDK of cpp/ustore/*.hpp are versioned.
Pin a commit, not a version, when building on them. src/ keeps the glue of the C ABI and the explicit instantiations, and every subfolder ustore/<dir>/ opens unum::ustore::<dir>, its headers spelled <ustore/<dir>/...>.
Topics
| Installation | 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. |
|---|---|
| Graphs | A graph collection files every vertex and both ends of every edge as one half_edge_t, so a vertex's entries form one contiguous run of an ordered set, and adding an edge writes two entries rather than rewriting either vertex. |
| Platform Notes | Every template that owns a shared word or waits on one takes the atomic reference and the waiter as template parameters, wrapping the waiter in SmashTable's parking policy itself, and names no CPU class, instruction or ForkUnion preferred_* alias; src/ picks both per CPU class. |