summaryrefslogtreecommitdiffhomepage
path: root/bin/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/setup.sh')
-rwxr-xr-xbin/setup.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/setup.sh b/bin/setup.sh
new file mode 100755
index 0000000..3b99a4e
--- /dev/null
+++ b/bin/setup.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+set -euo pipefail
+
+cd /home/tradam/projects/webhook-forwarder
+
+# Initialize Rust project (skips if Cargo.toml already exists)
+if [ ! -f Cargo.toml ]; then
+ cargo init --name webhook-forwarder
+fi
+
+# Add dependencies
+cargo add hyper --features server,http1
+cargo add hyper-util --features tokio
+cargo add http-body-util
+cargo add tokio --features rt-multi-thread,net,macros
+cargo add bytes
+
+echo "Done! Rust project scaffolded successfully."