Crates.io | siftdb-core |
lib.rs | siftdb-core |
version | 0.2.2 |
created_at | 2025-09-06 11:16:41.560429+00 |
updated_at | 2025-09-06 16:03:52.66311+00 |
description | High-performance grep-native database for code and text collections with regex support |
homepage | https://github.com/siftdb/siftdb |
repository | https://github.com/siftdb/siftdb |
max_upload_size | |
id | 1826972 |
size | 149,002 |
Core engine for SiftDB: a grep-native, agent-oriented database for code and text collections.
cargo add siftdb-core
use siftdb_core::SiftDB;
fn main() -> anyhow::Result<()> {
let db = SiftDB::open("project.sift")?;
let mut snapshot = db.snapshot()?;
let hits = snapshot.find("async", Some("**/*.rs"), Some(10))?;
for h in hits { println!("{}:{}: {}", h.path, h.line, h.text);}
Ok(())
}
See the root benchmarks/README.md
for full methodology and results.
MIT