vox-codegen 0.8.2

Language bindings codegen for vox
Documentation
use heck::ToKebabCase;
use vox_types::MethodDescriptor;

pub fn normalized_service(name: &str) -> String {
    name.to_kebab_case()
}

pub fn normalized_method(name: &str) -> String {
    name.to_kebab_case()
}

pub fn fq_name(detail: &MethodDescriptor) -> String {
    format!(
        "{}.{}",
        normalized_service(detail.service_name),
        normalized_method(detail.method_name)
    )
}

pub fn hex_u64(v: u64) -> String {
    format!("0x{v:016x}")
}