RustLite
RustLite is a lightweight, high-performance embedded database written entirely in Rust. Designed for applications that need a fast, reliable, and embeddable storage solution with ACID guarantees.
π― Vision
RustLite aims to be the go-to embedded database for Rust applications, combining:
- Performance: Zero-copy operations, memory-mapped I/O, and efficient data structures
- Reliability: Full ACID compliance with write-ahead logging and crash recovery
- Simplicity: Single-file deployment, zero configuration, intuitive API
- Safety: Memory-safe by design using Rust's type system and ownership model
β¨ Features
Current (v0.1.0)
- β In-memory key-value store
- β Thread-safe concurrent access
- β Simple, ergonomic API
Roadmap
- π v0.2: Persistent storage with Write-Ahead Logging (WAL)
- π v0.3: B-Tree and Hash indexing
- π v0.4: SQL-like query engine
- π v0.5: Full transaction support with MVCC
- π v1.0: Production-ready with ACID guarantees
See ROADMAP.md for detailed plans.
π Quick Start
Add RustLite to your Cargo.toml:
[]
= "0.1.0"
Basic Usage
use Database;
π¦ Installation
From crates.io
From source
ποΈ Architecture
RustLite is built with a modular architecture:
- Storage Engine: Pluggable backends (LSM-tree, B-Tree)
- Transaction Layer: MVCC-based isolation
- Query Engine: SQL-like query compilation and execution
- WAL: Write-ahead logging for durability
- Index System: Multiple index types for efficient queries
See ARCHITECTURE.md for technical details.
π€ Contributing
We welcome contributions! Please see our CONTRIBUTING.md for guidelines.
Key areas where we need help:
- Core storage engine implementation
- Query optimizer
- Performance benchmarking
- Documentation and examples
- Platform-specific optimizations
π Requirements
- Rust 1.70.0 or later
- Supported platforms: Linux, macOS, Windows
π§ͺ Testing
# Run tests
# Run with logging
RUST_LOG=debug
# Run benchmarks
π Benchmarks
Performance benchmarks will be published as the project matures. Early benchmarks show:
- Sequential writes: TBD
- Random reads: TBD
- Concurrent operations: TBD
π Security
RustLite takes security seriously. Please report any security vulnerabilities to security@rustlite.dev.
π License
This project is licensed under the Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in RustLite by you shall be under the terms and conditions of the Apache License, Version 2.0, without any additional terms or conditions.
π Acknowledgments
RustLite is inspired by excellent databases like SQLite, LevelDB, and RocksDB.
π Contact & Community
- GitHub: github.com/VIRTUMEM-AI-LABS/rustlite
- Crates.io: crates.io/crates/rustlite
- Documentation: docs.rs/rustlite
- Discord: Coming soon
- Website: rustlite.dev (planned)
πΊοΈ Status
Current Status: Early development (v0.1.0)
RustLite is in active development and not yet ready for production use. We're working hard to deliver a stable v1.0 release. Star the repo to follow our progress!
Made with β€οΈ by the RustLite community