alef 0.23.44

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
/// Internal adapter: wraps a `{{ protocol_name }}` conformer as a `{{ delegate_protocol_name }}`.
/// Converts swift-bridge raw types (RustString, UInt, etc.) to user-friendly Swift
/// types before dispatching, then serialises configured return values to JSON.
private final class {{ adapter_name }}: {{ delegate_protocol_name }} {
    private let inner: any {{ protocol_name }}
    init(_ inner: any {{ protocol_name }}) { self.inner = inner }