summaryrefslogtreecommitdiffhomepage
path: root/bin/setup.sh
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-03-18 18:39:14 +0900
committerAdam Malczewski <[email protected]>2026-03-18 18:39:14 +0900
commitef77f6d2d6ebe11d2c1afd93314d44840f6c7d77 (patch)
treee03d9d381dad70748514e42d5356b77806d29cc9 /bin/setup.sh
downloadwebhook-forwarder-ef77f6d2d6ebe11d2c1afd93314d44840f6c7d77.tar.gz
webhook-forwarder-ef77f6d2d6ebe11d2c1afd93314d44840f6c7d77.zip
init
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."