We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8637676 commit 25b331fCopy full SHA for 25b331f
1 file changed
crates/codspeed/src/instrument_hooks/update-bindings.sh
@@ -1,8 +1,10 @@
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_.*" \
10
--allowlist-var "MARKER_TYPE_.*"
0 commit comments