Installation
TaiDB is distributed first as a Rust crate. The CLI is built from the same crate and is the easiest way to use TaiDB from scripts or languages without an official native package.
Requirements
Section titled “Requirements”- Rust
1.88or newer. - Cargo for building the library and CLI.
- A writable local filesystem path for database files.
The documentation site uses Node.js only for building docs. TaiDB itself does not require Node.
Install the Rust crate
Section titled “Install the Rust crate”Add TaiDB to an application:
cargo add taidbThen import the high-level engine facade:
use taidb::EngineConfig;Install the CLI
Section titled “Install the CLI”Install the published crate as a command:
cargo install taidbCheck that the binary is available:
taidb --helpBuild from source
Section titled “Build from source”Clone the repository:
git clone https://github.com/mienetic/taiDB.gitcd taiDBRun checks:
make checkBuild release artifacts:
cargo build --releaseThe CLI binary will be available at:
target/release/taidbBuild native FFI artifacts
Section titled “Build native FFI artifacts”Enable the native-ffi feature:
cargo build --release --features native-ffiExpected output:
- macOS:
target/release/libtaidb.dylib - Linux:
target/release/libtaidb.so - Windows:
target/release/taidb.dll - C header:
include/taidb.h
Recommended setup by language
Section titled “Recommended setup by language”| Language | Recommended path today | Notes |
|---|---|---|
| Rust | cargo add taidb | Primary supported API. |
| Shell | cargo install taidb | Best for automation and smoke tests. |
| Node.js | CLI bridge | Requires the taidb binary on PATH. |
| Python | Native FFI example | Build shared library first. |
| Go | Native FFI example | Uses cgo and the shared library. |
| C | Native FFI example | Uses include/taidb.h. |
Upgrade safely
Section titled “Upgrade safely”Before upgrading a running application, check:
- The crate release notes.
- The roadmap status for storage format changes.
- Whether your database files need migration.
- Whether your application depends on exact error variants or CLI output.
Before TaiDB reaches 1.0.0, storage format and public API changes may still
occur.