summaryrefslogtreecommitdiffhomepage
path: root/bin/setup.sh
blob: 3b99a4e1aa12a65f8f42cc1a0424b91a8e9c4dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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."