This commit is contained in:
Mateusz Gruszczyński committed 2026-10-10 23:41:54 +02:00
1 parent 24af7478b8
commit 0facfe6f5c
44 files changed
+898 -321

No files matched your search

+2 -2
View File
@@ -22,7 +22,7 @@ from urllib.request import HTTPRedirectHandler, Request, build_opener, url2pathn
import zipfile
import zlib
VERSION = "5.32.11"
VERSION = "5.33.1"
DOWNLOAD_URL = f"https://github.com/swagger-api/swagger-ui/archive/refs/tags/v{VERSION}.zip"
PREFIX = f"swagger-ui-{VERSION}/"
MAX_ARCHIVE = 64 * 1024 * 1024
@@ -32,7 +32,7 @@ ASSETS = {
}
LICENSE_MEMBERS = ("LICENSE", "NOTICE", "dist/swagger-ui-bundle.js.LICENSE.txt")
HELP = ("Install Python 3.10+ and allow HTTPS access to github.com/codeload.github.com, "
"or set SWAGGER_UI_DOWNLOAD_URL=file:///absolute/path/swagger-ui-5.32.11.zip "
"or set SWAGGER_UI_DOWNLOAD_URL=file:///absolute/path/swagger-ui-5.33.1.zip "
"to a reviewed copy of the same tag archive. See docs/API_ACCESS.md.")
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
# Run on a clean Rust 1.99+ build machine with registry and Swagger asset access.
set -euo pipefail
ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
if ! command -v cargo >/dev/null 2>&1 || ! command -v rustc >/dev/null 2>&1; then
printf 'Rust 1.99+ and Cargo are required; no lockfile was regenerated.\n' >&2
exit 127
fi
python3 tools/checks/preflight.py
if [[ "$(python3 scripts/version.py)" != '0.31.2' ]]; then
printf 'Expected RustProxy 0.31.2 sources.\n' >&2
exit 1
fi
printf 'Toolchain: '; rustc --version
cargo update
python3 tools/checks/dependency_upgrade_0312.py --require-lock
cargo metadata --locked --format-version 1 --no-deps >/dev/null
cargo fmt --all -- --check
cargo clippy --locked --all-targets -- -D warnings
./dev.sh check
./dev.sh test
./dev.sh release
if cargo audit --version >/dev/null 2>&1; then
cargo audit
else
printf 'NOTICE: cargo-audit is unavailable; install it and run cargo audit before release.\n' >&2
fi
printf 'Source and locked Rust build complete. Still required: live H1/H2/H3, auth/TLS, SQLite, cache, UI and performance acceptance.\n'