dns-bench/build_hr.sh
2024-12-20 10:15:17 +04:00

27 lines
423 B
Bash
Executable file

#!/bin/bash
IFS=$'\n'
set -eu -o pipefail
echo
echo '==> Checking deps'
which git
which cargo
echo
echo '==> Cloning repo'
git clone --single-branch --depth 1 https://github.com/hickory-dns/hickory-dns.git hickory-dns
echo
echo '==> Building resolve'
cd hickory-dns
cargo build \
--release \
--bin resolve \
--features dnssec-ring \
--config 'panic="abort"' \
--config 'lto="fat"'
cd ..
echo
echo '==> Done'