summary refs log tree commit diff stats
path: root/scripts/rust/rust_root_crate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rust/rust_root_crate.sh')
-rwxr-xr-xscripts/rust/rust_root_crate.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/rust/rust_root_crate.sh b/scripts/rust/rust_root_crate.sh
new file mode 100755
index 0000000000..975bddf7f1
--- /dev/null
+++ b/scripts/rust/rust_root_crate.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -eu
+
+cat <<EOF
+// @generated
+// This file is autogenerated by scripts/rust_root_crate.sh
+
+EOF
+
+for crate in $*; do
+    echo "extern crate $crate;"
+done