alef 0.23.33

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Package {{ pkg_name }} provides Go bindings for the {{ crate_name }} library.
package {{ pkg_name }}

/*
#cgo CFLAGS: -I${SRCDIR}/include
#cgo LDFLAGS: -L${SRCDIR}/{{ to_root }}target/release -l{{ ffi_lib_name }}
#include "{{ ffi_header }}"
*/
import "C"

import (
{% for import in imports -%}
	{{ import }}
{% endfor -%}
)