rustlerelixirfun

Ever wanted to call an Elixir function from inside some Rust code? Now you can!

This crate exposes the Rust code to interact with from your Rust code side.

See the main GitHub repo for more details.

Installation

Usage

The main function to call is apply_elixir_fun: rust let some_result : Result<Term, Error> = rustler_elixir_fun::apply_elixir_fun(env, pid_or_process_name, fun, parameters)

This function will attempt to call fun using parameters on the Elixir side, and block the caller until a result is available.