aboutsummaryrefslogtreecommitdiff
path: root/extra/cbindgen/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/cbindgen/build')
-rwxr-xr-xextra/cbindgen/build10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/cbindgen/build b/extra/cbindgen/build
new file mode 100755
index 00000000..c9cd72cf
--- /dev/null
+++ b/extra/cbindgen/build
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+cargo fetch \
+ --locked
+
+cargo build \
+ --release \
+ --frozen
+
+install -Dm755 target/release/cbindgen "$1/usr/bin/cbindgen"