tigerbeetle-rust

TigerBeetle client for Rust.

Under Construction

Development Setup

Prerequisites: - rustc 1.62.1 (or possibly as early as 1.13, your mileage may vary) - zig 0.9.1

```sh

Step 1 - Pull tigerbeetle

git submodule init git submodule update

Step 2 - Download zig (optional)

NOTE: (cd ...) only changes directly for the inner command

(cd ./tigerbeetle && ./scripts/install_zig.sh)

Step 3 - Build tb_client for your platform and use it in rust

TBTARGET=x8664-linux (cd ./tigerbeetle && zig/zig build tbclient -Drelease-safe -Dtarget=$TBTARGET) cp ./tigerbeetle/zig-out/libtbclient.a ./pkg/native/$TBTARGET/libtbclient.a cp ./tigerbeetle/src/c/tbclient.h ./pkg/native/tb_client.h

Step 3.5 - Build tigerbeetle binary for cargo test

(cd ./tigerbeetle && zig/zig build -Drelease-safe -Dtarget=$TBTARGET) cp ./tigerbeetle/zig-out/bin/tigerbeetle ./pkg/native/$TBTARGET/tigerbeetle

Step 4 - Build and test tigerbeetle-rust

cargo test ```

Other clients and documentation