SlateDB is implemented in Rust. The repository also ships official Go, Java, Node.js, and Python bindings, but this quick start covers the Rust API directly.
Installation#
Add the following dependencies to your project:
cargo add slatedb tokio --features tokio/macros,tokio/rt-multi-thread
Usage#
SlateDB uses tokio as its async runtime and object_store to interact with object storage. The code below shows a simple in-memory example.
import { Code } from '@astrojs/starlight/components';
import fullExample from '/../examples/src/full_example.rs?raw'