Skip to main content

Repository map

Top level

src/          library source and headers (src/braft/)
test/ unit tests (test_*.cpp)
example/ runnable sample applications (not part of the build)
contrib/ local Conan recipes for deps not on Conan Center (brpc)
docs/ documentation source (this site)
conanfile.py Conan 2 recipe declaring dependencies

Inside the code

src/braft/           library source, headers, and proto files
test/ 23 test binaries (test_ballot, test_node, etc.)
example/counter/ replicated counter demo
example/atomic/ compare-and-swap register demo
example/block/ block storage demo
contrib/brpc/ local Conan recipe for Apache brpc 1.11.0

Build artifacts

build/               generated by conan install (presets, toolchain, deps)
build/build/Release/ CMake build tree (library, test binaries, generated protos)

For the reasoning behind the source layout, see Repository layout.