alef 0.19.13

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
pub fn {{ fn_name }}(json: String) -> Result<{{ wrapper_name }}, String> {
    serde_json::from_str::<{{ source_path }}>(&json)
        .map({{ map_expr }})
        .map_err(|e| e.to_string())
}