gleamcms/runtime/ffi

Runtime FFI bindings to Erlang modules. Isolates non-portable and host-level primitives at the runtime edge.

Values

pub fn configure_mnesia_dir(dir: String) -> Nil
pub fn get_env(name: String) -> Result(String, Nil)
pub fn hmac_sha256(secret: String, msg: String) -> String
pub fn post(
  url: String,
  headers: List(#(String, String)),
  body: String,
) -> Result(String, String)
pub fn run_gemini(
  system_prompt: String,
  user_prompt: String,
) -> Result(String, String)
Search Document