#!/usr/bin/env bash
#
# Manually re-generate the Rust bindings. This isn't normally required
# but if there's a change in the library ABI then re-generate the bindings
#
# First make sure bindgen is installed with `cargo install bindgen`, and then
# run this script. This uses the vendored libstapsdt header files so make sure
# to run the git submodule update command.
SCRIPT_DIR=""
header_file=" /src/lib.h"
include_path=" /vendor/libstapsdt/src"
rust_file=" /src/libstapsdt.rs"