# Installation

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

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

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

```sh
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](https://www.unum.cloud/docs/ustore/c.md) 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.

```cmake
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_name`

The linked library's version, a release-candidate suffix included.

[types.hpp:1756 ↗](https://github.com/unum-cloud/UStore/blob/084197c470a8c329d83051d880c71e7972b9e1b2/cpp/ustore/types.hpp#L1756)

```cpp
std::string_view version_name() noexcept;
```
