Skip to content

Installation

System Requirements

  • Rust 1.75+ (edition 2021)
  • OS: Linux, macOS, Windows
  • Architecture: x86_64, aarch64 (Apple Silicon)

From Source

bash
git clone https://github.com/darkmice/talon.git
cd talon

# Build release binary
cargo build --release

# Run tests
cargo test --lib     # Unit tests (1362+ tests)
cargo test --tests   # Integration tests

# Benchmarks
cargo bench

As a Rust Library (Embedded Mode)

Add to your Cargo.toml:

toml
[dependencies]
talon = { path = "/path/to/talon" }

Binary Size

BuildSize
Release~15 MB
Release + LTO~12 MB
Release + strip~10 MB

Configuration

Storage Configuration

rust
use talon::{StorageConfig, Talon};

let config = StorageConfig {
    cache_size_mb: 256,      // Block cache size
    ..Default::default()
};
let db = Talon::open_with_config("./data", config)?;

Cluster Configuration

rust
use talon::{ClusterConfig, ClusterRole, Talon, StorageConfig};

let cluster = ClusterConfig {
    role: ClusterRole::Primary,
    ..Default::default()
};
let db = Talon::open_with_cluster("./data", StorageConfig::default(), cluster)?;

Released under the MIT License.