#!/bin/bash set -e REPO_ROOT=$(git rev-parse --show-toplevel) STREAM_DIR="$REPO_ROOT/veza-stream-server" echo "Rust Security Audit (cargo audit)" if ! command -v cargo-audit &>/dev/null; then echo "Installing cargo-audit..." cargo install cargo-audit fi if [ -d "$STREAM_DIR" ]; then cd "$STREAM_DIR" cargo audit else echo "Stream Server directory not found!" exit 1 fi echo "Audit passed."