We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fafd233 commit aec654bCopy full SHA for aec654b
1 file changed
crates/instrument-hooks-bindings/src/update-bindings.sh
@@ -1,8 +1,11 @@
1
#!/usr/bin/env bash
2
set -euo pipefail
3
4
-bindgen ../instrument-hooks/includes/core.h \
5
- -o bindings.rs \
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
+
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_.*" \
- --allowlist-var "MARKER_TYPE_.*"
10
+ --allowlist-var "MARKER_TYPE_.*" \
11
+ --allowlist-type "instrument_hooks_feature_t"
0 commit comments