diff options
| author | Adam Malczewski <[email protected]> | 2026-03-18 18:39:14 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-03-18 18:39:14 +0900 |
| commit | ef77f6d2d6ebe11d2c1afd93314d44840f6c7d77 (patch) | |
| tree | e03d9d381dad70748514e42d5356b77806d29cc9 /bin/setup.sh | |
| download | webhook-forwarder-ef77f6d2d6ebe11d2c1afd93314d44840f6c7d77.tar.gz webhook-forwarder-ef77f6d2d6ebe11d2c1afd93314d44840f6c7d77.zip | |
init
Diffstat (limited to 'bin/setup.sh')
| -rwxr-xr-x | bin/setup.sh | 18 |
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." |
