Installation¶
Prefer prebuilt releases¶
GitHub Releases publish native archives for:
decentdb-<tag>-Linux-x64.tar.gzdecentdb-<tag>-Linux-arm64.tar.gzdecentdb-<tag>-macOS-arm64.tar.gzdecentdb-<tag>-Windows-x64.zip
For Dart/Flutter desktop consumers, Releases also publish native-library-only archives:
decentdb-dart-native-<tag>-Linux-x64.tar.gzdecentdb-dart-native-<tag>-Linux-arm64.tar.gzdecentdb-dart-native-<tag>-macOS-arm64.tar.gzdecentdb-dart-native-<tag>-Windows-x64.zip
The main decentdb-<tag>-... archives contain the CLI plus the native shared library used by bindings. The decentdb-dart-native-<tag>-... archives contain only the shared library for Flutter/Dart desktop packaging. Extract the archive that matches your use case and place decentdb (or decentdb.exe) on your PATH when you install the full CLI archive.
Build from source¶
1. Install Rust¶
Follow the official Rust installation guide at rustup.rs.
2. Clone the repository¶
3. Build the workspace¶
4. Install the CLI (optional)¶
5. Verify the CLI¶
If you did not install the CLI, you can also run the debug binary directly:
Native library for bindings¶
Build the core crate to produce the shared library used by bindings:
That produces:
- Linux:
target/debug/libdecentdb.so - macOS:
target/debug/libdecentdb.dylib - Windows:
target/debug/decentdb.dll
See the binding-specific docs for higher-level usage: