alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
/// Opaque box class retained by Rust via `Unmanaged<{{ box_name }}>.passRetained`.
/// Wraps `any {{ bridge_protocol_name }}` and exposes `alef_*` FFI shim methods.
/// swift-bridge @_cdecl shims call these methods directly.
public final class {{ box_name }} {
    private let bridge: any {{ bridge_protocol_name }}
    public init(_ bridge: any {{ bridge_protocol_name }}) { self.bridge = bridge }