nautalid 0.1.0

Scratch container substrate — TLS 1.3 HTTP/2+3 kernel, LID/AetherDB, optional filter bus (GPL-3.0-or-later).
//! KDL reply bodies for bus control frames.

pub fn ok(label: &str) -> String {
    format!("ok \"{label}\"")
}

pub fn err(message: &str) -> String {
    let escaped = message.replace('"', "\\\"");
    format!("err \"{escaped}\"")
}

pub fn modules(names: &[&str]) -> String {
    let list = names
        .iter()
        .map(|n| format!("\"{n}\""))
        .collect::<Vec<_>>()
        .join(" ");
    format!("modules {list}")
}