summaryrefslogtreecommitdiffhomepage
path: root/ci/check-rust.sh
blob: 9ecf050f8e3d0d5df68197f40755c35110aac213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

set -eux

export RUSTFLAGS="--deny warnings"

# Build WireGuard Go
./wireguard/build-wireguard-go.sh

# Build Rust crates
source env.sh
time cargo build --locked --verbose

# Test Rust crates
time cargo test --locked --verbose