Attribute Macro ocaml_gen_derive::func

source ·
#[func]
Expand description

A macro to create OCaml bindings for a function that uses #[ocaml::func]

Note that this macro must be placed first (before #[ocaml::func]). For example:

#[ocaml_gen::func]
#[ocaml::func]
pub fn something(arg1: String) {
  //...
}