cobt

Crates.iocobt
lib.rscobt
version0.1.1
created_at2025-10-16 17:53:03.563756+00
updated_at2025-10-16 17:58:16.751752+00
descriptionA Cache-Oblivious B-Tree implementation in Rust
homepage
repositoryhttps://github.com/Toby-Faucher/cobt
max_upload_size
id1886470
size53,439
Toby (Toby-Faucher)

documentation

https://docs.rs/cobt

README

cobt

Cache-Oblivious B-Tree's in Rust

Table of Contents

Quickstart

To start with cobt, add the following to your Cargo.toml file:

[dependencies]
cobt = "0.1"

and add this to you can use it your project:

use cobt::CacheObliviousBTree;

fn main() {
    let mut tree = CacheObliviousBTree::new();

    for i in 0..20 {
        tree.insert(i, format!("value_{}", i));
    }

    println!("Tree Size {}", tree.len());

    for i in [0, 5, 10, 15, 19, 25] {
        match tree.search(&i) {
            Some(v) => println!("Key {}: {}", i, v),
            None => println!("Key {}, not found", i),
        }
    }
}

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines on how to contribute to this project.

Whether you're fixing bugs, adding features, improving documentation, or reporting issues, your help is appreciated.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Commit count: 0

cargo fmt