alef 0.24.4

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
/// Free-function shim so the bridge declaration resolves.
pub fn config(client: &mut {{ service_name }}) { client.config() }

/// Free-function shim so the bridge declaration resolves.
pub fn run(client: &mut {{ service_name }}) -> String { client.run() }

/// Expose the wrapper's address as a usize for cross-bridge ptr handoff.
pub fn {{ service_snake }}_raw_ptr(client: &mut {{ service_name }}) -> usize {
    client as *mut {{ service_name }} as usize
}