Skip to content

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.

  • Rust 1.88 or 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.

Add TaiDB to an application:

Terminal window
cargo add taidb

Then import the high-level engine facade:

use taidb::EngineConfig;

Install the published crate as a command:

Terminal window
cargo install taidb

Check that the binary is available:

Terminal window
taidb --help

Clone the repository:

Terminal window
git clone https://github.com/mienetic/taiDB.git
cd taiDB

Run checks:

Terminal window
make check

Build release artifacts:

Terminal window
cargo build --release

The CLI binary will be available at:

target/release/taidb

Enable the native-ffi feature:

Terminal window
cargo build --release --features native-ffi

Expected output:

  • macOS: target/release/libtaidb.dylib
  • Linux: target/release/libtaidb.so
  • Windows: target/release/taidb.dll
  • C header: include/taidb.h
LanguageRecommended path todayNotes
Rustcargo add taidbPrimary supported API.
Shellcargo install taidbBest for automation and smoke tests.
Node.jsCLI bridgeRequires the taidb binary on PATH.
PythonNative FFI exampleBuild shared library first.
GoNative FFI exampleUses cgo and the shared library.
CNative FFI exampleUses include/taidb.h.

Before upgrading a running application, check:

  1. The crate release notes.
  2. The roadmap status for storage format changes.
  3. Whether your database files need migration.
  4. 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.