Crate ocaml_derive

source ·

Attribute Macros§

  • bytecode_func is used export Rust functions to OCaml, performing the necessary wrapping/unwrapping automatically.
  • func is used export Rust functions to OCaml, performing the necessary wrapping/unwrapping automatically.
  • native_func is used export Rust functions to OCaml, it has much lower overhead than func and expects all arguments and return type to to be Value.

Derive Macros§