alef 0.23.26

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
/// Decode `{{ options_type }}` JSON and attach a `{{ type_alias }}` visitor handle.
/// Forwards to the swift-bridge shim emitted in the `RustBridge` module —
/// re-exposed here so callers do not need `import RustBridge`.
public func {{ options_fn }}(_ json: String, _ {{ field }}: {{ type_alias }}?) throws -> {{ options_type }} {
    return try RustBridge.{{ options_fn }}(json, {{ field }})
}