hare-wren

hare-wren provides support for embedding Wren scripts into Hare programs, as well as an optional lightweight “standard” library for Wren via wren::api.

const vm = wren::new(wren::stdio_config);
defer wren::destroy(vm);

wren::interpret(vm, "main", `System.print("Hello world!")`)!;

This documentation primarily covers the integration between Hare and Wren. For the full details on Wren, consult the upstream Wren documentation.

Warning

Programs which use hare-wren must link to libc! Use hare build -lc ... for this purpose.

Getting started

See hare-wren for the source code and details on installing hare-wren.