Skip to content

C / C++

The C ABI hub. A single wickra_compile.h header + prebuilt library links from C, C++, or any C-capable language. Drive a compiler with the JSON command protocol.

bash
# prebuilt wickra_compile.h + library per platform:
# github.com/wickra-lib/wickra-compile/releases
c
#include "wickra_compile.h"

WickraCompile *c = wickra_compile_new();
const char *cmd = "{\"cmd\":\"compile\",\"dry_run\":true,\"spec\":{ /* CompileSpec */ }}";
char *resp = wickra_compile_command(c, cmd);   /* JSON response with manifest.project_hash */

printf("%s\n", resp);
wickra_compile_free(c);

The header is generated by cbindgen and is the same ABI the C#, Go, Java and R bindings link against.

More