Debian Codegraph @

debian/rust-vendor/codspeed/src/instrument_hooks/update-bindings.sh

raw
1 #!/usr/bin/env bash
2 set -euo pipefail
3
4 SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
5
6 bindgen "$SCRIPT_DIR/../../instrument-hooks/includes/core.h" \
7 -o "$SCRIPT_DIR/bindings.rs" \
8 --rust-target 1.74 \
9 --allowlist-function "instrument_hooks_.*" \
10 --allowlist-var "MARKER_TYPE_.*" \
11 --allowlist-type "instrument_hooks_feature_t"