alef 0.25.1

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
public func {{ function_name }}(_ json: String) throws -> {{ type_name }} {
    let data = json.data(using: .utf8) ?? Data()
    return try JSONDecoder().decode({{ type_name }}.self, from: data)
}