alef 0.25.37

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Call this from your `handle_info/2` after processing a
/// `{:trait_call, "{{ method_snake }}", args_json, call_id}` message:
///
/// ```gleam
/// // pub fn handle_info(msg, state) {
/// //   case msg {
/// //     #(atom.create("{{ method_snake }}"), args_json, call_id) ->
/// //       let result = do_{{ method_snake }}(args_json)
/// //       {{ nif_fn_name }}(call_id, result)
/// //       actor.continue(state)
/// //     _ -> actor.continue(state)
/// //   }
/// // }
/// ```
///