roder-code-index 0.1.0

Agentic software development tools and SDKs for Roder.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod chunk;
pub mod merkle;
pub mod proofs;
pub mod sqlite;
pub(crate) mod sqlite_embeddings;
pub(crate) mod sqlite_schema;

pub(crate) fn hex_sha256(bytes: impl AsRef<[u8]>) -> String {
    use sha2::{Digest, Sha256};

    let digest = Sha256::digest(bytes.as_ref());
    let mut out = String::with_capacity(digest.len() * 2);
    for byte in digest {
        use std::fmt::Write as _;
        let _ = write!(out, "{byte:02x}");
    }
    out
}