Crates.io | tigerbeetle-rust |
lib.rs | tigerbeetle-rust |
version | 0.1.0 |
source | src |
created_at | 2022-10-26 11:57:37.413934 |
updated_at | 2022-10-26 11:57:37.413934 |
description | A Tigerbeetle client for Rust |
homepage | https://www.tigerbeetle.com |
repository | https://www.github.com/typesend/tigerbeetle-rust |
max_upload_size | |
id | 697757 |
size | 6,225,631 |
TigerBeetle client for Rust.
Under Construction
Prerequisites:
# 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
TB_TARGET=x86_64-linux
(cd ./tigerbeetle && zig/zig build tb_client -Drelease-safe -Dtarget=$TB_TARGET)
cp ./tigerbeetle/zig-out/libtb_client.a ./pkg/native/$TB_TARGET/libtb_client.a
cp ./tigerbeetle/src/c/tb_client.h ./pkg/native/tb_client.h
# Step 3.5 - Build tigerbeetle binary for `cargo test`
(cd ./tigerbeetle && zig/zig build -Drelease-safe -Dtarget=$TB_TARGET)
cp ./tigerbeetle/zig-out/bin/tigerbeetle ./pkg/native/$TB_TARGET/tigerbeetle
# Step 4 - Build and test tigerbeetle-rust
cargo test