Marquis03 commited on
Commit
961a322
·
verified ·
1 Parent(s): f8abcba

commit (part 57)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +8 -0
  2. igrr--mkspiffs.f248296/environment/Dockerfile +92 -0
  3. igrr--mkspiffs.f248296/environment/docker-compose.yaml +22 -0
  4. igrr--mkspiffs.f248296/environment/download.sh +73 -0
  5. igrr--mkspiffs.f248296/environment/executable +3 -0
  6. igrr--mkspiffs.f248296/environment/harbor_configure_apt_mirror.sh +37 -0
  7. igrr--mkspiffs.f248296/environment/harbor_configure_java_mirrors.sh +50 -0
  8. igrr--mkspiffs.f248296/environment/harbor_prepare_download_env.sh +44 -0
  9. igrr--mkspiffs.f248296/environment/programgym-gcc13.tar.gz +3 -0
  10. igrr--mkspiffs.f248296/environment/workspace.tar.gz +3 -0
  11. igrr--mkspiffs.f248296/instruction.md +98 -0
  12. igrr--mkspiffs.f248296/solution/solve.sh +33 -0
  13. igrr--mkspiffs.f248296/task.toml +69 -0
  14. igrr--mkspiffs.f248296/tests/Dockerfile +106 -0
  15. igrr--mkspiffs.f248296/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  16. igrr--mkspiffs.f248296/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  17. igrr--mkspiffs.f248296/tests/docker-compose.yaml +22 -0
  18. igrr--mkspiffs.f248296/tests/download.sh +73 -0
  19. igrr--mkspiffs.f248296/tests/executable +3 -0
  20. igrr--mkspiffs.f248296/tests/harbor_configure_apt_mirror.sh +37 -0
  21. igrr--mkspiffs.f248296/tests/harbor_configure_java_mirrors.sh +50 -0
  22. igrr--mkspiffs.f248296/tests/harbor_prepare_download_env.sh +44 -0
  23. igrr--mkspiffs.f248296/tests/programgym-gcc13.tar.gz +3 -0
  24. igrr--mkspiffs.f248296/tests/programgym_evaluator.py +1201 -0
  25. igrr--mkspiffs.f248296/tests/programgym_task.json +0 -0
  26. igrr--mkspiffs.f248296/tests/test.sh +82 -0
  27. igrr--mkspiffs.f248296/tests/workspace.tar.gz +3 -0
  28. ikalnytskyi--termcolor.89f2009/environment/Dockerfile +1 -0
  29. ikalnytskyi--termcolor.89f2009/tests/Dockerfile +1 -0
  30. illarion--lockenv.d0ecc55/environment/Dockerfile +1 -0
  31. illarion--lockenv.d0ecc55/tests/Dockerfile +1 -0
  32. ilyakaznacheev--cleanenv.fbd44b4/environment/Dockerfile +1 -0
  33. ilyakaznacheev--cleanenv.fbd44b4/tests/Dockerfile +1 -0
  34. imsoo--fight_detection.f6a435c/environment/Dockerfile +1 -0
  35. imsoo--fight_detection.f6a435c/tests/Dockerfile +1 -0
  36. inksha--rust-tutorial.714dc1a/environment/Dockerfile +1 -0
  37. inksha--rust-tutorial.714dc1a/tests/Dockerfile +1 -0
  38. inochi2d--inox2d.df8413e/environment/Dockerfile +93 -0
  39. inochi2d--inox2d.df8413e/environment/docker-compose.yaml +22 -0
  40. inochi2d--inox2d.df8413e/environment/download.sh +3442 -0
  41. inochi2d--inox2d.df8413e/environment/executable +3 -0
  42. inochi2d--inox2d.df8413e/environment/harbor_configure_apt_mirror.sh +37 -0
  43. inochi2d--inox2d.df8413e/environment/harbor_configure_java_mirrors.sh +50 -0
  44. inochi2d--inox2d.df8413e/environment/harbor_prepare_download_env.sh +47 -0
  45. inochi2d--inox2d.df8413e/environment/workspace.tar.gz +3 -0
  46. inochi2d--inox2d.df8413e/instruction.md +98 -0
  47. inochi2d--inox2d.df8413e/solution/solve.sh +33 -0
  48. inochi2d--inox2d.df8413e/task.toml +69 -0
  49. inochi2d--inox2d.df8413e/tests/Dockerfile +107 -0
  50. inochi2d--inox2d.df8413e/tests/blobs/tests/generated_module_01.tar.gz +3 -0
.gitattributes CHANGED
@@ -3334,3 +3334,11 @@ iangcarroll--cookiemonster.074e770/environment/executable filter=lfs diff=lfs me
3334
  iangcarroll--cookiemonster.074e770/tests/executable filter=lfs diff=lfs merge=lfs -text
3335
  icecrime--poule.8fb4044/environment/executable filter=lfs diff=lfs merge=lfs -text
3336
  icecrime--poule.8fb4044/tests/executable filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
3334
  iangcarroll--cookiemonster.074e770/tests/executable filter=lfs diff=lfs merge=lfs -text
3335
  icecrime--poule.8fb4044/environment/executable filter=lfs diff=lfs merge=lfs -text
3336
  icecrime--poule.8fb4044/tests/executable filter=lfs diff=lfs merge=lfs -text
3337
+ igrr--mkspiffs.f248296/environment/executable filter=lfs diff=lfs merge=lfs -text
3338
+ igrr--mkspiffs.f248296/tests/executable filter=lfs diff=lfs merge=lfs -text
3339
+ inochi2d--inox2d.df8413e/environment/executable filter=lfs diff=lfs merge=lfs -text
3340
+ inochi2d--inox2d.df8413e/tests/executable filter=lfs diff=lfs merge=lfs -text
3341
+ inotify-tools--inotify-tools.a8f024d/environment/executable filter=lfs diff=lfs merge=lfs -text
3342
+ inotify-tools--inotify-tools.a8f024d/tests/executable filter=lfs diff=lfs merge=lfs -text
3343
+ interact-rs--interact.d3f0ed9/environment/executable filter=lfs diff=lfs merge=lfs -text
3344
+ interact-rs--interact.d3f0ed9/tests/executable filter=lfs diff=lfs merge=lfs -text
igrr--mkspiffs.f248296/environment/Dockerfile ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV PAGER=cat
57
+ ENV MANPAGER=cat
58
+ ENV LESS=-R
59
+ ENV TQDM_DISABLE=1
60
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
61
+ ARG CMAKE_VERSION=3.31.10
62
+ RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
63
+ COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
64
+ ARG GCC_VERSION=13.3.0
65
+ RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; if [ "${GCC_ARCH}" != "x64" ]; then echo "the staged GCC 13 archive is for x64, got ${GCC_ARCH}" >&2; exit 1; fi; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
66
+ # programgym_quota_aware_nproc=1
67
+ RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
68
+ WORKDIR /workspace
69
+ ADD workspace.tar.gz /workspace/
70
+ COPY executable /workspace/executable
71
+ COPY download.sh /workspace/download.sh
72
+ RUN chmod 755 /workspace/download.sh
73
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
74
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
75
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
76
+ && rm -f /workspace/download.sh \
77
+ && rm -f /tmp/harbor_prepare_download_env.sh
78
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
79
+ RUN chmod 111 /workspace/executable
80
+ WORKDIR /workspace
81
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
82
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
83
+ # submission handed to the separate verifier. Keep the reference executable
84
+ # execute-only; the oracle temporarily restores owner read permission.
85
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
86
+ RUN mkdir -p /home/agent \
87
+ && chown -R agent:agent /home/agent /workspace \
88
+ && chown agent:agent /workspace/executable \
89
+ && chmod 111 /workspace/executable
90
+ ENV HOME=/home/agent
91
+ WORKDIR /workspace
92
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
igrr--mkspiffs.f248296/environment/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
igrr--mkspiffs.f248296/environment/download.sh ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # download.sh -- ProgramGym network-stage dependency fetch for mkspiffs.
4
+ #
5
+ # Sourced as: source /source_ro/download.sh
6
+ #
7
+ # This stage has network access, but the repository is mounted READ-ONLY here,
8
+ # so nothing may be written into the repo tree. All dependencies are therefore
9
+ # staged into a writable cache under /tmp and their location is exported for
10
+ # build.sh, which runs later in the writable /workspace/source and consumes
11
+ # them from there. No repository file is read and no build/compile/test step
12
+ # runs in this stage.
13
+
14
+ set -e
15
+
16
+ # Source-safe failure helper: return when sourced, exit when executed directly.
17
+ bail() {
18
+ echo "download.sh: $*" >&2
19
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
20
+ return 1
21
+ else
22
+ exit 1
23
+ fi
24
+ }
25
+
26
+ # ---------------------------------------------------------------------------
27
+ # mkspiffs compiles the SPIFFS sources. SPIFFS is a git submodule of this
28
+ # repository (see .gitmodules) pinned to a specific commit; only the root
29
+ # src/ C and H files listed by the Makefile OBJ list are needed. tclap is
30
+ # vendored in-tree (./tclap) and the SPIFFS config header is already in the
31
+ # repo (./include), so no other third-party dependency is required. The base
32
+ # image already provides gcc/g++/make, so no apt package is installed.
33
+ # ---------------------------------------------------------------------------
34
+
35
+ SPIFFS_REV="f5e26c4e933189593a71c6b82cda381a7b21e41c"
36
+ SPIFFS_URL="https://github.com/pellepl/spiffs/archive/${SPIFFS_REV}.tar.gz"
37
+
38
+ CACHE_DIR="${TMPDIR:-/tmp}/programgym_mkspiffs_cache"
39
+ TARBALL="${CACHE_DIR}/spiffs-${SPIFFS_REV}.tar.gz"
40
+ STAGE_DIR="${CACHE_DIR}/spiffs-src"
41
+
42
+ mkdir -p "${CACHE_DIR}"
43
+
44
+ # 1. Fetch the pinned SPIFFS archive once (idempotent).
45
+ if [ ! -f "${TARBALL}" ]; then
46
+ if ! curl -fsSL -o "${TARBALL}" "${SPIFFS_URL}"; then
47
+ bail "failed to fetch ${SPIFFS_URL}"
48
+ fi
49
+ fi
50
+
51
+ # 2. Extract exactly the 7 root src/ files that build.sh's make needs, into a
52
+ # layout where each file sits at the top of STAGE_DIR (idempotent).
53
+ if [ ! -e "${STAGE_DIR}/spiffs.h" ]; then
54
+ mkdir -p "${STAGE_DIR}"
55
+ if ! tar xzf "${TARBALL}" -C "${STAGE_DIR}" --strip-components=2 \
56
+ --wildcards \
57
+ '*/src/spiffs.h' '*/src/spiffs_nucleus.h' \
58
+ '*/src/spiffs_cache.c' '*/src/spiffs_check.c' '*/src/spiffs_gc.c' \
59
+ '*/src/spiffs_hydrogen.c' '*/src/spiffs_nucleus.c'; then
60
+ bail "failed to extract SPIFFS sources from ${TARBALL}"
61
+ fi
62
+ fi
63
+
64
+ # 3. Sanity-check that everything build.sh expects is present in the cache.
65
+ for f in spiffs.h spiffs_nucleus.h spiffs_cache.c spiffs_check.c \
66
+ spiffs_gc.c spiffs_hydrogen.c spiffs_nucleus.c; do
67
+ if [ ! -f "${STAGE_DIR}/${f}" ]; then
68
+ bail "SPIFFS source ${f} missing from cache ${STAGE_DIR}"
69
+ fi
70
+ done
71
+
72
+ # 4. Export what build.sh consumes.
73
+ export MKS_SPIFFS_SRC_DIR="${STAGE_DIR}"
igrr--mkspiffs.f248296/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e870141ba990960fa561c8ba846b4a6204a91277ba295472346112b2e75783b
3
+ size 2236096
igrr--mkspiffs.f248296/environment/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi
igrr--mkspiffs.f248296/environment/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
igrr--mkspiffs.f248296/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
6
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
7
+ fi
8
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
9
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
12
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
13
+ fi
14
+ source /workspace/download.sh
15
+ set +a
16
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
17
+ import os
18
+ import shlex
19
+
20
+ ignored = {
21
+ "ALL_PROXY",
22
+ "HTTP_PROXY",
23
+ "HTTPS_PROXY",
24
+ "NO_PROXY",
25
+ "OLDPWD",
26
+ "PIP_PROXY",
27
+ "PWD",
28
+ "SHLVL",
29
+ "_",
30
+ "all_proxy",
31
+ "http_proxy",
32
+ "https_proxy",
33
+ "no_proxy",
34
+ "pip_proxy",
35
+ }
36
+ for key in sorted(os.environ):
37
+ if key in ignored or key.startswith("BASH_FUNC_"):
38
+ continue
39
+ value = os.environ[key]
40
+ if "\n" in value:
41
+ continue
42
+ print(f"export {key}={shlex.quote(value)}")
43
+ PY
44
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
igrr--mkspiffs.f248296/environment/programgym-gcc13.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
3
+ size 146620404
igrr--mkspiffs.f248296/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac1a6c827869f82f3571e7ff2f51cdac2a6ed9d15c06d27bb26f8c920ad20c09
3
+ size 2415
igrr--mkspiffs.f248296/instruction.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are a helpful assistant that can interact with a computer.
2
+
3
+ This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
4
+ Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
5
+ You must figure out the behavior solely by running and interacting with the provided binary.
6
+ Writing original code based on observed behavior is the entire point of this benchmark.
7
+
8
+ Any approach that shortcuts this — finding existing source code, wrapping the binary,
9
+ or installing the original tool — does not count as a solution. It will be detected by an
10
+ automated judge, marked as a disqualification, and scored as a failure.
11
+ The trace will be posted to an online wall of shame.
12
+
13
+ <RULES>
14
+ ## What is not allowed
15
+
16
+ ### 1. Obtaining source code
17
+
18
+ The only source of truth about what the executable does is the executable itself and its
19
+ bundled documentation. You must not search the internet, package registries, or any external
20
+ source for information about this project's source code. Even if you recognize what the
21
+ executable is, you must reimplement it from behavioral observation alone.
22
+
23
+ This includes but is not limited to:
24
+ - Cloning or browsing the original GitHub repository, its forks, or mirrors
25
+ - Downloading the project from package registries: `cargo install <project>`, `go get github.com/<org>/<project>`, `pip install <project>`, `apt-get source <project>`, `npm install <project>`, etc.
26
+ - Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
27
+ - Using a package manager to download the project as a dependency and then reading its cached source (e.g., navigating into `~/.cargo/registry/src/` or `$(go env GOPATH)/pkg/mod/`)
28
+ - Searching the web for the project's source code or implementation details
29
+
30
+ ### 2. Wrapping or reusing the original binary
31
+
32
+ Your submission must be a genuine reimplementation. The provided `./executable` is for
33
+ observation only — your final solution must not depend on it or any other pre-built version
34
+ of the same tool at runtime.
35
+
36
+ This includes but is not limited to:
37
+ - Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
38
+ - Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
39
+ - Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
40
+ - Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
41
+ - Re-linking prebuilt `.o` object files found in the workspace without writing new source code
42
+
43
+ ### 3. Binary analysis of the provided executable
44
+
45
+ All information about the provided `./executable` must be obtained by interacting with it
46
+ through its normal user interface (CLI flags, stdin/stdout, etc.).
47
+ - You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
48
+ - You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
49
+
50
+ Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
51
+ analysis tools on binaries that you produce yourself during development.
52
+
53
+ ## What IS allowed
54
+
55
+ - Running the executable with any inputs, flags, and arguments to observe its behavior
56
+ - Reading any documentation files bundled in the workspace
57
+ </RULES>
58
+
59
+ ## Task context
60
+
61
+ We want to write the source code for a given executable.
62
+ The executable is located at `./executable` in the workspace root.
63
+
64
+ You also have access to the existing documentation.
65
+
66
+ ## Your task
67
+
68
+ Implement the source code to generate an executable of exactly identical behavior as the original.
69
+
70
+ No project-specific dependencies are pre-installed.
71
+ You do NOT have access to the internet.
72
+ **IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
73
+ Finally, commit your changes.
74
+
75
+ Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
76
+ `compile.sh` should be executable and should install any dependencies needed to compile the executable.
77
+ If your compile.sh fails to compile on a fresh checkout, your task has failed.
78
+
79
+ ## Important: This is a reverse-engineering benchmark
80
+
81
+ Your goal is to write original code from scratch that reproduces the executable's behavior.
82
+ The only way to learn what the executable does is to run it and read its bundled documentation.
83
+
84
+ Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
85
+ provided binary will be detected by an automated judge, disqualified, and scored as zero.
86
+ See the full rules in the system prompt above. Key points:
87
+
88
+ - Do NOT search the internet, clone repos, or download the project from any package registry
89
+ - Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
90
+ - Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
91
+ - You SHOULD extensively test the executable to understand its behavior before writing code.
92
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
93
+
94
+ ## Recommended Workflow
95
+
96
+ 1. Explore all documentation files
97
+ 2. Play with the executable to understand its behavior (however, you MUST NOT decompile `./executable` or perform any other form of binary or strace/ltrace analysis on it)
98
+ 3. Write the source code to implement the behavior
igrr--mkspiffs.f248296/solution/solve.sh ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Oracle-only ceiling check. The reference is execute-only for normal agents;
3
+ # because the oracle runs as the owning `agent` user it can temporarily add read
4
+ # permission and encode the binary for Harbor's normal artifact handoff.
5
+ set -euo pipefail
6
+ test -f ./executable
7
+ chmod u+r ./executable
8
+ python3 - <<'PY'
9
+ import base64
10
+ from pathlib import Path
11
+
12
+ Path(".programgym_oracle_reference").write_bytes(
13
+ base64.b64encode(Path("executable").read_bytes())
14
+ )
15
+ PY
16
+ chmod u-r ./executable
17
+ cat > compile.sh <<'EOF'
18
+ #!/usr/bin/env bash
19
+ set -euo pipefail
20
+ if [ -f ./.programgym_oracle_reference ]; then
21
+ python3 - <<'PY'
22
+ import base64
23
+ from pathlib import Path
24
+
25
+ Path("executable").write_bytes(
26
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
27
+ )
28
+ PY
29
+ fi
30
+ test -f ./executable
31
+ chmod +x ./executable
32
+ EOF
33
+ chmod +x compile.sh
igrr--mkspiffs.f248296/task.toml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+ source = "ProgramGym"
3
+ artifacts = [
4
+ "/logs/verifier/programgym_eval.json",
5
+ "/logs/verifier/harbor_diagnostics.json",
6
+ "/logs/verifier/programgym_eval.log",
7
+ "/logs/verifier/reward.json",
8
+ "/logs/verifier/reward.txt",
9
+ # Keep agent/runtime state out of the submission handoff. In particular,
10
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
11
+ # makes Python's safe tar extraction reject the entire workspace archive.
12
+ { source = "/workspace", exclude = [
13
+ "executable",
14
+ ".git",
15
+ ".bashrc",
16
+ ".cache",
17
+ ".cc-switch",
18
+ ".claude",
19
+ ".local",
20
+ ] },
21
+ ]
22
+
23
+ [task]
24
+ name = "programgym/igrr--mkspiffs.f248296"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for igrr/mkspiffs"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "cpp"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "igrr__mkspiffs.f248296"
32
+ repository = "igrr/mkspiffs"
33
+ commit = "f2482965703b9b4031a5d4797bfd7458016bf3d2"
34
+ language = "cpp"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.8302035989257042
37
+ test_branches = 2
38
+ test_count = 217
39
+
40
+ [agent]
41
+ timeout_sec = 14400
42
+ user = "agent"
43
+ network_mode = "allowlist"
44
+ allowed_hosts = ["api.anthropic.com", "api.openai.com"]
45
+
46
+ [verifier]
47
+ timeout_sec = 7200
48
+ user = "root"
49
+ environment_mode = "separate"
50
+
51
+ [verifier.env]
52
+ PROGRAMGYM_XDIST_WORKERS = "8"
53
+
54
+ [verifier.environment]
55
+ build_timeout_sec = 1800
56
+ cpus = 8
57
+ memory_mb = 16384
58
+ storage_mb = 30720
59
+ gpus = 0
60
+ workdir = "/workspace"
61
+
62
+ [environment]
63
+ network_mode = "public"
64
+ build_timeout_sec = 1800
65
+ cpus = 8
66
+ memory_mb = 16384
67
+ storage_mb = 30720
68
+ gpus = 0
69
+ workdir = "/workspace"
igrr--mkspiffs.f248296/tests/Dockerfile ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV PAGER=cat
57
+ ENV MANPAGER=cat
58
+ ENV LESS=-R
59
+ ENV TQDM_DISABLE=1
60
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
61
+ ARG CMAKE_VERSION=3.31.10
62
+ RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
63
+ COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
64
+ ARG GCC_VERSION=13.3.0
65
+ RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; if [ "${GCC_ARCH}" != "x64" ]; then echo "the staged GCC 13 archive is for x64, got ${GCC_ARCH}" >&2; exit 1; fi; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
66
+ # programgym_quota_aware_nproc=1
67
+ RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
68
+ WORKDIR /workspace
69
+ ADD workspace.tar.gz /workspace/
70
+ COPY executable /workspace/executable
71
+ COPY download.sh /workspace/download.sh
72
+ RUN chmod 755 /workspace/download.sh
73
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
74
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
75
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
76
+ && rm -f /workspace/download.sh \
77
+ && rm -f /tmp/harbor_prepare_download_env.sh
78
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
79
+ RUN chmod 111 /workspace/executable
80
+ WORKDIR /workspace
81
+ # Harbor uses tests/ as the separate verifier build context. Start with the
82
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
83
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
84
+ && mkdir -p /workspace /tests
85
+
86
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
87
+ # Installing a newer pytest alone leaves that apt package importable and creates
88
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
89
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
90
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
91
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
92
+ RUN set -eu; \
93
+ pip_break_system_packages=""; \
94
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
95
+ pip_break_system_packages="--break-system-packages"; \
96
+ fi; \
97
+ python3 -m pip install ${pip_break_system_packages} \
98
+ --no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
99
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
100
+
101
+ COPY test.sh /tests/test.sh
102
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
103
+ COPY programgym_task.json /tests/programgym_task.json
104
+ COPY blobs/ /tests/blobs/
105
+ RUN chmod +x /tests/test.sh
106
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
igrr--mkspiffs.f248296/tests/blobs/tests/generated_module_01.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db77589506d25ad6a123de8c5daa0ba04b4758b4426822f2316a72cd9786a2f6
3
+ size 16587
igrr--mkspiffs.f248296/tests/blobs/tests/generated_module_02.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f88da73f00dc4b7e6db96a128ea922345d9cbbe9db8edfd2b91049a474072735
3
+ size 28162
igrr--mkspiffs.f248296/tests/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
igrr--mkspiffs.f248296/tests/download.sh ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # download.sh -- ProgramGym network-stage dependency fetch for mkspiffs.
4
+ #
5
+ # Sourced as: source /source_ro/download.sh
6
+ #
7
+ # This stage has network access, but the repository is mounted READ-ONLY here,
8
+ # so nothing may be written into the repo tree. All dependencies are therefore
9
+ # staged into a writable cache under /tmp and their location is exported for
10
+ # build.sh, which runs later in the writable /workspace/source and consumes
11
+ # them from there. No repository file is read and no build/compile/test step
12
+ # runs in this stage.
13
+
14
+ set -e
15
+
16
+ # Source-safe failure helper: return when sourced, exit when executed directly.
17
+ bail() {
18
+ echo "download.sh: $*" >&2
19
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
20
+ return 1
21
+ else
22
+ exit 1
23
+ fi
24
+ }
25
+
26
+ # ---------------------------------------------------------------------------
27
+ # mkspiffs compiles the SPIFFS sources. SPIFFS is a git submodule of this
28
+ # repository (see .gitmodules) pinned to a specific commit; only the root
29
+ # src/ C and H files listed by the Makefile OBJ list are needed. tclap is
30
+ # vendored in-tree (./tclap) and the SPIFFS config header is already in the
31
+ # repo (./include), so no other third-party dependency is required. The base
32
+ # image already provides gcc/g++/make, so no apt package is installed.
33
+ # ---------------------------------------------------------------------------
34
+
35
+ SPIFFS_REV="f5e26c4e933189593a71c6b82cda381a7b21e41c"
36
+ SPIFFS_URL="https://github.com/pellepl/spiffs/archive/${SPIFFS_REV}.tar.gz"
37
+
38
+ CACHE_DIR="${TMPDIR:-/tmp}/programgym_mkspiffs_cache"
39
+ TARBALL="${CACHE_DIR}/spiffs-${SPIFFS_REV}.tar.gz"
40
+ STAGE_DIR="${CACHE_DIR}/spiffs-src"
41
+
42
+ mkdir -p "${CACHE_DIR}"
43
+
44
+ # 1. Fetch the pinned SPIFFS archive once (idempotent).
45
+ if [ ! -f "${TARBALL}" ]; then
46
+ if ! curl -fsSL -o "${TARBALL}" "${SPIFFS_URL}"; then
47
+ bail "failed to fetch ${SPIFFS_URL}"
48
+ fi
49
+ fi
50
+
51
+ # 2. Extract exactly the 7 root src/ files that build.sh's make needs, into a
52
+ # layout where each file sits at the top of STAGE_DIR (idempotent).
53
+ if [ ! -e "${STAGE_DIR}/spiffs.h" ]; then
54
+ mkdir -p "${STAGE_DIR}"
55
+ if ! tar xzf "${TARBALL}" -C "${STAGE_DIR}" --strip-components=2 \
56
+ --wildcards \
57
+ '*/src/spiffs.h' '*/src/spiffs_nucleus.h' \
58
+ '*/src/spiffs_cache.c' '*/src/spiffs_check.c' '*/src/spiffs_gc.c' \
59
+ '*/src/spiffs_hydrogen.c' '*/src/spiffs_nucleus.c'; then
60
+ bail "failed to extract SPIFFS sources from ${TARBALL}"
61
+ fi
62
+ fi
63
+
64
+ # 3. Sanity-check that everything build.sh expects is present in the cache.
65
+ for f in spiffs.h spiffs_nucleus.h spiffs_cache.c spiffs_check.c \
66
+ spiffs_gc.c spiffs_hydrogen.c spiffs_nucleus.c; do
67
+ if [ ! -f "${STAGE_DIR}/${f}" ]; then
68
+ bail "SPIFFS source ${f} missing from cache ${STAGE_DIR}"
69
+ fi
70
+ done
71
+
72
+ # 4. Export what build.sh consumes.
73
+ export MKS_SPIFFS_SRC_DIR="${STAGE_DIR}"
igrr--mkspiffs.f248296/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e870141ba990960fa561c8ba846b4a6204a91277ba295472346112b2e75783b
3
+ size 2236096
igrr--mkspiffs.f248296/tests/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi
igrr--mkspiffs.f248296/tests/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
igrr--mkspiffs.f248296/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
6
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
7
+ fi
8
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
9
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
12
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
13
+ fi
14
+ source /workspace/download.sh
15
+ set +a
16
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
17
+ import os
18
+ import shlex
19
+
20
+ ignored = {
21
+ "ALL_PROXY",
22
+ "HTTP_PROXY",
23
+ "HTTPS_PROXY",
24
+ "NO_PROXY",
25
+ "OLDPWD",
26
+ "PIP_PROXY",
27
+ "PWD",
28
+ "SHLVL",
29
+ "_",
30
+ "all_proxy",
31
+ "http_proxy",
32
+ "https_proxy",
33
+ "no_proxy",
34
+ "pip_proxy",
35
+ }
36
+ for key in sorted(os.environ):
37
+ if key in ignored or key.startswith("BASH_FUNC_"):
38
+ continue
39
+ value = os.environ[key]
40
+ if "\n" in value:
41
+ continue
42
+ print(f"export {key}={shlex.quote(value)}")
43
+ PY
44
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
igrr--mkspiffs.f248296/tests/programgym-gcc13.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
3
+ size 146620404
igrr--mkspiffs.f248296/tests/programgym_evaluator.py ADDED
@@ -0,0 +1,1201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """In-place ProgramGym evaluator.
3
+
4
+ Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
5
+ no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
6
+ cleanroom container after Harbor flips the verifier-phase network policy.
7
+
8
+ Differences from ``programgym.eval.eval.Evaluator`` that are structural to
9
+ running in one container:
10
+
11
+ * No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
12
+ copy a post-compile workspace snapshot to a temp directory and restore it
13
+ before each branch; ``cleanup_lingering_processes`` kills leftover branch
14
+ processes between attempts to approximate the fresh-container boundary.
15
+ * No ``docker commit``. The post-compile workspace snapshot serves the same
16
+ role as the committed image upstream.
17
+ * Hidden test blobs are fetched on demand from HuggingFace via
18
+ ``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
19
+ rather than being pre-staged into ``/tests/blobs/``. Override with
20
+ ``PROGRAMGYM_BLOB_DIR`` for offline reruns.
21
+
22
+ Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
23
+ ``compile.sh`` then stash + hash the executable, best-effort
24
+ ``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
25
+ ``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
26
+ best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
27
+ preserved.
28
+ """
29
+
30
+ from __future__ import annotations
31
+
32
+ import hashlib
33
+ import json
34
+ import os
35
+ import re
36
+ import shlex
37
+ import shutil
38
+ import signal
39
+ import subprocess
40
+ import tempfile
41
+ import time
42
+ import traceback
43
+ import xml.etree.ElementTree as ET
44
+ from pathlib import Path
45
+ from typing import Any
46
+
47
+ WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
48
+ STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
49
+ METADATA_PATH = Path(
50
+ os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
51
+ )
52
+ LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
53
+ WORKER_CRASH_PHRASE = "worker '"
54
+ XDIST_COLLAPSE_MARKERS = (
55
+ "maximum crashed workers reached",
56
+ "xdist: maximum crashed",
57
+ )
58
+
59
+ DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
60
+ DEFAULT_HF_REVISION = "main"
61
+
62
+ # Oracle agent handoff files (see solution/solve.sh). Must not appear in the
63
+ # post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
64
+ _ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
65
+
66
+ _TOOLCHAIN_BIN_DIR_CANDIDATES = (
67
+ "/usr/local/go/bin",
68
+ "/go/bin",
69
+ "/usr/local/cargo/bin",
70
+ "/root/.cargo/bin",
71
+ "/root/.ghcup/bin",
72
+ )
73
+
74
+
75
+ def toolchain_bin_dirs() -> list[str]:
76
+ """Return toolchain bin directories that exist on this image."""
77
+ candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
78
+ candidates.extend(
79
+ str(path)
80
+ for path in sorted(Path("/usr/lib").glob("go-*/bin"))
81
+ if _is_accessible_dir(path)
82
+ )
83
+ seen: set[str] = set()
84
+ present: list[str] = []
85
+ for path in candidates:
86
+ if path in seen:
87
+ continue
88
+ seen.add(path)
89
+ if _is_accessible_dir(path):
90
+ present.append(path)
91
+ return present
92
+
93
+
94
+ def _is_accessible_dir(path: str | Path) -> bool:
95
+ """Return whether path is a directory without failing on protected homes."""
96
+ try:
97
+ return Path(path).is_dir()
98
+ except OSError:
99
+ return False
100
+
101
+
102
+ def bootstrap_toolchain_path() -> str:
103
+ """Prepend discovered toolchain dirs to PATH (idempotent)."""
104
+ prepend = toolchain_bin_dirs()
105
+ current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
106
+ merged: list[str] = []
107
+ for path in prepend + current_parts:
108
+ if path not in merged:
109
+ merged.append(path)
110
+ new_path = ":".join(merged)
111
+ os.environ["PATH"] = new_path
112
+ return new_path
113
+
114
+
115
+ def _bash_login_command(command: str) -> str:
116
+ """Run ``command`` under bash -lc with an explicit PATH export."""
117
+ path = bootstrap_toolchain_path()
118
+ return f"export PATH={shlex.quote(path)}; {command}"
119
+
120
+
121
+ def sha256(path: Path) -> str:
122
+ h = hashlib.sha256()
123
+ with path.open("rb") as f:
124
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
125
+ h.update(chunk)
126
+ return h.hexdigest()
127
+
128
+
129
+ def write_json(path: Path, data: dict[str, Any]) -> None:
130
+ tmp = path.with_suffix(path.suffix + ".tmp")
131
+ tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
132
+ tmp.replace(path)
133
+
134
+
135
+ def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
136
+ if path is None or not path.exists():
137
+ return ""
138
+ data = path.read_bytes()
139
+ if len(data) <= max_bytes:
140
+ return data.decode(errors="replace")
141
+ return data[-max_bytes:].decode(errors="replace")
142
+
143
+
144
+ def _close_pipes(proc: subprocess.Popen[Any]) -> None:
145
+ for stream in (proc.stdout, proc.stderr):
146
+ if stream is not None:
147
+ try:
148
+ stream.close()
149
+ except OSError:
150
+ pass
151
+
152
+
153
+ def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
154
+ try:
155
+ os.killpg(proc.pid, signal.SIGKILL)
156
+ except ProcessLookupError:
157
+ pass
158
+ try:
159
+ proc.kill()
160
+ except ProcessLookupError:
161
+ pass
162
+
163
+
164
+ _PKILL_PATTERNS = (
165
+ f"{WORKSPACE}/eval/",
166
+ f"{WORKSPACE}/tests/",
167
+ "tail -f",
168
+ "development.log",
169
+ " less ",
170
+ " less$",
171
+ "/less ",
172
+ )
173
+
174
+
175
+ def _pkill_aggressive() -> str:
176
+ """Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
177
+ notes: list[str] = []
178
+ workspace = str(WORKSPACE)
179
+ patterns = list(_PKILL_PATTERNS) + [
180
+ f"pytest.*{workspace}",
181
+ f"xdist.*{workspace}",
182
+ ]
183
+ for pattern in patterns:
184
+ result = subprocess.run(
185
+ ["pkill", "-9", "-f", pattern],
186
+ capture_output=True,
187
+ text=True,
188
+ )
189
+ notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
190
+ return "\n".join(notes)
191
+
192
+
193
+ def run_step(
194
+ command: str,
195
+ cwd: Path,
196
+ *,
197
+ timeout: int,
198
+ env: dict[str, str] | None = None,
199
+ step: str,
200
+ accept_failure: bool = False,
201
+ log_output: bool | None = None,
202
+ max_output_bytes: int = 65536,
203
+ ) -> dict[str, Any]:
204
+ if log_output is None:
205
+ log_output = step == "run_tests" or timeout >= 60
206
+
207
+ started = time.monotonic()
208
+ stdout_path: Path | None = None
209
+ stderr_path: Path | None = None
210
+ stdout_f = None
211
+ stderr_f = None
212
+
213
+ if log_output:
214
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
215
+ log_id = f"{step}-{int(started * 1000)}"
216
+ stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
217
+ stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
218
+ stdout_f = stdout_path.open("w", encoding="utf-8")
219
+ stderr_f = stderr_path.open("w", encoding="utf-8")
220
+ popen_stdout: Any = stdout_f
221
+ popen_stderr: Any = stderr_f
222
+ else:
223
+ popen_stdout = subprocess.PIPE
224
+ popen_stderr = subprocess.PIPE
225
+
226
+ proc = subprocess.Popen(
227
+ ["bash", "-lc", _bash_login_command(command)],
228
+ cwd=cwd,
229
+ env={**os.environ, **(env or {})},
230
+ stdout=popen_stdout,
231
+ stderr=popen_stderr,
232
+ start_new_session=True,
233
+ text=True,
234
+ )
235
+ timed_out = False
236
+ stdout = ""
237
+ stderr = ""
238
+ try:
239
+ if log_output:
240
+ proc.wait(timeout=timeout)
241
+ else:
242
+ stdout, stderr = proc.communicate(timeout=timeout)
243
+ except subprocess.TimeoutExpired:
244
+ timed_out = True
245
+ _terminate_process_tree(proc)
246
+ cleanup_lingering_processes(aggressive=True)
247
+ try:
248
+ proc.wait(timeout=5)
249
+ except subprocess.TimeoutExpired:
250
+ proc.kill()
251
+ if not log_output:
252
+ _close_pipes(proc)
253
+ finally:
254
+ if stdout_f is not None:
255
+ stdout_f.close()
256
+ if stderr_f is not None:
257
+ stderr_f.close()
258
+
259
+ if timed_out:
260
+ if log_output:
261
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
262
+ stderr_path, max_output_bytes
263
+ )
264
+ else:
265
+ output = ""
266
+ entry = {
267
+ "step": step,
268
+ "command": command,
269
+ "wall_time": time.monotonic() - started,
270
+ "output": output,
271
+ "returncode": 124,
272
+ "exception_info": f"timed out after {timeout}s",
273
+ }
274
+ else:
275
+ if log_output:
276
+ output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
277
+ stderr_path, max_output_bytes
278
+ )
279
+ else:
280
+ output = stdout + stderr
281
+ entry = {
282
+ "step": step,
283
+ "command": command,
284
+ "wall_time": time.monotonic() - started,
285
+ "output": output,
286
+ "returncode": proc.returncode,
287
+ "exception_info": "",
288
+ }
289
+ if entry["returncode"] and not accept_failure:
290
+ raise RuntimeError(
291
+ f"{step} failed: {entry['exception_info'] or entry['output']}"
292
+ )
293
+ return entry
294
+
295
+
296
+ def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
297
+ started = time.monotonic()
298
+ patterns = [
299
+ str(WORKSPACE / "executable"),
300
+ f"{WORKSPACE}/eval/",
301
+ f"{WORKSPACE}/tests/",
302
+ # lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
303
+ "tail -f",
304
+ "development.log",
305
+ ]
306
+ killed: list[int] = []
307
+ proc_root = Path("/proc")
308
+ proc_available = proc_root.exists()
309
+ if proc_available:
310
+ for proc_dir in proc_root.iterdir():
311
+ if not proc_dir.name.isdigit():
312
+ continue
313
+ pid = int(proc_dir.name)
314
+ if pid in {os.getpid(), os.getppid()}:
315
+ continue
316
+ try:
317
+ raw = (proc_dir / "cmdline").read_bytes()
318
+ except (FileNotFoundError, PermissionError, ProcessLookupError):
319
+ continue
320
+ cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
321
+ if not any(pattern in cmdline for pattern in patterns):
322
+ continue
323
+ try:
324
+ os.kill(pid, signal.SIGKILL)
325
+ except (PermissionError, ProcessLookupError):
326
+ continue
327
+ killed.append(pid)
328
+ pkill_output = ""
329
+ if aggressive or not proc_available:
330
+ pkill_output = _pkill_aggressive()
331
+ output_parts = []
332
+ if killed:
333
+ output_parts.append("\n".join(str(pid) for pid in killed))
334
+ if pkill_output:
335
+ output_parts.append(pkill_output)
336
+ return {
337
+ "step": "cleanup_lingering_processes",
338
+ "command": "kill leftover branch processes referencing the workspace",
339
+ "wall_time": time.monotonic() - started,
340
+ "output": "\n".join(output_parts),
341
+ "returncode": 0,
342
+ "exception_info": "",
343
+ }
344
+
345
+
346
+ def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
347
+ import tarfile
348
+
349
+ with tarfile.open(tar_path, "r:gz") as tf:
350
+ try:
351
+ tf.extractall(dest, filter="fully_trusted")
352
+ except TypeError:
353
+ tf.extractall(dest)
354
+
355
+
356
+ def find_results_xml() -> Path | None:
357
+ """Return the junit xml path if pytest wrote one."""
358
+ for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
359
+ if candidate.exists():
360
+ return candidate
361
+ return None
362
+
363
+
364
+ def remove_oracle_handoff_artifacts() -> list[str]:
365
+ """Drop oracle-agent handoff files from /workspace before snapshot/restore."""
366
+ removed: list[str] = []
367
+ for name in _ORACLE_HANDOFF_NAMES:
368
+ path = WORKSPACE / name
369
+ if path.exists():
370
+ if path.is_dir():
371
+ shutil.rmtree(path)
372
+ else:
373
+ path.unlink()
374
+ removed.append(name)
375
+ return removed
376
+
377
+
378
+ def _remove_tree(path: Path) -> None:
379
+ """Remove a file or directory tree, with a shell fallback for overlay races."""
380
+ if path.is_symlink() or path.is_file():
381
+ path.unlink(missing_ok=True)
382
+ return
383
+ if not path.is_dir():
384
+ path.unlink(missing_ok=True)
385
+ return
386
+ for attempt in range(3):
387
+ try:
388
+ shutil.rmtree(path)
389
+ if not path.exists():
390
+ return
391
+ except OSError:
392
+ if attempt == 2:
393
+ run_step(
394
+ f"rm -rf {shlex.quote(str(path))}",
395
+ path.parent,
396
+ timeout=120,
397
+ step="clear_workspace_fallback",
398
+ accept_failure=True,
399
+ )
400
+ if not path.exists():
401
+ return
402
+ raise
403
+
404
+
405
+ def ensure_workspace_dir() -> None:
406
+ """Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
407
+ if WORKSPACE.exists() and not WORKSPACE.is_dir():
408
+ if WORKSPACE.is_symlink() or WORKSPACE.is_file():
409
+ WORKSPACE.unlink()
410
+ else:
411
+ shutil.rmtree(WORKSPACE)
412
+ WORKSPACE.mkdir(parents=True, exist_ok=True)
413
+
414
+
415
+ def clear_workspace() -> None:
416
+ ensure_workspace_dir()
417
+ for path in list(WORKSPACE.iterdir()):
418
+ _remove_tree(path)
419
+
420
+
421
+ def restore_reference_executable() -> None:
422
+ """Write the stashed reference binary into /workspace after a branch overlay.
423
+
424
+ Branch blobs may ship ``executable`` as a dangling symlink into
425
+ ``target/release/...``; ``shutil.copy2`` would follow it and raise
426
+ ``FileNotFoundError``. Drop whatever the blob left and copy the stashed
427
+ reference as a regular file.
428
+ """
429
+ ensure_workspace_dir()
430
+ if not STASHED_EXECUTABLE.is_file():
431
+ raise FileNotFoundError(
432
+ f"missing stashed reference executable at {STASHED_EXECUTABLE}"
433
+ )
434
+ dest = WORKSPACE / "executable"
435
+ if dest.exists() or dest.is_symlink():
436
+ if dest.is_dir():
437
+ shutil.rmtree(dest)
438
+ else:
439
+ dest.unlink(missing_ok=True)
440
+ shutil.copy2(STASHED_EXECUTABLE, dest)
441
+ dest.chmod(0o755)
442
+
443
+
444
+ def snapshot_workspace(dest: Path) -> None:
445
+ if dest.exists():
446
+ shutil.rmtree(dest)
447
+ shutil.copytree(WORKSPACE, dest, symlinks=True)
448
+
449
+
450
+ def restore_workspace(source: Path) -> None:
451
+ clear_workspace()
452
+ shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
453
+ ensure_workspace_dir()
454
+
455
+
456
+ def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
457
+ removed: list[str] = []
458
+ for path in root.rglob("*"):
459
+ if path.is_file() and not path.is_symlink():
460
+ try:
461
+ if sha256(path) in hashes:
462
+ path.unlink()
463
+ removed.append(str(path.relative_to(root)))
464
+ except OSError:
465
+ continue
466
+ return removed
467
+
468
+
469
+ def branch_tests(branch_info: dict[str, Any]) -> list[str]:
470
+ ignored = {
471
+ item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
472
+ }
473
+ return [name for name in branch_info.get("tests", []) if name not in ignored]
474
+
475
+
476
+ def ignored_tests(metadata: dict[str, Any]) -> set[str]:
477
+ result: set[str] = set()
478
+ for branch, info in metadata.get("branches", {}).items():
479
+ result.update(
480
+ f"{branch}/{item['name']}"
481
+ for item in info.get("ignored_tests", [])
482
+ if "name" in item
483
+ )
484
+ return result
485
+
486
+
487
+ def active_tests(metadata: dict[str, Any]) -> set[str]:
488
+ active: set[str] = set()
489
+ for branch, info in metadata.get("branches", {}).items():
490
+ if info.get("ignored"):
491
+ continue
492
+ ignored = {
493
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
494
+ }
495
+ active.update(
496
+ f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
497
+ )
498
+ return active
499
+
500
+
501
+ def inject_not_run(
502
+ result: dict[str, Any], branch: str, tests: list[str], error_code: str
503
+ ) -> None:
504
+ result["test_results"].extend(
505
+ {
506
+ "name": name,
507
+ "branch": branch,
508
+ "status": "not_run",
509
+ "extra": {"error_code": error_code},
510
+ }
511
+ for name in tests
512
+ )
513
+
514
+
515
+ def testcase_name(case: ET.Element) -> str:
516
+ classname = case.attrib.get("classname", "")
517
+ name = case.attrib.get("name", "")
518
+ return f"{classname}.{name}" if classname else name
519
+
520
+
521
+ # Only these tags under <testcase> represent a result. <system-out> /
522
+ # <system-err> are stdout/stderr captures and must not be treated as results
523
+ # (a leading <system-out> followed by <failure> would otherwise be classified
524
+ # as a stdout-only "passed").
525
+ JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
526
+
527
+
528
+ def parse_junit(
529
+ raw_xml: str, branch: str, expected: list[str], ignored: set[str]
530
+ ) -> tuple[list[dict[str, Any]], list[str]]:
531
+ root = ET.fromstring(raw_xml)
532
+ got: set[str] = set()
533
+ results: list[dict[str, Any]] = []
534
+ for case in root.iter("testcase"):
535
+ name = testcase_name(case)
536
+ got.add(name)
537
+ extra: dict[str, Any] = {}
538
+ if "time" in case.attrib:
539
+ try:
540
+ extra["time"] = float(case.attrib["time"])
541
+ except ValueError:
542
+ extra["time"] = case.attrib["time"]
543
+ result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
544
+ # Collapse duplicate same-tag result children. Pytest's
545
+ # "pytest.internal" pseudo-test sometimes emits two identical <error>
546
+ # entries; treating that as a system_error would over-flag a real
547
+ # single failure. Mirrors upstream eval.py:816-820.
548
+ if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
549
+ result_children = [result_children[0]]
550
+ if not result_children:
551
+ status = "passed"
552
+ elif len(result_children) != 1:
553
+ status = "system_error"
554
+ extra["error_details"] = (
555
+ f"Expected 1 result for {name}, got {len(result_children)}: "
556
+ f"{[c.tag for c in result_children]}"
557
+ )
558
+ else:
559
+ first = result_children[0]
560
+ status = first.tag # "skipped" | "failure" | "error"
561
+ extra["message"] = first.attrib.get("message") or ""
562
+ if first.text:
563
+ extra["text"] = first.text
564
+ results.append(
565
+ {"name": name, "branch": branch, "status": status, "extra": extra}
566
+ )
567
+
568
+ active_expected = [name for name in expected if name not in ignored]
569
+ missing = [name for name in active_expected if name not in got]
570
+ results.extend(
571
+ {
572
+ "name": name,
573
+ "branch": branch,
574
+ "status": "not_run",
575
+ "extra": {"error_code": "missing_from_junit_xml"},
576
+ }
577
+ for name in missing
578
+ )
579
+ unexpected = got - set(expected) - ignored
580
+ warnings = (
581
+ [f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
582
+ if unexpected
583
+ else []
584
+ )
585
+ return results, warnings
586
+
587
+
588
+ def count_worker_crashes(raw_xml: str) -> int:
589
+ if WORKER_CRASH_PHRASE not in raw_xml:
590
+ return 0
591
+ try:
592
+ root = ET.fromstring(raw_xml)
593
+ except ET.ParseError:
594
+ return 0
595
+ crashes = 0
596
+ for case in root.iter("testcase"):
597
+ for child in case:
598
+ text = (child.get("message") or "") + " " + (child.text or "")
599
+ if (
600
+ child.tag in {"error", "failure"}
601
+ and WORKER_CRASH_PHRASE in text
602
+ and "crashed" in text
603
+ ):
604
+ crashes += 1
605
+ break
606
+ return crashes
607
+
608
+
609
+ def run_output_indicates_xdist_collapse(output: str) -> bool:
610
+ lower = output.lower()
611
+ return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
612
+
613
+
614
+ def count_junit_failures(raw_xml: str) -> int:
615
+ try:
616
+ root = ET.fromstring(raw_xml)
617
+ except ET.ParseError:
618
+ return 0
619
+ failures = 0
620
+ for case in root.iter("testcase"):
621
+ for child in case:
622
+ if child.tag in {"failure", "error"}:
623
+ failures += 1
624
+ break
625
+ return failures
626
+
627
+
628
+ def count_junit_passed(raw_xml: str) -> int:
629
+ try:
630
+ root = ET.fromstring(raw_xml)
631
+ except ET.ParseError:
632
+ return 0
633
+ passed = 0
634
+ for case in root.iter("testcase"):
635
+ if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
636
+ passed += 1
637
+ return passed
638
+
639
+
640
+ def branch_attempt_metrics(
641
+ raw_xml: str, *, run_output: str, expected_tests: int
642
+ ) -> tuple[int, int, int, int]:
643
+ """Return (crashes, n_testcases, failures, missing_from_xml)."""
644
+ crashes = count_worker_crashes(raw_xml)
645
+ if run_output_indicates_xdist_collapse(run_output):
646
+ crashes = max(crashes, 1)
647
+ n_tests = count_testcases(raw_xml)
648
+ failures = count_junit_failures(raw_xml)
649
+ missing = max(0, expected_tests - n_tests)
650
+ return crashes, n_tests, failures, missing
651
+
652
+
653
+ def needs_serial_retry(
654
+ *,
655
+ serial: bool,
656
+ crashes: int,
657
+ missing: int,
658
+ failures: int,
659
+ n_tests: int,
660
+ expected_tests: int,
661
+ run_output: str,
662
+ ) -> bool:
663
+ if serial:
664
+ return False
665
+ high_failure_rate = (
666
+ expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
667
+ )
668
+ return (
669
+ crashes > 0
670
+ or missing > 0
671
+ or high_failure_rate
672
+ or run_output_indicates_xdist_collapse(run_output)
673
+ )
674
+
675
+
676
+ def count_testcases(raw_xml: str) -> int:
677
+ try:
678
+ return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
679
+ except ET.ParseError:
680
+ return 0
681
+
682
+
683
+ def scored_results(
684
+ result: dict[str, Any], metadata: dict[str, Any]
685
+ ) -> list[dict[str, Any]]:
686
+ active = active_tests(metadata)
687
+ by_key = {
688
+ f"{test['branch']}/{test['name']}": test
689
+ for test in result["test_results"]
690
+ if f"{test['branch']}/{test['name']}" in active
691
+ }
692
+ return [
693
+ by_key.get(
694
+ key,
695
+ {
696
+ "branch": key.split("/", 1)[0],
697
+ "name": key.split("/", 1)[1],
698
+ "status": "not_run",
699
+ "extra": {"error_code": "missing_from_results"},
700
+ },
701
+ )
702
+ for key in sorted(active)
703
+ ]
704
+
705
+
706
+ def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
707
+ scored = scored_results(result, metadata)
708
+ n_passed = sum(t["status"] == "passed" for t in scored)
709
+ n_tests = len(scored)
710
+ pass_rate = n_passed / n_tests if n_tests else 0.0
711
+ # Multi-key reward: Harbor's default Mean aggregates each key independently
712
+ # (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
713
+ # the proportion of tasks scoring a perfect pass-rate and mean of
714
+ # "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
715
+ # per-task pass-rate whose mean is the overall mean reward.
716
+ return {
717
+ "reward": pass_rate,
718
+ "resolved": 1.0 if pass_rate >= 1.0 else 0.0,
719
+ "almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
720
+ }
721
+
722
+
723
+ def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
724
+ scored = scored_results(result, metadata)
725
+ n_passed = sum(t["status"] == "passed" for t in scored)
726
+ n_tests = len(scored)
727
+ pass_rate = n_passed / n_tests if n_tests else 0.0
728
+ return {
729
+ "pass_rate": pass_rate,
730
+ "resolved": int(
731
+ bool(
732
+ n_tests
733
+ and n_passed == n_tests
734
+ and not result["test_branch_errors"]
735
+ and not result["error_code"]
736
+ )
737
+ ),
738
+ "n_passed": n_passed,
739
+ "n_tests": n_tests,
740
+ "n_branch_errors": len(result["test_branch_errors"]),
741
+ "infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
742
+ "executable_hash_present": int(bool(result.get("executable_hash"))),
743
+ }
744
+
745
+
746
+ def use_script_pty() -> bool:
747
+ return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
748
+
749
+
750
+ def script_pty_available() -> bool:
751
+ return shutil.which("script") is not None
752
+
753
+
754
+ def branch_env(
755
+ *,
756
+ serial: bool,
757
+ has_rerunfailures: bool,
758
+ extras: dict[str, str] | None = None,
759
+ ) -> dict[str, str]:
760
+ addopts = ["--max-worker-restart=4"]
761
+ # A serial fallback is already a complete second execution. Re-running each
762
+ # failing test two more times makes large, failure-heavy suites prohibitively
763
+ # slow and adds little signal.
764
+ if has_rerunfailures and not serial:
765
+ addopts.extend(["--reruns=2", "--reruns-delay=1"])
766
+ env = {
767
+ "PYTEST_ADDOPTS": " ".join(addopts),
768
+ # Match upstream non-TTY regression environments (dirble log format, etc.).
769
+ "NO_COLOR": "1",
770
+ "TERM": "dumb",
771
+ "CLICOLOR": "0",
772
+ "CLICOLOR_FORCE": "0",
773
+ "COLORTERM": "",
774
+ }
775
+ if extras:
776
+ env.update(extras)
777
+ xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
778
+ if serial:
779
+ xdist_workers = "1"
780
+ if xdist_workers:
781
+ env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
782
+ return env
783
+
784
+
785
+ _SERIAL_RUN_SH = ".programgym_run_serial.sh"
786
+ # ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
787
+ # ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
788
+ _RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
789
+
790
+
791
+ def prepare_serial_run_sh(run_sh: Path) -> Path:
792
+ """Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
793
+ serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
794
+ patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
795
+ serial_sh.write_text(patched)
796
+ serial_sh.chmod(0o755)
797
+ return serial_sh
798
+
799
+
800
+ def run_tests_command(*, serial: bool) -> str:
801
+ if serial:
802
+ inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
803
+ else:
804
+ inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
805
+ if use_script_pty() and script_pty_available():
806
+ return f"script -q -c {shlex.quote(inner)} /dev/null"
807
+ return inner
808
+
809
+
810
+ BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
811
+
812
+
813
+ def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
814
+ """Locate the per-instance blob directory.
815
+
816
+ Resolution order:
817
+
818
+ 1. ``/tests/blobs/`` if pre-fetched into the task at generation time
819
+ (``programgym-adapter --download-blobs``). Verifier-only mount, so
820
+ agent never sees these.
821
+ 2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
822
+ tree on disk (``<dir>/<instance_id>/tests/<branch>.tar.gz``). Useful
823
+ for offline reruns sharing a cache across many tasks.
824
+ 3. ``huggingface_hub.snapshot_download`` from
825
+ ``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
826
+
827
+ The returned directory contains ``tests/<branch>.tar.gz`` per active
828
+ branch — same shape as ``programgym/ProgramGym-Tests/<instance_id>/``
829
+ on HF.
830
+ """
831
+ if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
832
+ return BAKED_BLOB_DIR
833
+
834
+ local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
835
+ if local:
836
+ candidate = Path(local) / instance_id
837
+ if candidate.exists():
838
+ return candidate
839
+ raise FileNotFoundError(
840
+ f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
841
+ )
842
+
843
+ repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
844
+ "hf_repo_id", DEFAULT_HF_REPO_ID
845
+ )
846
+ revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
847
+ "hf_revision", DEFAULT_HF_REVISION
848
+ )
849
+
850
+ from huggingface_hub import snapshot_download
851
+
852
+ cache_root = Path(
853
+ snapshot_download(
854
+ repo_id,
855
+ repo_type="dataset",
856
+ revision=revision,
857
+ allow_patterns=f"{instance_id}/**",
858
+ )
859
+ )
860
+ blob_dir = cache_root / instance_id
861
+ if not blob_dir.exists():
862
+ raise FileNotFoundError(
863
+ f"HF blob directory missing for {instance_id} at {blob_dir}"
864
+ )
865
+ return blob_dir
866
+
867
+
868
+ def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
869
+ bootstrap_toolchain_path()
870
+ branches = metadata.get("branches", {})
871
+ active_branch_items = [
872
+ (name, info) for name, info in branches.items() if not info.get("ignored")
873
+ ]
874
+ result: dict[str, Any] = {
875
+ "test_results": [],
876
+ "error_code": None,
877
+ "error_details": None,
878
+ "log": [],
879
+ "solution_branch": "submission",
880
+ "test_branches": [name for name, _ in active_branch_items],
881
+ "test_branch_errors": {},
882
+ "executable_hash": None,
883
+ "warnings": [],
884
+ }
885
+
886
+ instance_id = metadata["instance_id"]
887
+
888
+ compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
889
+ branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
890
+
891
+ def fail_all(error_code: str, details: str) -> dict[str, Any]:
892
+ result["error_code"] = error_code
893
+ result["error_details"] = details
894
+ for branch, info in active_branch_items:
895
+ inject_not_run(result, branch, branch_tests(info), error_code)
896
+ return result
897
+
898
+ with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
899
+ compiled_snapshot = Path(tmp) / "compiled"
900
+
901
+ started = time.monotonic()
902
+ removed = remove_hashed_files(
903
+ WORKSPACE, set(metadata.get("eval_clean_hashes", []))
904
+ )
905
+ result["log"].append(
906
+ {
907
+ "step": "remove_hashed_files",
908
+ "command": "remove files matching eval_clean_hashes",
909
+ "wall_time": time.monotonic() - started,
910
+ "output": "".join(f"removed '{path}'\n" for path in removed),
911
+ "returncode": 0,
912
+ "exception_info": "",
913
+ }
914
+ )
915
+
916
+ compile_sh = WORKSPACE / "compile.sh"
917
+ if not compile_sh.exists():
918
+ return fail_all(
919
+ "missing_compile_sh", "submission did not contain compile.sh"
920
+ )
921
+
922
+ seed = (
923
+ "if [ ! -d .git ]; then "
924
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
925
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
926
+ "git -c init.defaultBranch=gold init -q && "
927
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
928
+ "GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
929
+ "GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
930
+ "git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
931
+ "fi"
932
+ )
933
+ try:
934
+ result["log"].append(
935
+ run_step(seed, WORKSPACE, timeout=300, step="seed_git")
936
+ )
937
+ compile_log = run_step(
938
+ "chmod +x ./compile.sh && ./compile.sh",
939
+ WORKSPACE,
940
+ timeout=compile_timeout,
941
+ step="compile",
942
+ accept_failure=True,
943
+ )
944
+ result["log"].append(compile_log)
945
+ if compile_log["returncode"]:
946
+ return fail_all("compile_failed", compile_log["output"])
947
+ executable = WORKSPACE / "executable"
948
+ if not executable.exists():
949
+ return fail_all(
950
+ "missing_executable",
951
+ "compile.sh completed but did not create ./executable",
952
+ )
953
+ STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
954
+ # `move` (not copy) so /workspace doesn't keep a parallel copy of
955
+ # the agent's executable during the stash→restore window. Mirrors
956
+ # upstream `mv ./executable {STASHED}` (eval.py:472).
957
+ shutil.move(str(executable), STASHED_EXECUTABLE)
958
+ result["executable_hash"] = sha256(STASHED_EXECUTABLE)
959
+ result["log"].append(
960
+ run_step(
961
+ "pip3 install -q --disable-pip-version-check pytest-rerunfailures",
962
+ WORKSPACE,
963
+ timeout=120,
964
+ step="install_rerunfailures",
965
+ accept_failure=True,
966
+ )
967
+ )
968
+ has_rerunfailures = result["log"][-1]["returncode"] == 0
969
+ handoff_removed = remove_oracle_handoff_artifacts()
970
+ if handoff_removed:
971
+ result["log"].append(
972
+ {
973
+ "step": "remove_oracle_handoff",
974
+ "command": "remove oracle handoff artifacts from workspace",
975
+ "wall_time": 0.0,
976
+ "output": "".join(
977
+ f"removed '{name}'\n" for name in handoff_removed
978
+ ),
979
+ "returncode": 0,
980
+ "exception_info": "",
981
+ }
982
+ )
983
+ snapshot_workspace(compiled_snapshot)
984
+ except Exception as exc:
985
+ return fail_all(type(exc).__name__, str(exc))
986
+
987
+ try:
988
+ blob_dir = resolve_blob_dir(instance_id, metadata)
989
+ except Exception as exc:
990
+ details = f"{type(exc).__name__}: {exc}"
991
+ for branch, info in active_branch_items:
992
+ result["test_branch_errors"][branch] = [
993
+ {
994
+ "error_code": "blob_resolution_failed",
995
+ "error_details": details,
996
+ }
997
+ ]
998
+ inject_not_run(
999
+ result, branch, branch_tests(info), "blob_resolution_failed"
1000
+ )
1001
+ return result
1002
+
1003
+ for branch, info in active_branch_items:
1004
+ tests = branch_tests(info)
1005
+ blob = blob_dir / "tests" / f"{branch}.tar.gz"
1006
+ if not blob.exists():
1007
+ result["test_branch_errors"][branch] = [
1008
+ {"error_code": "missing_test_blob", "error_details": blob.name}
1009
+ ]
1010
+ inject_not_run(result, branch, tests, "missing_test_blob")
1011
+ continue
1012
+
1013
+ best_xml = ""
1014
+ # Prefer a complete, clean XML result, then the result covering the
1015
+ # most expected tests, and only then the one with the most passes.
1016
+ # Pass-count-only ranking can retain a partial xdist result over a
1017
+ # complete serial result.
1018
+ best_quality = (-1, -1, -1)
1019
+ serial = bool(metadata.get("force_serial_branches"))
1020
+ branch_log: list[dict[str, Any]] = []
1021
+ branch_ignored = {
1022
+ item["name"] for item in info.get("ignored_tests", []) if "name" in item
1023
+ }
1024
+ n_expected = len([name for name in tests if name not in branch_ignored])
1025
+
1026
+ def merge_best_xml(raw_xml: str) -> None:
1027
+ try:
1028
+ parsed, warnings = parse_junit(
1029
+ raw_xml, branch, list(info.get("tests", [])), branch_ignored
1030
+ )
1031
+ except Exception as exc:
1032
+ result["test_branch_errors"][branch] = [
1033
+ {"error_code": "xml_parse_error", "error_details": str(exc)}
1034
+ ]
1035
+ inject_not_run(result, branch, tests, "xml_parse_error")
1036
+ else:
1037
+ result["test_results"].extend(parsed)
1038
+ result["warnings"].extend(warnings)
1039
+
1040
+ while True:
1041
+ branch_log.append(cleanup_lingering_processes())
1042
+ restore_workspace(compiled_snapshot)
1043
+ extract_trusted_blob(blob, WORKSPACE)
1044
+ restore_reference_executable()
1045
+ actual_hash = sha256(WORKSPACE / "executable")
1046
+ if actual_hash != result["executable_hash"]:
1047
+ result["test_branch_errors"][branch] = [
1048
+ {
1049
+ "error_code": "executable_hash_mismatch",
1050
+ "error_details": (
1051
+ f"expected {result['executable_hash']}, got {actual_hash}"
1052
+ ),
1053
+ }
1054
+ ]
1055
+ inject_not_run(result, branch, tests, "executable_hash_mismatch")
1056
+ break
1057
+ run_sh = WORKSPACE / "eval" / "run.sh"
1058
+ if not run_sh.exists():
1059
+ result["test_branch_errors"][branch] = [
1060
+ {
1061
+ "error_code": "missing_run_sh",
1062
+ "error_details": "eval/run.sh missing",
1063
+ }
1064
+ ]
1065
+ inject_not_run(result, branch, tests, "missing_run_sh")
1066
+ break
1067
+ # Upstream rewrites thread→signal so xdist workers fail cleanly
1068
+ # instead of os._exit(1) on timeout. That works in fresh
1069
+ # containers per branch; here we reuse one container and
1070
+ # signal timeouts leave TUI/log-watcher subprocesses alive
1071
+ # (e.g. lazygit --logs + tail -f), wedging pytest for up to
1072
+ # branch_timeout. Keep the blob's thread method and rely on
1073
+ # cleanup_lingering_processes + serial fallback after crashes.
1074
+ env = branch_env(
1075
+ serial=serial,
1076
+ has_rerunfailures=has_rerunfailures,
1077
+ extras=metadata.get("branch_env"),
1078
+ )
1079
+ branch_log.append(
1080
+ run_step(
1081
+ "rm -f eval/results.xml results.xml",
1082
+ WORKSPACE,
1083
+ timeout=120,
1084
+ step="clean_stale_results",
1085
+ accept_failure=True,
1086
+ )
1087
+ )
1088
+ if serial:
1089
+ prepare_serial_run_sh(run_sh)
1090
+ run_entry = run_step(
1091
+ run_tests_command(serial=serial),
1092
+ WORKSPACE,
1093
+ timeout=branch_timeout,
1094
+ env=env,
1095
+ step="run_tests",
1096
+ accept_failure=True,
1097
+ )
1098
+ branch_log.append(run_entry)
1099
+ branch_log.append(cleanup_lingering_processes())
1100
+ xml_path = find_results_xml()
1101
+ if xml_path is None:
1102
+ if best_xml:
1103
+ merge_best_xml(best_xml)
1104
+ break
1105
+ if serial:
1106
+ result["test_branch_errors"][branch] = [
1107
+ {
1108
+ "error_code": "missing_results_xml",
1109
+ "error_details": "eval/results.xml was not produced",
1110
+ }
1111
+ ]
1112
+ inject_not_run(result, branch, tests, "missing_results_xml")
1113
+ break
1114
+ serial = True
1115
+ continue
1116
+ raw_xml = xml_path.read_text(errors="replace")
1117
+ crashes, n_tests, failures, missing = branch_attempt_metrics(
1118
+ raw_xml,
1119
+ run_output=run_entry.get("output", ""),
1120
+ expected_tests=n_expected,
1121
+ )
1122
+ useful = count_junit_passed(raw_xml)
1123
+ quality = (
1124
+ int(crashes == 0 and missing == 0),
1125
+ n_tests,
1126
+ useful,
1127
+ )
1128
+ if quality > best_quality:
1129
+ best_xml = raw_xml
1130
+ best_quality = quality
1131
+ retry = needs_serial_retry(
1132
+ serial=serial,
1133
+ crashes=crashes,
1134
+ missing=missing,
1135
+ failures=failures,
1136
+ n_tests=n_tests,
1137
+ expected_tests=n_expected,
1138
+ run_output=run_entry.get("output", ""),
1139
+ )
1140
+ if not retry:
1141
+ merge_best_xml(best_xml)
1142
+ break
1143
+ serial = True
1144
+ for entry in branch_log:
1145
+ entry["branch"] = branch
1146
+ result["log"].extend(branch_log)
1147
+
1148
+ return result
1149
+
1150
+
1151
+ def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
1152
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
1153
+ write_json(LOG_DIR / "programgym_eval.json", result)
1154
+ write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
1155
+ rewards = summarize(result, metadata)
1156
+ write_json(LOG_DIR / "reward.json", rewards)
1157
+ (LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
1158
+
1159
+
1160
+ def main() -> None:
1161
+ LOG_DIR.mkdir(parents=True, exist_ok=True)
1162
+ log_path = LOG_DIR / "programgym_eval.log"
1163
+ metadata = json.loads(METADATA_PATH.read_text())
1164
+ branches = metadata.get("branches", {})
1165
+ try:
1166
+ result = evaluate(metadata)
1167
+ except Exception as exc:
1168
+ error_code = type(exc).__name__
1169
+ result = {
1170
+ "test_results": [],
1171
+ "error_code": error_code,
1172
+ "error_details": str(exc),
1173
+ "log": [
1174
+ {
1175
+ "step": "evaluator_exception",
1176
+ "exception_info": traceback.format_exc(),
1177
+ "returncode": 1,
1178
+ }
1179
+ ],
1180
+ "solution_branch": "submission",
1181
+ "test_branches": [
1182
+ name for name, info in branches.items() if not info.get("ignored")
1183
+ ],
1184
+ "test_branch_errors": {
1185
+ "__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
1186
+ },
1187
+ "executable_hash": None,
1188
+ "warnings": [],
1189
+ }
1190
+ for branch, info in branches.items():
1191
+ if info.get("ignored"):
1192
+ continue
1193
+ inject_not_run(result, branch, branch_tests(info), error_code)
1194
+ log_path.write_text(traceback.format_exc())
1195
+ else:
1196
+ log_path.write_text("")
1197
+ write_outputs(result, metadata)
1198
+
1199
+
1200
+ if __name__ == "__main__":
1201
+ main()
igrr--mkspiffs.f248296/tests/programgym_task.json ADDED
The diff for this file is too large to render. See raw diff
 
igrr--mkspiffs.f248296/tests/test.sh ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
5
+ export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
6
+
7
+ mkdir -p /logs/verifier /logs/artifacts
8
+
9
+ write_failure() {
10
+ local code="$1"
11
+ local details="$2"
12
+ python3 - "$code" "$details" <<'PY'
13
+ import json
14
+ import sys
15
+ from pathlib import Path
16
+
17
+ code, details = sys.argv[1:3]
18
+ try:
19
+ metadata = json.loads(Path("/tests/programgym_task.json").read_text())
20
+ n_tests = sum(
21
+ len([
22
+ name for name in info.get("tests", [])
23
+ if name not in {item.get("name") for item in info.get("ignored_tests", [])}
24
+ ])
25
+ for branch, info in metadata.get("branches", {}).items()
26
+ if not info.get("ignored")
27
+ )
28
+ except Exception:
29
+ n_tests = 0
30
+ result = {
31
+ "test_results": [],
32
+ "error_code": code,
33
+ "error_details": details,
34
+ "log": [],
35
+ "solution_branch": "submission",
36
+ "test_branches": [],
37
+ "test_branch_errors": {
38
+ "__infra__": [{"error_code": code, "error_details": details}]
39
+ },
40
+ "executable_hash": None,
41
+ "warnings": [],
42
+ }
43
+ diagnostics = {
44
+ "pass_rate": 0.0,
45
+ "resolved": 0,
46
+ "n_passed": 0,
47
+ "n_tests": n_tests,
48
+ "n_branch_errors": 1,
49
+ "infra_error": 1,
50
+ "executable_hash_present": 0,
51
+ }
52
+ Path("/logs/verifier/programgym_eval.json").write_text(
53
+ json.dumps(result, indent=2, sort_keys=True)
54
+ )
55
+ Path("/logs/verifier/harbor_diagnostics.json").write_text(
56
+ json.dumps(diagnostics, indent=2, sort_keys=True)
57
+ )
58
+ Path("/logs/verifier/reward.json").write_text(
59
+ json.dumps(
60
+ {"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
61
+ indent=2,
62
+ sort_keys=True,
63
+ )
64
+ )
65
+ Path("/logs/verifier/reward.txt").write_text("0.0")
66
+ Path("/logs/verifier/programgym_eval.log").write_text(details)
67
+ PY
68
+ }
69
+
70
+ if ! command -v python3 >/dev/null 2>&1; then
71
+ write_failure "missing_python3" "python3 is required in the cleanroom image"
72
+ exit 0
73
+ fi
74
+
75
+ if ! python3 /tests/programgym_evaluator.py; then
76
+ if [ ! -s /logs/verifier/reward.txt ]; then
77
+ write_failure "evaluator_crashed" \
78
+ "programgym_evaluator.py exited non-zero with no reward written"
79
+ fi
80
+ fi
81
+
82
+ exit 0
igrr--mkspiffs.f248296/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac1a6c827869f82f3571e7ff2f51cdac2a6ed9d15c06d27bb26f8c920ad20c09
3
+ size 2415
ikalnytskyi--termcolor.89f2009/environment/Dockerfile CHANGED
@@ -64,3 +64,4 @@ RUN mkdir -p /home/agent \
64
  && chmod 111 /workspace/executable
65
  ENV HOME=/home/agent
66
  WORKDIR /workspace
 
 
64
  && chmod 111 /workspace/executable
65
  ENV HOME=/home/agent
66
  WORKDIR /workspace
67
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
ikalnytskyi--termcolor.89f2009/tests/Dockerfile CHANGED
@@ -72,3 +72,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
72
  COPY programgym_task.json /tests/programgym_task.json
73
  COPY blobs/ /tests/blobs/
74
  RUN chmod +x /tests/test.sh
 
 
72
  COPY programgym_task.json /tests/programgym_task.json
73
  COPY blobs/ /tests/blobs/
74
  RUN chmod +x /tests/test.sh
75
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
illarion--lockenv.d0ecc55/environment/Dockerfile CHANGED
@@ -62,3 +62,4 @@ RUN mkdir -p /home/agent \
62
  && chmod 111 /workspace/executable
63
  ENV HOME=/home/agent
64
  WORKDIR /workspace
 
 
62
  && chmod 111 /workspace/executable
63
  ENV HOME=/home/agent
64
  WORKDIR /workspace
65
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
illarion--lockenv.d0ecc55/tests/Dockerfile CHANGED
@@ -71,3 +71,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
71
  COPY programgym_task.json /tests/programgym_task.json
72
  COPY blobs/ /tests/blobs/
73
  RUN chmod +x /tests/test.sh
 
 
71
  COPY programgym_task.json /tests/programgym_task.json
72
  COPY blobs/ /tests/blobs/
73
  RUN chmod +x /tests/test.sh
74
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
ilyakaznacheev--cleanenv.fbd44b4/environment/Dockerfile CHANGED
@@ -56,3 +56,4 @@ RUN mkdir -p /home/agent \
56
  && chmod 111 /workspace/executable
57
  ENV HOME=/home/agent
58
  WORKDIR /workspace
 
 
56
  && chmod 111 /workspace/executable
57
  ENV HOME=/home/agent
58
  WORKDIR /workspace
59
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
ilyakaznacheev--cleanenv.fbd44b4/tests/Dockerfile CHANGED
@@ -64,3 +64,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
64
  COPY programgym_task.json /tests/programgym_task.json
65
  COPY blobs/ /tests/blobs/
66
  RUN chmod +x /tests/test.sh
 
 
64
  COPY programgym_task.json /tests/programgym_task.json
65
  COPY blobs/ /tests/blobs/
66
  RUN chmod +x /tests/test.sh
67
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
imsoo--fight_detection.f6a435c/environment/Dockerfile CHANGED
@@ -53,3 +53,4 @@ RUN mkdir -p /home/agent \
53
  && chmod 111 /workspace/executable
54
  ENV HOME=/home/agent
55
  WORKDIR /workspace
 
 
53
  && chmod 111 /workspace/executable
54
  ENV HOME=/home/agent
55
  WORKDIR /workspace
56
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
imsoo--fight_detection.f6a435c/tests/Dockerfile CHANGED
@@ -61,3 +61,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
61
  COPY programgym_task.json /tests/programgym_task.json
62
  COPY blobs/ /tests/blobs/
63
  RUN chmod +x /tests/test.sh
 
 
61
  COPY programgym_task.json /tests/programgym_task.json
62
  COPY blobs/ /tests/blobs/
63
  RUN chmod +x /tests/test.sh
64
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
inksha--rust-tutorial.714dc1a/environment/Dockerfile CHANGED
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
 
 
57
  && chmod 111 /workspace/executable
58
  ENV HOME=/home/agent
59
  WORKDIR /workspace
60
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
inksha--rust-tutorial.714dc1a/tests/Dockerfile CHANGED
@@ -66,3 +66,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
66
  COPY programgym_task.json /tests/programgym_task.json
67
  COPY blobs/ /tests/blobs/
68
  RUN chmod +x /tests/test.sh
 
 
66
  COPY programgym_task.json /tests/programgym_task.json
67
  COPY blobs/ /tests/blobs/
68
  RUN chmod +x /tests/test.sh
69
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
inochi2d--inox2d.df8413e/environment/Dockerfile ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.97.1-bookworm
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV CARGO_HOME=/usr/local/cargo
57
+ ENV RUSTUP_HOME=/usr/local/rustup
58
+ ENV RUSTUP_TOOLCHAIN=1.97.1
59
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
60
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
61
+ ENV PAGER=cat
62
+ ENV MANPAGER=cat
63
+ ENV LESS=-R
64
+ ENV TQDM_DISABLE=1
65
+ RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
66
+ RUN set -eux; for attempt in 1 2 3 4 5; do rustup component add llvm-tools-preview --toolchain 1.97.1 && break; [ "$attempt" -lt 5 ] || exit 1; sleep $((attempt * 2)); done
67
+ RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
68
+ RUN rustc --version && cargo --version && rustup show active-toolchain
69
+ WORKDIR /workspace
70
+ ADD workspace.tar.gz /workspace/
71
+ COPY executable /workspace/executable
72
+ COPY download.sh /tmp/programgym-download.sh
73
+ RUN chmod 755 /tmp/programgym-download.sh
74
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
75
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
76
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
77
+ && rm -f /tmp/programgym-download.sh \
78
+ && rm -f /tmp/harbor_prepare_download_env.sh
79
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
80
+ RUN chmod 111 /workspace/executable
81
+ WORKDIR /workspace
82
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
83
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
84
+ # submission handed to the separate verifier. Keep the reference executable
85
+ # execute-only; the oracle temporarily restores owner read permission.
86
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
87
+ RUN mkdir -p /home/agent \
88
+ && chown -R agent:agent /home/agent /workspace \
89
+ && chown agent:agent /workspace/executable \
90
+ && chmod 111 /workspace/executable
91
+ ENV HOME=/home/agent
92
+ WORKDIR /workspace
93
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
inochi2d--inox2d.df8413e/environment/docker-compose.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ main:
3
+ build:
4
+ args:
5
+ PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
6
+ PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
7
+ PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
8
+ PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
9
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
10
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
11
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
12
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
13
+ PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
14
+ PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
15
+ PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
16
+ PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
17
+ PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
18
+ PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
19
+ PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
20
+ PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
21
+ PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
22
+ PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
inochi2d--inox2d.df8413e/environment/download.sh ADDED
@@ -0,0 +1,3442 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # download.sh — ProgramGym networked dependency stage for Inochi2D/inox2d (Rust).
4
+ #
5
+ # This script is STANDALONE: it must not read any repository file. It is sourced
6
+ # via `source /source_ro/download.sh` from a read-only mount and must be safe to
7
+ # run in shell source mode (exported vars persist, no `exit` in normal flow).
8
+ #
9
+ # Job: populate the Cargo package cache so the later *offline* build.sh can build
10
+ # the `parse-inp` example with `cargo build --offline`. It only fetches/downloads
11
+ # dependencies; it performs NO compile, link, test, or packaging step.
12
+ #
13
+ # Strategy: reproduce the real workspace (the 6 Cargo.toml member manifests plus
14
+ # the authoritative Cargo.lock pinned by `cargo generate-lockfile`) in a temporary
15
+ # directory, add minimal stub source files so the workspace parses, and run
16
+ # cargo fetch --locked --manifest-path "$tmp/Cargo.toml"
17
+ # which downloads every crate (335 packages) the offline build needs into
18
+ # $CARGO_HOME/registry. Cargo does NOT probe rustc/cargo here.
19
+
20
+ # Shared cargo cache. build.sh relies on this same value.
21
+ export CARGO_HOME="${CARGO_HOME:-/usr/local/cargo}"
22
+
23
+ WS_STAGE="/tmp/inox2d-download-workspace"
24
+ rm -rf "$WS_STAGE"
25
+ mkdir -p "$WS_STAGE/inox2d/src" \
26
+ "$WS_STAGE/inox2d/examples" \
27
+ "$WS_STAGE/inox2d-opengl/src" \
28
+ "$WS_STAGE/examples/common/src" \
29
+ "$WS_STAGE/examples/render-opengl/src" \
30
+ "$WS_STAGE/examples/render-webgl/src"
31
+
32
+ # ---- Workspace root manifest -------------------------------------------------
33
+ cat > "$WS_STAGE/Cargo.toml" <<'CARGO_EOF'
34
+ [workspace]
35
+ resolver = "2"
36
+ members = [
37
+ "inox2d",
38
+ "inox2d-opengl",
39
+ "examples/*",
40
+ ]
41
+ CARGO_EOF
42
+ # stubs so the generated workspace parses (fetch does not compile them)
43
+ : > "$WS_STAGE/inox2d/src/lib.rs"
44
+ : > "$WS_STAGE/inox2d-opengl/src/lib.rs"
45
+ : > "$WS_STAGE/examples/common/src/lib.rs"
46
+ : > "$WS_STAGE/examples/common/src/scene.rs"
47
+ printf 'mod app_frame;\nfn main(){}\n' > "$WS_STAGE/examples/render-opengl/src/main.rs"
48
+ : > "$WS_STAGE/examples/render-opengl/src/app_frame.rs"
49
+ printf 'fn main(){}\n' > "$WS_STAGE/examples/render-webgl/src/main.rs"
50
+ printf 'fn main(){}\n' > "$WS_STAGE/inox2d/examples/parse-inp.rs"
51
+ printf 'fn main(){}\n' > "$WS_STAGE/inox2d/examples/dump-to-inp.rs"
52
+
53
+ # ---- Member manifest: inox2d ------------------------------------------------
54
+ cat > "$WS_STAGE/inox2d/Cargo.toml" <<'CARGO_EOF'
55
+ [package]
56
+ name = "inox2d"
57
+ description = "Officially supported native Rust reimplementation of Inochi2D."
58
+ authors = ["Speykious"]
59
+ version = "0.3.0"
60
+ edition = "2021"
61
+ repository = "https://github.com/Inochi2D/inox2d"
62
+ license = "BSD-2-Clause"
63
+ keywords = ["gamedev", "graphics", "inochi2d", "vtuber"]
64
+ categories = ["graphics", "rendering"]
65
+
66
+ [dependencies]
67
+ glam = "0.29.0"
68
+ image = { version = "0.25.2", default-features = false, features = [
69
+ "png",
70
+ "jpeg",
71
+ ] }
72
+ indextree = "4.6.0"
73
+ json = "0.12.4"
74
+ owo-colors = { version = "4.0.0", optional = true }
75
+ simple-tga-reader = "0.1.0"
76
+ thiserror = "1.0.39"
77
+ tracing = "0.1.37"
78
+
79
+ [dev-dependencies]
80
+ clap = { version = "4.1.8", features = ["derive"] }
81
+
82
+ [features]
83
+ owo = ["dep:owo-colors"]
84
+ CARGO_EOF
85
+ # ---- Member manifest: inox2d-opengl ------------------------------------------
86
+ cat > "$WS_STAGE/inox2d-opengl/Cargo.toml" <<'CARGO_EOF'
87
+ [package]
88
+ name = "inox2d-opengl"
89
+ description = "OpenGL renderer for Inox2D"
90
+ authors = ["Speykious"]
91
+ version = "0.3.0"
92
+ edition = "2021"
93
+ repository = "https://github.com/Inochi2D/inox2d"
94
+ license = "BSD-2-Clause"
95
+ keywords = ["gamedev", "graphics", "inochi2d", "vtuber", "opengl"]
96
+ categories = ["graphics", "rendering"]
97
+
98
+ [dependencies]
99
+ inox2d = { path = "../inox2d", version = "0.3.0" }
100
+ glam = "0.29.0"
101
+ glow = { version = "0.14.1" }
102
+ thiserror = "1.0.39"
103
+ tracing = "0.1.37"
104
+ CARGO_EOF
105
+ # ---- Member manifest: examples/common ----------------------------------------
106
+ cat > "$WS_STAGE/examples/common/Cargo.toml" <<'CARGO_EOF'
107
+ [package]
108
+ name = "common"
109
+ version = "0.1.0"
110
+ edition = "2021"
111
+
112
+ [dependencies]
113
+ glam = "0.29.0"
114
+ inox2d = { path = "../../inox2d" }
115
+ tracing = "0.1.40"
116
+ winit = "0.29"
117
+
118
+ [target.'cfg(target_arch = "wasm32")'.dependencies]
119
+ web-time = "1.0.0"
120
+ CARGO_EOF
121
+ # ---- Member manifest: examples/render-opengl ---------------------------------
122
+ cat > "$WS_STAGE/examples/render-opengl/Cargo.toml" <<'CARGO_EOF'
123
+ [package]
124
+ name = "render-opengl"
125
+ version = "0.1.0"
126
+ edition = "2021"
127
+
128
+ [dependencies]
129
+ common = { path = "../common" }
130
+ inox2d = { path = "../../inox2d" }
131
+ inox2d-opengl = { path = "../../inox2d-opengl" }
132
+
133
+ clap = { version = "4.1.8", features = ["derive"] }
134
+ glam = { version = "0.29.0", features = ["bytemuck"] }
135
+ glow = { version = "0.14.1" }
136
+ glutin = "0.31.2"
137
+ glutin-winit = "0.4.2"
138
+ raw-window-handle = "0.5.2"
139
+ tracing = "0.1.37"
140
+ tracing-subscriber = "0.3.16"
141
+ winit = { version = "0.29", features = ["rwh_05"] }
142
+ CARGO_EOF
143
+ # ---- Member manifest: examples/render-webgl ----------------------------------
144
+ cat > "$WS_STAGE/examples/render-webgl/Cargo.toml" <<'CARGO_EOF'
145
+ [package]
146
+ name = "render-webgl"
147
+ version = "0.1.0"
148
+ edition = "2021"
149
+
150
+ [dependencies]
151
+ inox2d = { path = "../../inox2d" }
152
+ inox2d-opengl = { path = "../../inox2d-opengl" }
153
+ common = { path = "../common" }
154
+
155
+ console_error_panic_hook = "0.1.7"
156
+ glam = "0.29.0"
157
+ glow = "0.14.1"
158
+ js-sys = "0.3.64"
159
+ reqwest = "0.12.7"
160
+ tracing = "0.1.37"
161
+ tracing-wasm = "0.2.1"
162
+ wasm-bindgen = "0.2.87"
163
+ wasm-bindgen-futures = "0.4.37"
164
+ winit = "0.29"
165
+
166
+ [dependencies.web-sys]
167
+ version = "0.3.61"
168
+ features = [
169
+ "Window",
170
+ "Location",
171
+ "Navigator",
172
+ "Element",
173
+ "HtmlElement",
174
+ "Document",
175
+ ]
176
+ CARGO_EOF
177
+ # ---- Authoritative Cargo.lock (pins every resolved version) ------------------
178
+ cat > "$WS_STAGE/Cargo.lock" <<'CARGO_EOF'
179
+ # This file is automatically @generated by Cargo.
180
+ # It is not intended for manual editing.
181
+ version = 4
182
+
183
+ [[package]]
184
+ name = "ab_glyph"
185
+ version = "0.2.32"
186
+ source = "registry+https://github.com/rust-lang/crates.io-index"
187
+ checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2"
188
+ dependencies = [
189
+ "ab_glyph_rasterizer",
190
+ "owned_ttf_parser",
191
+ ]
192
+
193
+ [[package]]
194
+ name = "ab_glyph_rasterizer"
195
+ version = "0.1.10"
196
+ source = "registry+https://github.com/rust-lang/crates.io-index"
197
+ checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
198
+
199
+ [[package]]
200
+ name = "adler2"
201
+ version = "2.0.1"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
204
+
205
+ [[package]]
206
+ name = "ahash"
207
+ version = "0.8.12"
208
+ source = "registry+https://github.com/rust-lang/crates.io-index"
209
+ checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
210
+ dependencies = [
211
+ "cfg-if",
212
+ "getrandom 0.3.4",
213
+ "once_cell",
214
+ "version_check",
215
+ "zerocopy",
216
+ ]
217
+
218
+ [[package]]
219
+ name = "android-activity"
220
+ version = "0.5.2"
221
+ source = "registry+https://github.com/rust-lang/crates.io-index"
222
+ checksum = "ee91c0c2905bae44f84bfa4e044536541df26b7703fd0888deeb9060fcc44289"
223
+ dependencies = [
224
+ "android-properties",
225
+ "bitflags 2.13.1",
226
+ "cc",
227
+ "cesu8",
228
+ "jni",
229
+ "jni-sys 0.3.1",
230
+ "libc",
231
+ "log",
232
+ "ndk",
233
+ "ndk-context",
234
+ "ndk-sys",
235
+ "num_enum",
236
+ "thiserror 1.0.69",
237
+ ]
238
+
239
+ [[package]]
240
+ name = "android-properties"
241
+ version = "0.2.2"
242
+ source = "registry+https://github.com/rust-lang/crates.io-index"
243
+ checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04"
244
+
245
+ [[package]]
246
+ name = "anstream"
247
+ version = "1.0.0"
248
+ source = "registry+https://github.com/rust-lang/crates.io-index"
249
+ checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
250
+ dependencies = [
251
+ "anstyle",
252
+ "anstyle-parse",
253
+ "anstyle-query",
254
+ "anstyle-wincon",
255
+ "colorchoice",
256
+ "is_terminal_polyfill",
257
+ "utf8parse",
258
+ ]
259
+
260
+ [[package]]
261
+ name = "anstyle"
262
+ version = "1.0.14"
263
+ source = "registry+https://github.com/rust-lang/crates.io-index"
264
+ checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
265
+
266
+ [[package]]
267
+ name = "anstyle-parse"
268
+ version = "1.0.0"
269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
270
+ checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
271
+ dependencies = [
272
+ "utf8parse",
273
+ ]
274
+
275
+ [[package]]
276
+ name = "anstyle-query"
277
+ version = "1.1.5"
278
+ source = "registry+https://github.com/rust-lang/crates.io-index"
279
+ checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
280
+ dependencies = [
281
+ "windows-sys 0.61.2",
282
+ ]
283
+
284
+ [[package]]
285
+ name = "anstyle-wincon"
286
+ version = "3.0.11"
287
+ source = "registry+https://github.com/rust-lang/crates.io-index"
288
+ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
289
+ dependencies = [
290
+ "anstyle",
291
+ "once_cell_polyfill",
292
+ "windows-sys 0.61.2",
293
+ ]
294
+
295
+ [[package]]
296
+ name = "arrayref"
297
+ version = "0.3.9"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
300
+
301
+ [[package]]
302
+ name = "arrayvec"
303
+ version = "0.7.8"
304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
305
+ checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
306
+
307
+ [[package]]
308
+ name = "as-raw-xcb-connection"
309
+ version = "1.0.1"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b"
312
+
313
+ [[package]]
314
+ name = "atomic-waker"
315
+ version = "1.1.2"
316
+ source = "registry+https://github.com/rust-lang/crates.io-index"
317
+ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
318
+
319
+ [[package]]
320
+ name = "autocfg"
321
+ version = "1.5.1"
322
+ source = "registry+https://github.com/rust-lang/crates.io-index"
323
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
324
+
325
+ [[package]]
326
+ name = "base64"
327
+ version = "0.22.1"
328
+ source = "registry+https://github.com/rust-lang/crates.io-index"
329
+ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
330
+
331
+ [[package]]
332
+ name = "bitflags"
333
+ version = "1.3.2"
334
+ source = "registry+https://github.com/rust-lang/crates.io-index"
335
+ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
336
+
337
+ [[package]]
338
+ name = "bitflags"
339
+ version = "2.13.1"
340
+ source = "registry+https://github.com/rust-lang/crates.io-index"
341
+ checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
342
+
343
+ [[package]]
344
+ name = "block-sys"
345
+ version = "0.2.1"
346
+ source = "registry+https://github.com/rust-lang/crates.io-index"
347
+ checksum = "ae85a0696e7ea3b835a453750bf002770776609115e6d25c6d2ff28a8200f7e7"
348
+ dependencies = [
349
+ "objc-sys",
350
+ ]
351
+
352
+ [[package]]
353
+ name = "block2"
354
+ version = "0.3.0"
355
+ source = "registry+https://github.com/rust-lang/crates.io-index"
356
+ checksum = "15b55663a85f33501257357e6421bb33e769d5c9ffb5ba0921c975a123e35e68"
357
+ dependencies = [
358
+ "block-sys",
359
+ "objc2",
360
+ ]
361
+
362
+ [[package]]
363
+ name = "bumpalo"
364
+ version = "3.20.3"
365
+ source = "registry+https://github.com/rust-lang/crates.io-index"
366
+ checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
367
+
368
+ [[package]]
369
+ name = "bytemuck"
370
+ version = "1.25.2"
371
+ source = "registry+https://github.com/rust-lang/crates.io-index"
372
+ checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
373
+
374
+ [[package]]
375
+ name = "byteorder-lite"
376
+ version = "0.1.0"
377
+ source = "registry+https://github.com/rust-lang/crates.io-index"
378
+ checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
379
+
380
+ [[package]]
381
+ name = "bytes"
382
+ version = "1.12.1"
383
+ source = "registry+https://github.com/rust-lang/crates.io-index"
384
+ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
385
+
386
+ [[package]]
387
+ name = "calloop"
388
+ version = "0.12.4"
389
+ source = "registry+https://github.com/rust-lang/crates.io-index"
390
+ checksum = "fba7adb4dd5aa98e5553510223000e7148f621165ec5f9acd7113f6ca4995298"
391
+ dependencies = [
392
+ "bitflags 2.13.1",
393
+ "log",
394
+ "polling",
395
+ "rustix 0.38.44",
396
+ "slab",
397
+ "thiserror 1.0.69",
398
+ ]
399
+
400
+ [[package]]
401
+ name = "calloop-wayland-source"
402
+ version = "0.2.0"
403
+ source = "registry+https://github.com/rust-lang/crates.io-index"
404
+ checksum = "0f0ea9b9476c7fad82841a8dbb380e2eae480c21910feba80725b46931ed8f02"
405
+ dependencies = [
406
+ "calloop",
407
+ "rustix 0.38.44",
408
+ "wayland-backend",
409
+ "wayland-client",
410
+ ]
411
+
412
+ [[package]]
413
+ name = "cc"
414
+ version = "1.4.5"
415
+ source = "registry+https://github.com/rust-lang/crates.io-index"
416
+ checksum = "005ec2760ca554fae18df7a11195552ec576cd665632a881bc011d5bb2fd4d80"
417
+ dependencies = [
418
+ "find-msvc-tools",
419
+ "jobserver",
420
+ "libc",
421
+ "shlex",
422
+ ]
423
+
424
+ [[package]]
425
+ name = "cesu8"
426
+ version = "1.1.0"
427
+ source = "registry+https://github.com/rust-lang/crates.io-index"
428
+ checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
429
+
430
+ [[package]]
431
+ name = "cfg-if"
432
+ version = "1.0.4"
433
+ source = "registry+https://github.com/rust-lang/crates.io-index"
434
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
435
+
436
+ [[package]]
437
+ name = "cfg_aliases"
438
+ version = "0.1.1"
439
+ source = "registry+https://github.com/rust-lang/crates.io-index"
440
+ checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
441
+
442
+ [[package]]
443
+ name = "cgl"
444
+ version = "0.3.2"
445
+ source = "registry+https://github.com/rust-lang/crates.io-index"
446
+ checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff"
447
+ dependencies = [
448
+ "libc",
449
+ ]
450
+
451
+ [[package]]
452
+ name = "clap"
453
+ version = "4.6.6"
454
+ source = "registry+https://github.com/rust-lang/crates.io-index"
455
+ checksum = "473c7e07f409a8d772161724aa8db6a765a2532a70f9667eeb7b49d3d02fbdca"
456
+ dependencies = [
457
+ "clap_builder",
458
+ "clap_derive",
459
+ ]
460
+
461
+ [[package]]
462
+ name = "clap_builder"
463
+ version = "4.6.6"
464
+ source = "registry+https://github.com/rust-lang/crates.io-index"
465
+ checksum = "7b48fea5a88e9ae728a2dcbedbfc0e730f7d60da42e1cb049a83c9fb8b789889"
466
+ dependencies = [
467
+ "anstream",
468
+ "anstyle",
469
+ "clap_lex",
470
+ "strsim",
471
+ ]
472
+
473
+ [[package]]
474
+ name = "clap_derive"
475
+ version = "4.6.4"
476
+ source = "registry+https://github.com/rust-lang/crates.io-index"
477
+ checksum = "d012d2b9d65aca7f18f4d9878a045bc17899bba951561ba5ec3c2ba1eed9a061"
478
+ dependencies = [
479
+ "heck",
480
+ "proc-macro2",
481
+ "quote",
482
+ "syn 3.0.5",
483
+ ]
484
+
485
+ [[package]]
486
+ name = "clap_lex"
487
+ version = "1.1.0"
488
+ source = "registry+https://github.com/rust-lang/crates.io-index"
489
+ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
490
+
491
+ [[package]]
492
+ name = "colorchoice"
493
+ version = "1.0.5"
494
+ source = "registry+https://github.com/rust-lang/crates.io-index"
495
+ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
496
+
497
+ [[package]]
498
+ name = "combine"
499
+ version = "4.6.8"
500
+ source = "registry+https://github.com/rust-lang/crates.io-index"
501
+ checksum = "cfc320937d09e6de266b31b9afb480f197d7a861be86be7cb2ea7e5d1bfffc5e"
502
+ dependencies = [
503
+ "bytes",
504
+ "memchr",
505
+ ]
506
+
507
+ [[package]]
508
+ name = "common"
509
+ version = "0.1.0"
510
+ dependencies = [
511
+ "glam",
512
+ "inox2d",
513
+ "tracing",
514
+ "web-time 1.1.0",
515
+ "winit",
516
+ ]
517
+
518
+ [[package]]
519
+ name = "concurrent-queue"
520
+ version = "2.5.0"
521
+ source = "registry+https://github.com/rust-lang/crates.io-index"
522
+ checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
523
+ dependencies = [
524
+ "crossbeam-utils",
525
+ ]
526
+
527
+ [[package]]
528
+ name = "console_error_panic_hook"
529
+ version = "0.1.7"
530
+ source = "registry+https://github.com/rust-lang/crates.io-index"
531
+ checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc"
532
+ dependencies = [
533
+ "cfg-if",
534
+ "wasm-bindgen",
535
+ ]
536
+
537
+ [[package]]
538
+ name = "core-foundation"
539
+ version = "0.9.4"
540
+ source = "registry+https://github.com/rust-lang/crates.io-index"
541
+ checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
542
+ dependencies = [
543
+ "core-foundation-sys",
544
+ "libc",
545
+ ]
546
+
547
+ [[package]]
548
+ name = "core-foundation"
549
+ version = "0.10.1"
550
+ source = "registry+https://github.com/rust-lang/crates.io-index"
551
+ checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
552
+ dependencies = [
553
+ "core-foundation-sys",
554
+ "libc",
555
+ ]
556
+
557
+ [[package]]
558
+ name = "core-foundation-sys"
559
+ version = "0.8.7"
560
+ source = "registry+https://github.com/rust-lang/crates.io-index"
561
+ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
562
+
563
+ [[package]]
564
+ name = "core-graphics"
565
+ version = "0.23.2"
566
+ source = "registry+https://github.com/rust-lang/crates.io-index"
567
+ checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"
568
+ dependencies = [
569
+ "bitflags 1.3.2",
570
+ "core-foundation 0.9.4",
571
+ "core-graphics-types",
572
+ "foreign-types 0.5.0",
573
+ "libc",
574
+ ]
575
+
576
+ [[package]]
577
+ name = "core-graphics-types"
578
+ version = "0.1.3"
579
+ source = "registry+https://github.com/rust-lang/crates.io-index"
580
+ checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf"
581
+ dependencies = [
582
+ "bitflags 1.3.2",
583
+ "core-foundation 0.9.4",
584
+ "libc",
585
+ ]
586
+
587
+ [[package]]
588
+ name = "crc32fast"
589
+ version = "1.5.1"
590
+ source = "registry+https://github.com/rust-lang/crates.io-index"
591
+ checksum = "8498c871161e1742aaa9d52551b2d6ebdd4c3d45a3be423e3728f33b955be550"
592
+ dependencies = [
593
+ "cfg-if",
594
+ ]
595
+
596
+ [[package]]
597
+ name = "crossbeam-utils"
598
+ version = "0.8.22"
599
+ source = "registry+https://github.com/rust-lang/crates.io-index"
600
+ checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
601
+
602
+ [[package]]
603
+ name = "cursor-icon"
604
+ version = "1.2.0"
605
+ source = "registry+https://github.com/rust-lang/crates.io-index"
606
+ checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f"
607
+
608
+ [[package]]
609
+ name = "dispatch"
610
+ version = "0.2.0"
611
+ source = "registry+https://github.com/rust-lang/crates.io-index"
612
+ checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
613
+
614
+ [[package]]
615
+ name = "displaydoc"
616
+ version = "0.2.7"
617
+ source = "registry+https://github.com/rust-lang/crates.io-index"
618
+ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
619
+ dependencies = [
620
+ "proc-macro2",
621
+ "quote",
622
+ "syn 3.0.5",
623
+ ]
624
+
625
+ [[package]]
626
+ name = "dlib"
627
+ version = "0.5.3"
628
+ source = "registry+https://github.com/rust-lang/crates.io-index"
629
+ checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a"
630
+ dependencies = [
631
+ "libloading",
632
+ ]
633
+
634
+ [[package]]
635
+ name = "downcast-rs"
636
+ version = "1.2.1"
637
+ source = "registry+https://github.com/rust-lang/crates.io-index"
638
+ checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
639
+
640
+ [[package]]
641
+ name = "either"
642
+ version = "1.18.0"
643
+ source = "registry+https://github.com/rust-lang/crates.io-index"
644
+ checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
645
+
646
+ [[package]]
647
+ name = "encoding_rs"
648
+ version = "0.8.35"
649
+ source = "registry+https://github.com/rust-lang/crates.io-index"
650
+ checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
651
+ dependencies = [
652
+ "cfg-if",
653
+ ]
654
+
655
+ [[package]]
656
+ name = "equivalent"
657
+ version = "1.0.2"
658
+ source = "registry+https://github.com/rust-lang/crates.io-index"
659
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
660
+
661
+ [[package]]
662
+ name = "errno"
663
+ version = "0.3.14"
664
+ source = "registry+https://github.com/rust-lang/crates.io-index"
665
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
666
+ dependencies = [
667
+ "libc",
668
+ "windows-sys 0.61.2",
669
+ ]
670
+
671
+ [[package]]
672
+ name = "fastrand"
673
+ version = "2.5.0"
674
+ source = "registry+https://github.com/rust-lang/crates.io-index"
675
+ checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
676
+
677
+ [[package]]
678
+ name = "fdeflate"
679
+ version = "0.3.7"
680
+ source = "registry+https://github.com/rust-lang/crates.io-index"
681
+ checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
682
+ dependencies = [
683
+ "simd-adler32",
684
+ ]
685
+
686
+ [[package]]
687
+ name = "find-msvc-tools"
688
+ version = "0.1.12"
689
+ source = "registry+https://github.com/rust-lang/crates.io-index"
690
+ checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d"
691
+
692
+ [[package]]
693
+ name = "flate2"
694
+ version = "1.1.10"
695
+ source = "registry+https://github.com/rust-lang/crates.io-index"
696
+ checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
697
+ dependencies = [
698
+ "crc32fast",
699
+ "miniz_oxide 0.9.1",
700
+ "zlib-rs",
701
+ ]
702
+
703
+ [[package]]
704
+ name = "fnv"
705
+ version = "1.0.7"
706
+ source = "registry+https://github.com/rust-lang/crates.io-index"
707
+ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
708
+
709
+ [[package]]
710
+ name = "foreign-types"
711
+ version = "0.3.2"
712
+ source = "registry+https://github.com/rust-lang/crates.io-index"
713
+ checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
714
+ dependencies = [
715
+ "foreign-types-shared 0.1.1",
716
+ ]
717
+
718
+ [[package]]
719
+ name = "foreign-types"
720
+ version = "0.5.0"
721
+ source = "registry+https://github.com/rust-lang/crates.io-index"
722
+ checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
723
+ dependencies = [
724
+ "foreign-types-macros",
725
+ "foreign-types-shared 0.3.1",
726
+ ]
727
+
728
+ [[package]]
729
+ name = "foreign-types-macros"
730
+ version = "0.2.4"
731
+ source = "registry+https://github.com/rust-lang/crates.io-index"
732
+ checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225"
733
+ dependencies = [
734
+ "proc-macro2",
735
+ "quote",
736
+ "syn 3.0.5",
737
+ ]
738
+
739
+ [[package]]
740
+ name = "foreign-types-shared"
741
+ version = "0.1.1"
742
+ source = "registry+https://github.com/rust-lang/crates.io-index"
743
+ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
744
+
745
+ [[package]]
746
+ name = "foreign-types-shared"
747
+ version = "0.3.1"
748
+ source = "registry+https://github.com/rust-lang/crates.io-index"
749
+ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
750
+
751
+ [[package]]
752
+ name = "form_urlencoded"
753
+ version = "1.2.2"
754
+ source = "registry+https://github.com/rust-lang/crates.io-index"
755
+ checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
756
+ dependencies = [
757
+ "percent-encoding",
758
+ ]
759
+
760
+ [[package]]
761
+ name = "futures-channel"
762
+ version = "0.3.34"
763
+ source = "registry+https://github.com/rust-lang/crates.io-index"
764
+ checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
765
+ dependencies = [
766
+ "futures-core",
767
+ ]
768
+
769
+ [[package]]
770
+ name = "futures-core"
771
+ version = "0.3.34"
772
+ source = "registry+https://github.com/rust-lang/crates.io-index"
773
+ checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
774
+
775
+ [[package]]
776
+ name = "futures-sink"
777
+ version = "0.3.34"
778
+ source = "registry+https://github.com/rust-lang/crates.io-index"
779
+ checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
780
+
781
+ [[package]]
782
+ name = "futures-task"
783
+ version = "0.3.34"
784
+ source = "registry+https://github.com/rust-lang/crates.io-index"
785
+ checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
786
+
787
+ [[package]]
788
+ name = "futures-util"
789
+ version = "0.3.34"
790
+ source = "registry+https://github.com/rust-lang/crates.io-index"
791
+ checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
792
+ dependencies = [
793
+ "futures-core",
794
+ "futures-task",
795
+ "pin-project-lite",
796
+ "slab",
797
+ ]
798
+
799
+ [[package]]
800
+ name = "gethostname"
801
+ version = "1.1.0"
802
+ source = "registry+https://github.com/rust-lang/crates.io-index"
803
+ checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8"
804
+ dependencies = [
805
+ "rustix 1.1.4",
806
+ "windows-link",
807
+ ]
808
+
809
+ [[package]]
810
+ name = "getrandom"
811
+ version = "0.2.17"
812
+ source = "registry+https://github.com/rust-lang/crates.io-index"
813
+ checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
814
+ dependencies = [
815
+ "cfg-if",
816
+ "libc",
817
+ "wasi",
818
+ ]
819
+
820
+ [[package]]
821
+ name = "getrandom"
822
+ version = "0.3.4"
823
+ source = "registry+https://github.com/rust-lang/crates.io-index"
824
+ checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
825
+ dependencies = [
826
+ "cfg-if",
827
+ "libc",
828
+ "r-efi 5.3.0",
829
+ "wasip2",
830
+ ]
831
+
832
+ [[package]]
833
+ name = "getrandom"
834
+ version = "0.4.3"
835
+ source = "registry+https://github.com/rust-lang/crates.io-index"
836
+ checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
837
+ dependencies = [
838
+ "cfg-if",
839
+ "libc",
840
+ "r-efi 6.0.0",
841
+ ]
842
+
843
+ [[package]]
844
+ name = "gl_generator"
845
+ version = "0.14.0"
846
+ source = "registry+https://github.com/rust-lang/crates.io-index"
847
+ checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d"
848
+ dependencies = [
849
+ "khronos_api",
850
+ "log",
851
+ "xml-rs",
852
+ ]
853
+
854
+ [[package]]
855
+ name = "glam"
856
+ version = "0.29.3"
857
+ source = "registry+https://github.com/rust-lang/crates.io-index"
858
+ checksum = "8babf46d4c1c9d92deac9f7be466f76dfc4482b6452fc5024b5e8daf6ffeb3ee"
859
+ dependencies = [
860
+ "bytemuck",
861
+ ]
862
+
863
+ [[package]]
864
+ name = "glow"
865
+ version = "0.14.2"
866
+ source = "registry+https://github.com/rust-lang/crates.io-index"
867
+ checksum = "d51fa363f025f5c111e03f13eda21162faeacb6911fe8caa0c0349f9cf0c4483"
868
+ dependencies = [
869
+ "js-sys",
870
+ "slotmap",
871
+ "wasm-bindgen",
872
+ "web-sys",
873
+ ]
874
+
875
+ [[package]]
876
+ name = "glutin"
877
+ version = "0.31.3"
878
+ source = "registry+https://github.com/rust-lang/crates.io-index"
879
+ checksum = "18fcd4ae4e86d991ad1300b8f57166e5be0c95ef1f63f3f5b827f8a164548746"
880
+ dependencies = [
881
+ "bitflags 2.13.1",
882
+ "cfg_aliases",
883
+ "cgl",
884
+ "core-foundation 0.9.4",
885
+ "dispatch",
886
+ "glutin_egl_sys",
887
+ "glutin_glx_sys",
888
+ "glutin_wgl_sys",
889
+ "icrate",
890
+ "libloading",
891
+ "objc2",
892
+ "once_cell",
893
+ "raw-window-handle 0.5.2",
894
+ "wayland-sys",
895
+ "windows-sys 0.48.0",
896
+ "x11-dl",
897
+ ]
898
+
899
+ [[package]]
900
+ name = "glutin-winit"
901
+ version = "0.4.2"
902
+ source = "registry+https://github.com/rust-lang/crates.io-index"
903
+ checksum = "1ebcdfba24f73b8412c5181e56f092b5eff16671c514ce896b258a0a64bd7735"
904
+ dependencies = [
905
+ "cfg_aliases",
906
+ "glutin",
907
+ "raw-window-handle 0.5.2",
908
+ "winit",
909
+ ]
910
+
911
+ [[package]]
912
+ name = "glutin_egl_sys"
913
+ version = "0.6.0"
914
+ source = "registry+https://github.com/rust-lang/crates.io-index"
915
+ checksum = "77cc5623f5309ef433c3dd4ca1223195347fe62c413da8e2fdd0eb76db2d9bcd"
916
+ dependencies = [
917
+ "gl_generator",
918
+ "windows-sys 0.48.0",
919
+ ]
920
+
921
+ [[package]]
922
+ name = "glutin_glx_sys"
923
+ version = "0.5.0"
924
+ source = "registry+https://github.com/rust-lang/crates.io-index"
925
+ checksum = "a165fd686c10dcc2d45380b35796e577eacfd43d4660ee741ec8ebe2201b3b4f"
926
+ dependencies = [
927
+ "gl_generator",
928
+ "x11-dl",
929
+ ]
930
+
931
+ [[package]]
932
+ name = "glutin_wgl_sys"
933
+ version = "0.5.0"
934
+ source = "registry+https://github.com/rust-lang/crates.io-index"
935
+ checksum = "6c8098adac955faa2d31079b65dc48841251f69efd3ac25477903fc424362ead"
936
+ dependencies = [
937
+ "gl_generator",
938
+ ]
939
+
940
+ [[package]]
941
+ name = "h2"
942
+ version = "0.4.19"
943
+ source = "registry+https://github.com/rust-lang/crates.io-index"
944
+ checksum = "ef8e5e5a340588f4452631496976cf8636d4a7ecf600239fdc27615d2530bc16"
945
+ dependencies = [
946
+ "atomic-waker",
947
+ "bytes",
948
+ "fnv",
949
+ "futures-core",
950
+ "futures-sink",
951
+ "http",
952
+ "indexmap",
953
+ "slab",
954
+ "tokio",
955
+ "tokio-util",
956
+ "tracing",
957
+ ]
958
+
959
+ [[package]]
960
+ name = "hashbrown"
961
+ version = "0.17.1"
962
+ source = "registry+https://github.com/rust-lang/crates.io-index"
963
+ checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
964
+
965
+ [[package]]
966
+ name = "heck"
967
+ version = "0.5.0"
968
+ source = "registry+https://github.com/rust-lang/crates.io-index"
969
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
970
+
971
+ [[package]]
972
+ name = "hermit-abi"
973
+ version = "0.5.3"
974
+ source = "registry+https://github.com/rust-lang/crates.io-index"
975
+ checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284"
976
+
977
+ [[package]]
978
+ name = "http"
979
+ version = "1.5.0"
980
+ source = "registry+https://github.com/rust-lang/crates.io-index"
981
+ checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"
982
+ dependencies = [
983
+ "bytes",
984
+ "itoa",
985
+ ]
986
+
987
+ [[package]]
988
+ name = "http-body"
989
+ version = "1.1.0"
990
+ source = "registry+https://github.com/rust-lang/crates.io-index"
991
+ checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"
992
+ dependencies = [
993
+ "bytes",
994
+ "http",
995
+ ]
996
+
997
+ [[package]]
998
+ name = "http-body-util"
999
+ version = "0.1.5"
1000
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1001
+ checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c"
1002
+ dependencies = [
1003
+ "bytes",
1004
+ "futures-core",
1005
+ "http",
1006
+ "http-body",
1007
+ "pin-project-lite",
1008
+ ]
1009
+
1010
+ [[package]]
1011
+ name = "httparse"
1012
+ version = "1.10.1"
1013
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1014
+ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
1015
+
1016
+ [[package]]
1017
+ name = "hyper"
1018
+ version = "1.11.1"
1019
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1020
+ checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43"
1021
+ dependencies = [
1022
+ "atomic-waker",
1023
+ "bytes",
1024
+ "futures-channel",
1025
+ "futures-core",
1026
+ "h2",
1027
+ "http",
1028
+ "http-body",
1029
+ "httparse",
1030
+ "itoa",
1031
+ "pin-project-lite",
1032
+ "smallvec",
1033
+ "tokio",
1034
+ "want",
1035
+ ]
1036
+
1037
+ [[package]]
1038
+ name = "hyper-rustls"
1039
+ version = "0.27.9"
1040
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1041
+ checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
1042
+ dependencies = [
1043
+ "http",
1044
+ "hyper",
1045
+ "hyper-util",
1046
+ "rustls",
1047
+ "tokio",
1048
+ "tokio-rustls",
1049
+ "tower-service",
1050
+ ]
1051
+
1052
+ [[package]]
1053
+ name = "hyper-tls"
1054
+ version = "0.6.0"
1055
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1056
+ checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
1057
+ dependencies = [
1058
+ "bytes",
1059
+ "http-body-util",
1060
+ "hyper",
1061
+ "hyper-util",
1062
+ "native-tls",
1063
+ "tokio",
1064
+ "tokio-native-tls",
1065
+ "tower-service",
1066
+ ]
1067
+
1068
+ [[package]]
1069
+ name = "hyper-util"
1070
+ version = "0.1.20"
1071
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1072
+ checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
1073
+ dependencies = [
1074
+ "base64",
1075
+ "bytes",
1076
+ "futures-channel",
1077
+ "futures-util",
1078
+ "http",
1079
+ "http-body",
1080
+ "hyper",
1081
+ "ipnet",
1082
+ "libc",
1083
+ "percent-encoding",
1084
+ "pin-project-lite",
1085
+ "socket2",
1086
+ "system-configuration",
1087
+ "tokio",
1088
+ "tower-service",
1089
+ "tracing",
1090
+ "windows-registry",
1091
+ ]
1092
+
1093
+ [[package]]
1094
+ name = "icrate"
1095
+ version = "0.0.4"
1096
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1097
+ checksum = "99d3aaff8a54577104bafdf686ff18565c3b6903ca5782a2026ef06e2c7aa319"
1098
+ dependencies = [
1099
+ "block2",
1100
+ "dispatch",
1101
+ "objc2",
1102
+ ]
1103
+
1104
+ [[package]]
1105
+ name = "icu_collections"
1106
+ version = "2.3.0"
1107
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1108
+ checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513"
1109
+ dependencies = [
1110
+ "displaydoc",
1111
+ "potential_utf",
1112
+ "utf8_iter",
1113
+ "yoke",
1114
+ "zerofrom",
1115
+ "zerovec",
1116
+ ]
1117
+
1118
+ [[package]]
1119
+ name = "icu_locale_core"
1120
+ version = "2.3.0"
1121
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1122
+ checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb"
1123
+ dependencies = [
1124
+ "displaydoc",
1125
+ "litemap",
1126
+ "tinystr",
1127
+ "writeable",
1128
+ "zerovec",
1129
+ ]
1130
+
1131
+ [[package]]
1132
+ name = "icu_normalizer"
1133
+ version = "2.3.0"
1134
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1135
+ checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f"
1136
+ dependencies = [
1137
+ "icu_collections",
1138
+ "icu_normalizer_data",
1139
+ "icu_properties",
1140
+ "icu_provider",
1141
+ "smallvec",
1142
+ "zerovec",
1143
+ ]
1144
+
1145
+ [[package]]
1146
+ name = "icu_normalizer_data"
1147
+ version = "2.3.0"
1148
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1149
+ checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0"
1150
+
1151
+ [[package]]
1152
+ name = "icu_properties"
1153
+ version = "2.3.0"
1154
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1155
+ checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148"
1156
+ dependencies = [
1157
+ "displaydoc",
1158
+ "icu_collections",
1159
+ "icu_locale_core",
1160
+ "icu_properties_data",
1161
+ "icu_provider",
1162
+ "zerotrie",
1163
+ "zerovec",
1164
+ ]
1165
+
1166
+ [[package]]
1167
+ name = "icu_properties_data"
1168
+ version = "2.3.0"
1169
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1170
+ checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa"
1171
+
1172
+ [[package]]
1173
+ name = "icu_provider"
1174
+ version = "2.3.1"
1175
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1176
+ checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73"
1177
+ dependencies = [
1178
+ "displaydoc",
1179
+ "icu_locale_core",
1180
+ "writeable",
1181
+ "yoke",
1182
+ "zerofrom",
1183
+ "zerotrie",
1184
+ "zerovec",
1185
+ ]
1186
+
1187
+ [[package]]
1188
+ name = "idna"
1189
+ version = "1.1.0"
1190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1191
+ checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
1192
+ dependencies = [
1193
+ "idna_adapter",
1194
+ "smallvec",
1195
+ "utf8_iter",
1196
+ ]
1197
+
1198
+ [[package]]
1199
+ name = "idna_adapter"
1200
+ version = "1.2.2"
1201
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1202
+ checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
1203
+ dependencies = [
1204
+ "icu_normalizer",
1205
+ "icu_properties",
1206
+ ]
1207
+
1208
+ [[package]]
1209
+ name = "image"
1210
+ version = "0.25.10"
1211
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1212
+ checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104"
1213
+ dependencies = [
1214
+ "bytemuck",
1215
+ "byteorder-lite",
1216
+ "moxcms",
1217
+ "num-traits",
1218
+ "png",
1219
+ "zune-core",
1220
+ "zune-jpeg",
1221
+ ]
1222
+
1223
+ [[package]]
1224
+ name = "indexmap"
1225
+ version = "2.14.2"
1226
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1227
+ checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
1228
+ dependencies = [
1229
+ "equivalent",
1230
+ "hashbrown",
1231
+ ]
1232
+
1233
+ [[package]]
1234
+ name = "indextree"
1235
+ version = "4.9.1"
1236
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1237
+ checksum = "355c27a54366e073e1266ef91b1dd7910dc787294d7e8f92458e2e103bc95e33"
1238
+ dependencies = [
1239
+ "indextree-macros",
1240
+ ]
1241
+
1242
+ [[package]]
1243
+ name = "indextree-macros"
1244
+ version = "0.1.3"
1245
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1246
+ checksum = "f85dac6c239acc85fd61934c572292d93adfd2de459d9c032aa22b553506e915"
1247
+ dependencies = [
1248
+ "either",
1249
+ "itertools",
1250
+ "proc-macro2",
1251
+ "quote",
1252
+ "strum",
1253
+ "syn 2.0.119",
1254
+ "thiserror 2.0.20",
1255
+ ]
1256
+
1257
+ [[package]]
1258
+ name = "inox2d"
1259
+ version = "0.3.0"
1260
+ dependencies = [
1261
+ "clap",
1262
+ "glam",
1263
+ "image",
1264
+ "indextree",
1265
+ "json",
1266
+ "owo-colors",
1267
+ "simple-tga-reader",
1268
+ "thiserror 1.0.69",
1269
+ "tracing",
1270
+ ]
1271
+
1272
+ [[package]]
1273
+ name = "inox2d-opengl"
1274
+ version = "0.3.0"
1275
+ dependencies = [
1276
+ "glam",
1277
+ "glow",
1278
+ "inox2d",
1279
+ "thiserror 1.0.69",
1280
+ "tracing",
1281
+ ]
1282
+
1283
+ [[package]]
1284
+ name = "ipnet"
1285
+ version = "2.12.1"
1286
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1287
+ checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78"
1288
+
1289
+ [[package]]
1290
+ name = "is_terminal_polyfill"
1291
+ version = "1.70.2"
1292
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1293
+ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
1294
+
1295
+ [[package]]
1296
+ name = "itertools"
1297
+ version = "0.14.0"
1298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1299
+ checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
1300
+ dependencies = [
1301
+ "either",
1302
+ ]
1303
+
1304
+ [[package]]
1305
+ name = "itoa"
1306
+ version = "1.0.18"
1307
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1308
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
1309
+
1310
+ [[package]]
1311
+ name = "jni"
1312
+ version = "0.21.1"
1313
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1314
+ checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"
1315
+ dependencies = [
1316
+ "cesu8",
1317
+ "cfg-if",
1318
+ "combine",
1319
+ "jni-sys 0.3.1",
1320
+ "log",
1321
+ "thiserror 1.0.69",
1322
+ "walkdir",
1323
+ "windows-sys 0.45.0",
1324
+ ]
1325
+
1326
+ [[package]]
1327
+ name = "jni-sys"
1328
+ version = "0.3.1"
1329
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1330
+ checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"
1331
+ dependencies = [
1332
+ "jni-sys 0.4.1",
1333
+ ]
1334
+
1335
+ [[package]]
1336
+ name = "jni-sys"
1337
+ version = "0.4.1"
1338
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1339
+ checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"
1340
+ dependencies = [
1341
+ "jni-sys-macros",
1342
+ ]
1343
+
1344
+ [[package]]
1345
+ name = "jni-sys-macros"
1346
+ version = "0.4.1"
1347
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1348
+ checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"
1349
+ dependencies = [
1350
+ "quote",
1351
+ "syn 2.0.119",
1352
+ ]
1353
+
1354
+ [[package]]
1355
+ name = "jobserver"
1356
+ version = "0.1.35"
1357
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1358
+ checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3"
1359
+ dependencies = [
1360
+ "getrandom 0.4.3",
1361
+ "libc",
1362
+ ]
1363
+
1364
+ [[package]]
1365
+ name = "js-sys"
1366
+ version = "0.3.105"
1367
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1368
+ checksum = "ce57d20d1ea864ce2ac172ab472d409214f4fd359f0b2a2775abdf522e2af99e"
1369
+ dependencies = [
1370
+ "cfg-if",
1371
+ "futures-util",
1372
+ "wasm-bindgen",
1373
+ ]
1374
+
1375
+ [[package]]
1376
+ name = "json"
1377
+ version = "0.12.4"
1378
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1379
+ checksum = "078e285eafdfb6c4b434e0d31e8cfcb5115b651496faca5749b88fafd4f23bfd"
1380
+
1381
+ [[package]]
1382
+ name = "khronos_api"
1383
+ version = "3.1.0"
1384
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1385
+ checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"
1386
+
1387
+ [[package]]
1388
+ name = "lazy_static"
1389
+ version = "1.5.0"
1390
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1391
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
1392
+
1393
+ [[package]]
1394
+ name = "libc"
1395
+ version = "0.2.189"
1396
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1397
+ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
1398
+
1399
+ [[package]]
1400
+ name = "libloading"
1401
+ version = "0.8.9"
1402
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1403
+ checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
1404
+ dependencies = [
1405
+ "cfg-if",
1406
+ "windows-link",
1407
+ ]
1408
+
1409
+ [[package]]
1410
+ name = "libredox"
1411
+ version = "0.1.23"
1412
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1413
+ checksum = "8d8f1ea3f21fd3405dcaf6c9b5c1630af9afc422d9073ea39c5f6d6c772e08ed"
1414
+ dependencies = [
1415
+ "bitflags 2.13.1",
1416
+ "libc",
1417
+ "plain",
1418
+ "redox_syscall 0.9.3",
1419
+ ]
1420
+
1421
+ [[package]]
1422
+ name = "linux-raw-sys"
1423
+ version = "0.4.15"
1424
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1425
+ checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
1426
+
1427
+ [[package]]
1428
+ name = "linux-raw-sys"
1429
+ version = "0.12.1"
1430
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1431
+ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
1432
+
1433
+ [[package]]
1434
+ name = "litemap"
1435
+ version = "0.8.3"
1436
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1437
+ checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
1438
+
1439
+ [[package]]
1440
+ name = "log"
1441
+ version = "0.4.34"
1442
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1443
+ checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
1444
+
1445
+ [[package]]
1446
+ name = "memchr"
1447
+ version = "2.8.3"
1448
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1449
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
1450
+
1451
+ [[package]]
1452
+ name = "memmap2"
1453
+ version = "0.9.11"
1454
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1455
+ checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0"
1456
+ dependencies = [
1457
+ "libc",
1458
+ ]
1459
+
1460
+ [[package]]
1461
+ name = "mime"
1462
+ version = "0.3.17"
1463
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1464
+ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
1465
+
1466
+ [[package]]
1467
+ name = "miniz_oxide"
1468
+ version = "0.8.9"
1469
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1470
+ checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
1471
+ dependencies = [
1472
+ "adler2",
1473
+ "simd-adler32",
1474
+ ]
1475
+
1476
+ [[package]]
1477
+ name = "miniz_oxide"
1478
+ version = "0.9.1"
1479
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1480
+ checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
1481
+ dependencies = [
1482
+ "adler2",
1483
+ "simd-adler32",
1484
+ ]
1485
+
1486
+ [[package]]
1487
+ name = "mio"
1488
+ version = "1.2.3"
1489
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1490
+ checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8"
1491
+ dependencies = [
1492
+ "libc",
1493
+ "wasi",
1494
+ "windows-sys 0.61.2",
1495
+ ]
1496
+
1497
+ [[package]]
1498
+ name = "moxcms"
1499
+ version = "0.8.1"
1500
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1501
+ checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b"
1502
+ dependencies = [
1503
+ "num-traits",
1504
+ "pxfm",
1505
+ ]
1506
+
1507
+ [[package]]
1508
+ name = "native-tls"
1509
+ version = "0.2.18"
1510
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1511
+ checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2"
1512
+ dependencies = [
1513
+ "libc",
1514
+ "log",
1515
+ "openssl",
1516
+ "openssl-probe",
1517
+ "openssl-sys",
1518
+ "schannel",
1519
+ "security-framework",
1520
+ "security-framework-sys",
1521
+ "tempfile",
1522
+ ]
1523
+
1524
+ [[package]]
1525
+ name = "ndk"
1526
+ version = "0.8.0"
1527
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1528
+ checksum = "2076a31b7010b17a38c01907c45b945e8f11495ee4dd588309718901b1f7a5b7"
1529
+ dependencies = [
1530
+ "bitflags 2.13.1",
1531
+ "jni-sys 0.3.1",
1532
+ "log",
1533
+ "ndk-sys",
1534
+ "num_enum",
1535
+ "raw-window-handle 0.5.2",
1536
+ "raw-window-handle 0.6.2",
1537
+ "thiserror 1.0.69",
1538
+ ]
1539
+
1540
+ [[package]]
1541
+ name = "ndk-context"
1542
+ version = "0.1.1"
1543
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1544
+ checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
1545
+
1546
+ [[package]]
1547
+ name = "ndk-sys"
1548
+ version = "0.5.0+25.2.9519653"
1549
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1550
+ checksum = "8c196769dd60fd4f363e11d948139556a344e79d451aeb2fa2fd040738ef7691"
1551
+ dependencies = [
1552
+ "jni-sys 0.3.1",
1553
+ ]
1554
+
1555
+ [[package]]
1556
+ name = "nu-ansi-term"
1557
+ version = "0.50.3"
1558
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1559
+ checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
1560
+ dependencies = [
1561
+ "windows-sys 0.61.2",
1562
+ ]
1563
+
1564
+ [[package]]
1565
+ name = "num-traits"
1566
+ version = "0.2.19"
1567
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1568
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
1569
+ dependencies = [
1570
+ "autocfg",
1571
+ ]
1572
+
1573
+ [[package]]
1574
+ name = "num_enum"
1575
+ version = "0.7.6"
1576
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1577
+ checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"
1578
+ dependencies = [
1579
+ "num_enum_derive",
1580
+ "rustversion",
1581
+ ]
1582
+
1583
+ [[package]]
1584
+ name = "num_enum_derive"
1585
+ version = "0.7.6"
1586
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1587
+ checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"
1588
+ dependencies = [
1589
+ "proc-macro-crate",
1590
+ "proc-macro2",
1591
+ "quote",
1592
+ "syn 2.0.119",
1593
+ ]
1594
+
1595
+ [[package]]
1596
+ name = "objc-sys"
1597
+ version = "0.3.5"
1598
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1599
+ checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"
1600
+
1601
+ [[package]]
1602
+ name = "objc2"
1603
+ version = "0.4.1"
1604
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1605
+ checksum = "559c5a40fdd30eb5e344fbceacf7595a81e242529fb4e21cf5f43fb4f11ff98d"
1606
+ dependencies = [
1607
+ "objc-sys",
1608
+ "objc2-encode",
1609
+ ]
1610
+
1611
+ [[package]]
1612
+ name = "objc2-encode"
1613
+ version = "3.0.0"
1614
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1615
+ checksum = "d079845b37af429bfe5dfa76e6d087d788031045b25cfc6fd898486fd9847666"
1616
+
1617
+ [[package]]
1618
+ name = "once_cell"
1619
+ version = "1.21.4"
1620
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1621
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
1622
+
1623
+ [[package]]
1624
+ name = "once_cell_polyfill"
1625
+ version = "1.70.2"
1626
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1627
+ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
1628
+
1629
+ [[package]]
1630
+ name = "openssl"
1631
+ version = "0.10.81"
1632
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1633
+ checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"
1634
+ dependencies = [
1635
+ "bitflags 2.13.1",
1636
+ "cfg-if",
1637
+ "foreign-types 0.3.2",
1638
+ "libc",
1639
+ "openssl-macros",
1640
+ "openssl-sys",
1641
+ ]
1642
+
1643
+ [[package]]
1644
+ name = "openssl-macros"
1645
+ version = "0.1.1"
1646
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1647
+ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
1648
+ dependencies = [
1649
+ "proc-macro2",
1650
+ "quote",
1651
+ "syn 2.0.119",
1652
+ ]
1653
+
1654
+ [[package]]
1655
+ name = "openssl-probe"
1656
+ version = "0.2.1"
1657
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1658
+ checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
1659
+
1660
+ [[package]]
1661
+ name = "openssl-sys"
1662
+ version = "0.9.117"
1663
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1664
+ checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"
1665
+ dependencies = [
1666
+ "cc",
1667
+ "libc",
1668
+ "pkg-config",
1669
+ "vcpkg",
1670
+ ]
1671
+
1672
+ [[package]]
1673
+ name = "orbclient"
1674
+ version = "0.3.55"
1675
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1676
+ checksum = "5df339f526ea9a60e371768d50efc2f2508c7203290731565d1f7a6f71d21747"
1677
+ dependencies = [
1678
+ "libc",
1679
+ "libredox",
1680
+ ]
1681
+
1682
+ [[package]]
1683
+ name = "owned_ttf_parser"
1684
+ version = "0.25.1"
1685
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1686
+ checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b"
1687
+ dependencies = [
1688
+ "ttf-parser",
1689
+ ]
1690
+
1691
+ [[package]]
1692
+ name = "owo-colors"
1693
+ version = "4.4.0"
1694
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1695
+ checksum = "13c45bb4a6ae1280ec0803b1ef9d3455eb50f01efbbe1447ab020f1d54fba9d8"
1696
+
1697
+ [[package]]
1698
+ name = "percent-encoding"
1699
+ version = "2.3.2"
1700
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1701
+ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
1702
+
1703
+ [[package]]
1704
+ name = "pin-project-lite"
1705
+ version = "0.2.17"
1706
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1707
+ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
1708
+
1709
+ [[package]]
1710
+ name = "pkg-config"
1711
+ version = "0.3.34"
1712
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1713
+ checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
1714
+
1715
+ [[package]]
1716
+ name = "plain"
1717
+ version = "0.2.3"
1718
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1719
+ checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"
1720
+
1721
+ [[package]]
1722
+ name = "png"
1723
+ version = "0.18.1"
1724
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1725
+ checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
1726
+ dependencies = [
1727
+ "bitflags 2.13.1",
1728
+ "crc32fast",
1729
+ "fdeflate",
1730
+ "flate2",
1731
+ "miniz_oxide 0.8.9",
1732
+ ]
1733
+
1734
+ [[package]]
1735
+ name = "polling"
1736
+ version = "3.11.0"
1737
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1738
+ checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
1739
+ dependencies = [
1740
+ "cfg-if",
1741
+ "concurrent-queue",
1742
+ "hermit-abi",
1743
+ "pin-project-lite",
1744
+ "rustix 1.1.4",
1745
+ "windows-sys 0.61.2",
1746
+ ]
1747
+
1748
+ [[package]]
1749
+ name = "potential_utf"
1750
+ version = "0.1.6"
1751
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1752
+ checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
1753
+ dependencies = [
1754
+ "zerovec",
1755
+ ]
1756
+
1757
+ [[package]]
1758
+ name = "proc-macro-crate"
1759
+ version = "3.5.0"
1760
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1761
+ checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"
1762
+ dependencies = [
1763
+ "toml_edit",
1764
+ ]
1765
+
1766
+ [[package]]
1767
+ name = "proc-macro2"
1768
+ version = "1.0.107"
1769
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1770
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
1771
+ dependencies = [
1772
+ "unicode-ident",
1773
+ ]
1774
+
1775
+ [[package]]
1776
+ name = "pxfm"
1777
+ version = "0.1.30"
1778
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1779
+ checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea"
1780
+
1781
+ [[package]]
1782
+ name = "quick-xml"
1783
+ version = "0.41.0"
1784
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1785
+ checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"
1786
+ dependencies = [
1787
+ "memchr",
1788
+ ]
1789
+
1790
+ [[package]]
1791
+ name = "quote"
1792
+ version = "1.0.47"
1793
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1794
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
1795
+ dependencies = [
1796
+ "proc-macro2",
1797
+ ]
1798
+
1799
+ [[package]]
1800
+ name = "r-efi"
1801
+ version = "5.3.0"
1802
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1803
+ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
1804
+
1805
+ [[package]]
1806
+ name = "r-efi"
1807
+ version = "6.0.0"
1808
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1809
+ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
1810
+
1811
+ [[package]]
1812
+ name = "raw-window-handle"
1813
+ version = "0.5.2"
1814
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1815
+ checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9"
1816
+
1817
+ [[package]]
1818
+ name = "raw-window-handle"
1819
+ version = "0.6.2"
1820
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1821
+ checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
1822
+
1823
+ [[package]]
1824
+ name = "redox_syscall"
1825
+ version = "0.3.5"
1826
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1827
+ checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
1828
+ dependencies = [
1829
+ "bitflags 1.3.2",
1830
+ ]
1831
+
1832
+ [[package]]
1833
+ name = "redox_syscall"
1834
+ version = "0.9.3"
1835
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1836
+ checksum = "d678d17679829e73d371e96880897e98fee2ded7acc0a50bdf8af2affa4b2fe5"
1837
+ dependencies = [
1838
+ "bitflags 2.13.1",
1839
+ ]
1840
+
1841
+ [[package]]
1842
+ name = "render-opengl"
1843
+ version = "0.1.0"
1844
+ dependencies = [
1845
+ "clap",
1846
+ "common",
1847
+ "glam",
1848
+ "glow",
1849
+ "glutin",
1850
+ "glutin-winit",
1851
+ "inox2d",
1852
+ "inox2d-opengl",
1853
+ "raw-window-handle 0.5.2",
1854
+ "tracing",
1855
+ "tracing-subscriber",
1856
+ "winit",
1857
+ ]
1858
+
1859
+ [[package]]
1860
+ name = "render-webgl"
1861
+ version = "0.1.0"
1862
+ dependencies = [
1863
+ "common",
1864
+ "console_error_panic_hook",
1865
+ "glam",
1866
+ "glow",
1867
+ "inox2d",
1868
+ "inox2d-opengl",
1869
+ "js-sys",
1870
+ "reqwest",
1871
+ "tracing",
1872
+ "tracing-wasm",
1873
+ "wasm-bindgen",
1874
+ "wasm-bindgen-futures",
1875
+ "web-sys",
1876
+ "winit",
1877
+ ]
1878
+
1879
+ [[package]]
1880
+ name = "reqwest"
1881
+ version = "0.12.28"
1882
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1883
+ checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"
1884
+ dependencies = [
1885
+ "base64",
1886
+ "bytes",
1887
+ "encoding_rs",
1888
+ "futures-core",
1889
+ "h2",
1890
+ "http",
1891
+ "http-body",
1892
+ "http-body-util",
1893
+ "hyper",
1894
+ "hyper-rustls",
1895
+ "hyper-tls",
1896
+ "hyper-util",
1897
+ "js-sys",
1898
+ "log",
1899
+ "mime",
1900
+ "native-tls",
1901
+ "percent-encoding",
1902
+ "pin-project-lite",
1903
+ "rustls-pki-types",
1904
+ "serde",
1905
+ "serde_json",
1906
+ "serde_urlencoded",
1907
+ "sync_wrapper",
1908
+ "tokio",
1909
+ "tokio-native-tls",
1910
+ "tower",
1911
+ "tower-http",
1912
+ "tower-service",
1913
+ "url",
1914
+ "wasm-bindgen",
1915
+ "wasm-bindgen-futures",
1916
+ "web-sys",
1917
+ ]
1918
+
1919
+ [[package]]
1920
+ name = "ring"
1921
+ version = "0.17.14"
1922
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1923
+ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
1924
+ dependencies = [
1925
+ "cc",
1926
+ "cfg-if",
1927
+ "getrandom 0.2.17",
1928
+ "libc",
1929
+ "untrusted",
1930
+ "windows-sys 0.52.0",
1931
+ ]
1932
+
1933
+ [[package]]
1934
+ name = "rustix"
1935
+ version = "0.38.44"
1936
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1937
+ checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
1938
+ dependencies = [
1939
+ "bitflags 2.13.1",
1940
+ "errno",
1941
+ "libc",
1942
+ "linux-raw-sys 0.4.15",
1943
+ "windows-sys 0.59.0",
1944
+ ]
1945
+
1946
+ [[package]]
1947
+ name = "rustix"
1948
+ version = "1.1.4"
1949
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1950
+ checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
1951
+ dependencies = [
1952
+ "bitflags 2.13.1",
1953
+ "errno",
1954
+ "libc",
1955
+ "linux-raw-sys 0.12.1",
1956
+ "windows-sys 0.61.2",
1957
+ ]
1958
+
1959
+ [[package]]
1960
+ name = "rustls"
1961
+ version = "0.23.43"
1962
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1963
+ checksum = "0283386ce02abc0151e1761d08802dfe86c173b0b494af5cbc086574e453da06"
1964
+ dependencies = [
1965
+ "once_cell",
1966
+ "rustls-pki-types",
1967
+ "rustls-webpki",
1968
+ "subtle",
1969
+ "zeroize",
1970
+ ]
1971
+
1972
+ [[package]]
1973
+ name = "rustls-pki-types"
1974
+ version = "1.15.1"
1975
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1976
+ checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
1977
+ dependencies = [
1978
+ "zeroize",
1979
+ ]
1980
+
1981
+ [[package]]
1982
+ name = "rustls-webpki"
1983
+ version = "0.103.15"
1984
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1985
+ checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
1986
+ dependencies = [
1987
+ "ring",
1988
+ "rustls-pki-types",
1989
+ "untrusted",
1990
+ ]
1991
+
1992
+ [[package]]
1993
+ name = "rustversion"
1994
+ version = "1.0.23"
1995
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1996
+ checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
1997
+
1998
+ [[package]]
1999
+ name = "ryu"
2000
+ version = "1.0.23"
2001
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2002
+ checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
2003
+
2004
+ [[package]]
2005
+ name = "same-file"
2006
+ version = "1.0.6"
2007
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2008
+ checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
2009
+ dependencies = [
2010
+ "winapi-util",
2011
+ ]
2012
+
2013
+ [[package]]
2014
+ name = "schannel"
2015
+ version = "0.1.29"
2016
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2017
+ checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
2018
+ dependencies = [
2019
+ "windows-sys 0.61.2",
2020
+ ]
2021
+
2022
+ [[package]]
2023
+ name = "scoped-tls"
2024
+ version = "1.0.1"
2025
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2026
+ checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"
2027
+
2028
+ [[package]]
2029
+ name = "sctk-adwaita"
2030
+ version = "0.8.3"
2031
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2032
+ checksum = "70b31447ca297092c5a9916fc3b955203157b37c19ca8edde4f52e9843e602c7"
2033
+ dependencies = [
2034
+ "ab_glyph",
2035
+ "log",
2036
+ "memmap2",
2037
+ "smithay-client-toolkit",
2038
+ "tiny-skia",
2039
+ ]
2040
+
2041
+ [[package]]
2042
+ name = "security-framework"
2043
+ version = "3.7.0"
2044
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2045
+ checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
2046
+ dependencies = [
2047
+ "bitflags 2.13.1",
2048
+ "core-foundation 0.10.1",
2049
+ "core-foundation-sys",
2050
+ "libc",
2051
+ "security-framework-sys",
2052
+ ]
2053
+
2054
+ [[package]]
2055
+ name = "security-framework-sys"
2056
+ version = "2.17.0"
2057
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2058
+ checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
2059
+ dependencies = [
2060
+ "core-foundation-sys",
2061
+ "libc",
2062
+ ]
2063
+
2064
+ [[package]]
2065
+ name = "serde"
2066
+ version = "1.0.229"
2067
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2068
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
2069
+ dependencies = [
2070
+ "serde_core",
2071
+ ]
2072
+
2073
+ [[package]]
2074
+ name = "serde_core"
2075
+ version = "1.0.229"
2076
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2077
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
2078
+ dependencies = [
2079
+ "serde_derive",
2080
+ ]
2081
+
2082
+ [[package]]
2083
+ name = "serde_derive"
2084
+ version = "1.0.229"
2085
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2086
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
2087
+ dependencies = [
2088
+ "proc-macro2",
2089
+ "quote",
2090
+ "syn 3.0.5",
2091
+ ]
2092
+
2093
+ [[package]]
2094
+ name = "serde_json"
2095
+ version = "1.0.151"
2096
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2097
+ checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
2098
+ dependencies = [
2099
+ "itoa",
2100
+ "memchr",
2101
+ "serde",
2102
+ "serde_core",
2103
+ "zmij",
2104
+ ]
2105
+
2106
+ [[package]]
2107
+ name = "serde_urlencoded"
2108
+ version = "0.7.1"
2109
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2110
+ checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
2111
+ dependencies = [
2112
+ "form_urlencoded",
2113
+ "itoa",
2114
+ "ryu",
2115
+ "serde",
2116
+ ]
2117
+
2118
+ [[package]]
2119
+ name = "sharded-slab"
2120
+ version = "0.1.7"
2121
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2122
+ checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
2123
+ dependencies = [
2124
+ "lazy_static",
2125
+ ]
2126
+
2127
+ [[package]]
2128
+ name = "shlex"
2129
+ version = "2.0.1"
2130
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2131
+ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
2132
+
2133
+ [[package]]
2134
+ name = "simd-adler32"
2135
+ version = "0.3.10"
2136
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2137
+ checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
2138
+
2139
+ [[package]]
2140
+ name = "simple-tga-reader"
2141
+ version = "0.1.0"
2142
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2143
+ checksum = "bad547583b5ef3f75a69312acb93a12c5df278de0540b76196247a313de48d89"
2144
+
2145
+ [[package]]
2146
+ name = "slab"
2147
+ version = "0.4.12"
2148
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2149
+ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
2150
+
2151
+ [[package]]
2152
+ name = "slotmap"
2153
+ version = "1.1.1"
2154
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2155
+ checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038"
2156
+ dependencies = [
2157
+ "version_check",
2158
+ ]
2159
+
2160
+ [[package]]
2161
+ name = "smallvec"
2162
+ version = "1.16.0"
2163
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2164
+ checksum = "b9be42f50aa861c555654aa3a37f52f4b1074bacf4e48fe0ef7fa584e80f1f0f"
2165
+
2166
+ [[package]]
2167
+ name = "smithay-client-toolkit"
2168
+ version = "0.18.1"
2169
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2170
+ checksum = "922fd3eeab3bd820d76537ce8f582b1cf951eceb5475c28500c7457d9d17f53a"
2171
+ dependencies = [
2172
+ "bitflags 2.13.1",
2173
+ "calloop",
2174
+ "calloop-wayland-source",
2175
+ "cursor-icon",
2176
+ "libc",
2177
+ "log",
2178
+ "memmap2",
2179
+ "rustix 0.38.44",
2180
+ "thiserror 1.0.69",
2181
+ "wayland-backend",
2182
+ "wayland-client",
2183
+ "wayland-csd-frame",
2184
+ "wayland-cursor",
2185
+ "wayland-protocols",
2186
+ "wayland-protocols-wlr",
2187
+ "wayland-scanner",
2188
+ "xkeysym",
2189
+ ]
2190
+
2191
+ [[package]]
2192
+ name = "smol_str"
2193
+ version = "0.2.2"
2194
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2195
+ checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead"
2196
+ dependencies = [
2197
+ "serde",
2198
+ ]
2199
+
2200
+ [[package]]
2201
+ name = "socket2"
2202
+ version = "0.6.5"
2203
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2204
+ checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
2205
+ dependencies = [
2206
+ "libc",
2207
+ "windows-sys 0.61.2",
2208
+ ]
2209
+
2210
+ [[package]]
2211
+ name = "stable_deref_trait"
2212
+ version = "1.2.1"
2213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2214
+ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
2215
+
2216
+ [[package]]
2217
+ name = "strict-num"
2218
+ version = "0.1.1"
2219
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2220
+ checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731"
2221
+
2222
+ [[package]]
2223
+ name = "strsim"
2224
+ version = "0.11.1"
2225
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2226
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
2227
+
2228
+ [[package]]
2229
+ name = "strum"
2230
+ version = "0.27.2"
2231
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2232
+ checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf"
2233
+ dependencies = [
2234
+ "strum_macros",
2235
+ ]
2236
+
2237
+ [[package]]
2238
+ name = "strum_macros"
2239
+ version = "0.27.2"
2240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2241
+ checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7"
2242
+ dependencies = [
2243
+ "heck",
2244
+ "proc-macro2",
2245
+ "quote",
2246
+ "syn 2.0.119",
2247
+ ]
2248
+
2249
+ [[package]]
2250
+ name = "subtle"
2251
+ version = "2.6.1"
2252
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2253
+ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
2254
+
2255
+ [[package]]
2256
+ name = "syn"
2257
+ version = "2.0.119"
2258
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2259
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
2260
+ dependencies = [
2261
+ "proc-macro2",
2262
+ "quote",
2263
+ "unicode-ident",
2264
+ ]
2265
+
2266
+ [[package]]
2267
+ name = "syn"
2268
+ version = "3.0.5"
2269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2270
+ checksum = "12df2e0110f65b775f769bb17ef989067a1d931b2eb822bd4346631eeada89f9"
2271
+ dependencies = [
2272
+ "proc-macro2",
2273
+ "quote",
2274
+ "unicode-ident",
2275
+ ]
2276
+
2277
+ [[package]]
2278
+ name = "sync_wrapper"
2279
+ version = "1.0.2"
2280
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2281
+ checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
2282
+ dependencies = [
2283
+ "futures-core",
2284
+ ]
2285
+
2286
+ [[package]]
2287
+ name = "synstructure"
2288
+ version = "0.13.2"
2289
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2290
+ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
2291
+ dependencies = [
2292
+ "proc-macro2",
2293
+ "quote",
2294
+ "syn 2.0.119",
2295
+ ]
2296
+
2297
+ [[package]]
2298
+ name = "system-configuration"
2299
+ version = "0.7.0"
2300
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2301
+ checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"
2302
+ dependencies = [
2303
+ "bitflags 2.13.1",
2304
+ "core-foundation 0.9.4",
2305
+ "system-configuration-sys",
2306
+ ]
2307
+
2308
+ [[package]]
2309
+ name = "system-configuration-sys"
2310
+ version = "0.6.0"
2311
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2312
+ checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
2313
+ dependencies = [
2314
+ "core-foundation-sys",
2315
+ "libc",
2316
+ ]
2317
+
2318
+ [[package]]
2319
+ name = "tempfile"
2320
+ version = "3.27.0"
2321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2322
+ checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
2323
+ dependencies = [
2324
+ "fastrand",
2325
+ "getrandom 0.4.3",
2326
+ "once_cell",
2327
+ "rustix 1.1.4",
2328
+ "windows-sys 0.61.2",
2329
+ ]
2330
+
2331
+ [[package]]
2332
+ name = "thiserror"
2333
+ version = "1.0.69"
2334
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2335
+ checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
2336
+ dependencies = [
2337
+ "thiserror-impl 1.0.69",
2338
+ ]
2339
+
2340
+ [[package]]
2341
+ name = "thiserror"
2342
+ version = "2.0.20"
2343
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2344
+ checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
2345
+ dependencies = [
2346
+ "thiserror-impl 2.0.20",
2347
+ ]
2348
+
2349
+ [[package]]
2350
+ name = "thiserror-impl"
2351
+ version = "1.0.69"
2352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2353
+ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
2354
+ dependencies = [
2355
+ "proc-macro2",
2356
+ "quote",
2357
+ "syn 2.0.119",
2358
+ ]
2359
+
2360
+ [[package]]
2361
+ name = "thiserror-impl"
2362
+ version = "2.0.20"
2363
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2364
+ checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
2365
+ dependencies = [
2366
+ "proc-macro2",
2367
+ "quote",
2368
+ "syn 3.0.5",
2369
+ ]
2370
+
2371
+ [[package]]
2372
+ name = "thread_local"
2373
+ version = "1.1.10"
2374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2375
+ checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070"
2376
+ dependencies = [
2377
+ "cfg-if",
2378
+ ]
2379
+
2380
+ [[package]]
2381
+ name = "tiny-skia"
2382
+ version = "0.11.4"
2383
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2384
+ checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab"
2385
+ dependencies = [
2386
+ "arrayref",
2387
+ "arrayvec",
2388
+ "bytemuck",
2389
+ "cfg-if",
2390
+ "log",
2391
+ "tiny-skia-path",
2392
+ ]
2393
+
2394
+ [[package]]
2395
+ name = "tiny-skia-path"
2396
+ version = "0.11.4"
2397
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2398
+ checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93"
2399
+ dependencies = [
2400
+ "arrayref",
2401
+ "bytemuck",
2402
+ "strict-num",
2403
+ ]
2404
+
2405
+ [[package]]
2406
+ name = "tinystr"
2407
+ version = "0.8.4"
2408
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2409
+ checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
2410
+ dependencies = [
2411
+ "displaydoc",
2412
+ "zerovec",
2413
+ ]
2414
+
2415
+ [[package]]
2416
+ name = "tokio"
2417
+ version = "1.53.1"
2418
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2419
+ checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"
2420
+ dependencies = [
2421
+ "bytes",
2422
+ "libc",
2423
+ "mio",
2424
+ "pin-project-lite",
2425
+ "socket2",
2426
+ "windows-sys 0.61.2",
2427
+ ]
2428
+
2429
+ [[package]]
2430
+ name = "tokio-native-tls"
2431
+ version = "0.3.1"
2432
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2433
+ checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
2434
+ dependencies = [
2435
+ "native-tls",
2436
+ "tokio",
2437
+ ]
2438
+
2439
+ [[package]]
2440
+ name = "tokio-rustls"
2441
+ version = "0.26.5"
2442
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2443
+ checksum = "b0c85f2c3ef0b1cd58b36682f4b17aaa995f0e5db534d85692b4903abce21f67"
2444
+ dependencies = [
2445
+ "rustls",
2446
+ "tokio",
2447
+ ]
2448
+
2449
+ [[package]]
2450
+ name = "tokio-util"
2451
+ version = "0.7.19"
2452
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2453
+ checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52"
2454
+ dependencies = [
2455
+ "bytes",
2456
+ "futures-core",
2457
+ "futures-sink",
2458
+ "libc",
2459
+ "pin-project-lite",
2460
+ "tokio",
2461
+ ]
2462
+
2463
+ [[package]]
2464
+ name = "toml_datetime"
2465
+ version = "1.1.1+spec-1.1.0"
2466
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2467
+ checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
2468
+ dependencies = [
2469
+ "serde_core",
2470
+ ]
2471
+
2472
+ [[package]]
2473
+ name = "toml_edit"
2474
+ version = "0.25.13+spec-1.1.0"
2475
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2476
+ checksum = "6975367e4d2ef766d86af01ffad14b622fecc8d4357a998fbc4deb6e9bacaf9b"
2477
+ dependencies = [
2478
+ "indexmap",
2479
+ "toml_datetime",
2480
+ "toml_parser",
2481
+ "winnow",
2482
+ ]
2483
+
2484
+ [[package]]
2485
+ name = "toml_parser"
2486
+ version = "1.1.3+spec-1.1.0"
2487
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2488
+ checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56"
2489
+ dependencies = [
2490
+ "winnow",
2491
+ ]
2492
+
2493
+ [[package]]
2494
+ name = "tower"
2495
+ version = "0.5.3"
2496
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2497
+ checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
2498
+ dependencies = [
2499
+ "futures-core",
2500
+ "futures-util",
2501
+ "pin-project-lite",
2502
+ "sync_wrapper",
2503
+ "tokio",
2504
+ "tower-layer",
2505
+ "tower-service",
2506
+ ]
2507
+
2508
+ [[package]]
2509
+ name = "tower-http"
2510
+ version = "0.6.11"
2511
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2512
+ checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
2513
+ dependencies = [
2514
+ "bitflags 2.13.1",
2515
+ "bytes",
2516
+ "futures-util",
2517
+ "http",
2518
+ "http-body",
2519
+ "pin-project-lite",
2520
+ "tower",
2521
+ "tower-layer",
2522
+ "tower-service",
2523
+ "url",
2524
+ ]
2525
+
2526
+ [[package]]
2527
+ name = "tower-layer"
2528
+ version = "0.3.3"
2529
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2530
+ checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
2531
+
2532
+ [[package]]
2533
+ name = "tower-service"
2534
+ version = "0.3.3"
2535
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2536
+ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
2537
+
2538
+ [[package]]
2539
+ name = "tracing"
2540
+ version = "0.1.44"
2541
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2542
+ checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
2543
+ dependencies = [
2544
+ "pin-project-lite",
2545
+ "tracing-attributes",
2546
+ "tracing-core",
2547
+ ]
2548
+
2549
+ [[package]]
2550
+ name = "tracing-attributes"
2551
+ version = "0.1.31"
2552
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2553
+ checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
2554
+ dependencies = [
2555
+ "proc-macro2",
2556
+ "quote",
2557
+ "syn 2.0.119",
2558
+ ]
2559
+
2560
+ [[package]]
2561
+ name = "tracing-core"
2562
+ version = "0.1.36"
2563
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2564
+ checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
2565
+ dependencies = [
2566
+ "once_cell",
2567
+ "valuable",
2568
+ ]
2569
+
2570
+ [[package]]
2571
+ name = "tracing-log"
2572
+ version = "0.2.0"
2573
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2574
+ checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
2575
+ dependencies = [
2576
+ "log",
2577
+ "once_cell",
2578
+ "tracing-core",
2579
+ ]
2580
+
2581
+ [[package]]
2582
+ name = "tracing-subscriber"
2583
+ version = "0.3.23"
2584
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2585
+ checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
2586
+ dependencies = [
2587
+ "nu-ansi-term",
2588
+ "sharded-slab",
2589
+ "smallvec",
2590
+ "thread_local",
2591
+ "tracing-core",
2592
+ "tracing-log",
2593
+ ]
2594
+
2595
+ [[package]]
2596
+ name = "tracing-wasm"
2597
+ version = "0.2.1"
2598
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2599
+ checksum = "4575c663a174420fa2d78f4108ff68f65bf2fbb7dd89f33749b6e826b3626e07"
2600
+ dependencies = [
2601
+ "tracing",
2602
+ "tracing-subscriber",
2603
+ "wasm-bindgen",
2604
+ ]
2605
+
2606
+ [[package]]
2607
+ name = "try-lock"
2608
+ version = "0.2.5"
2609
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2610
+ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
2611
+
2612
+ [[package]]
2613
+ name = "ttf-parser"
2614
+ version = "0.25.1"
2615
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2616
+ checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
2617
+
2618
+ [[package]]
2619
+ name = "unicode-ident"
2620
+ version = "1.0.24"
2621
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2622
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
2623
+
2624
+ [[package]]
2625
+ name = "unicode-segmentation"
2626
+ version = "1.13.3"
2627
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2628
+ checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
2629
+
2630
+ [[package]]
2631
+ name = "untrusted"
2632
+ version = "0.9.0"
2633
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2634
+ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
2635
+
2636
+ [[package]]
2637
+ name = "url"
2638
+ version = "2.5.8"
2639
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2640
+ checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
2641
+ dependencies = [
2642
+ "form_urlencoded",
2643
+ "idna",
2644
+ "percent-encoding",
2645
+ "serde",
2646
+ ]
2647
+
2648
+ [[package]]
2649
+ name = "utf8_iter"
2650
+ version = "1.0.4"
2651
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2652
+ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
2653
+
2654
+ [[package]]
2655
+ name = "utf8parse"
2656
+ version = "0.2.2"
2657
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2658
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
2659
+
2660
+ [[package]]
2661
+ name = "valuable"
2662
+ version = "0.1.1"
2663
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2664
+ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
2665
+
2666
+ [[package]]
2667
+ name = "vcpkg"
2668
+ version = "0.2.15"
2669
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2670
+ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
2671
+
2672
+ [[package]]
2673
+ name = "version_check"
2674
+ version = "0.9.5"
2675
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2676
+ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
2677
+
2678
+ [[package]]
2679
+ name = "walkdir"
2680
+ version = "2.5.0"
2681
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2682
+ checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
2683
+ dependencies = [
2684
+ "same-file",
2685
+ "winapi-util",
2686
+ ]
2687
+
2688
+ [[package]]
2689
+ name = "want"
2690
+ version = "0.3.1"
2691
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2692
+ checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
2693
+ dependencies = [
2694
+ "try-lock",
2695
+ ]
2696
+
2697
+ [[package]]
2698
+ name = "wasi"
2699
+ version = "0.11.1+wasi-snapshot-preview1"
2700
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2701
+ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
2702
+
2703
+ [[package]]
2704
+ name = "wasip2"
2705
+ version = "1.0.4+wasi-0.2.12"
2706
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2707
+ checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
2708
+ dependencies = [
2709
+ "wit-bindgen",
2710
+ ]
2711
+
2712
+ [[package]]
2713
+ name = "wasm-bindgen"
2714
+ version = "0.2.128"
2715
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2716
+ checksum = "aecb87a33d3b0c5e3b7aa46336eaf486cffafbd281b195e4c8b80d50df2351bf"
2717
+ dependencies = [
2718
+ "cfg-if",
2719
+ "once_cell",
2720
+ "rustversion",
2721
+ "wasm-bindgen-macro",
2722
+ "wasm-bindgen-shared",
2723
+ ]
2724
+
2725
+ [[package]]
2726
+ name = "wasm-bindgen-futures"
2727
+ version = "0.4.78"
2728
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2729
+ checksum = "6ef4c5d3d2cdf5c54f4231181768f5510842e350db025faf1f7163b1030ed928"
2730
+ dependencies = [
2731
+ "js-sys",
2732
+ "wasm-bindgen",
2733
+ ]
2734
+
2735
+ [[package]]
2736
+ name = "wasm-bindgen-macro"
2737
+ version = "0.2.128"
2738
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2739
+ checksum = "a690d511e3c1a8b3a55e33511e3c2c00c78415cd23650f32b808627f5696b9ed"
2740
+ dependencies = [
2741
+ "quote",
2742
+ "wasm-bindgen-macro-support",
2743
+ ]
2744
+
2745
+ [[package]]
2746
+ name = "wasm-bindgen-macro-support"
2747
+ version = "0.2.128"
2748
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2749
+ checksum = "411e4887f0071ef2d2164a9d5fdf2d20efbef78fccd3a78b0c10a1dc5295e48a"
2750
+ dependencies = [
2751
+ "bumpalo",
2752
+ "proc-macro2",
2753
+ "quote",
2754
+ "syn 3.0.5",
2755
+ "wasm-bindgen-shared",
2756
+ ]
2757
+
2758
+ [[package]]
2759
+ name = "wasm-bindgen-shared"
2760
+ version = "0.2.128"
2761
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2762
+ checksum = "81941cd78d0c92026c33e5e01312845a4cb1e9af3407f9134b100dd03144103e"
2763
+ dependencies = [
2764
+ "unicode-ident",
2765
+ ]
2766
+
2767
+ [[package]]
2768
+ name = "wayland-backend"
2769
+ version = "0.3.17"
2770
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2771
+ checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078"
2772
+ dependencies = [
2773
+ "cc",
2774
+ "downcast-rs",
2775
+ "rustix 1.1.4",
2776
+ "scoped-tls",
2777
+ "smallvec",
2778
+ "wayland-sys",
2779
+ ]
2780
+
2781
+ [[package]]
2782
+ name = "wayland-client"
2783
+ version = "0.31.15"
2784
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2785
+ checksum = "e3c36a0f861ad76d0901f2800b46321410d9f73f2ea88aac0650d86c32688073"
2786
+ dependencies = [
2787
+ "bitflags 2.13.1",
2788
+ "rustix 1.1.4",
2789
+ "wayland-backend",
2790
+ "wayland-scanner",
2791
+ ]
2792
+
2793
+ [[package]]
2794
+ name = "wayland-csd-frame"
2795
+ version = "0.3.0"
2796
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2797
+ checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e"
2798
+ dependencies = [
2799
+ "bitflags 2.13.1",
2800
+ "cursor-icon",
2801
+ "wayland-backend",
2802
+ ]
2803
+
2804
+ [[package]]
2805
+ name = "wayland-cursor"
2806
+ version = "0.31.14"
2807
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2808
+ checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d"
2809
+ dependencies = [
2810
+ "rustix 1.1.4",
2811
+ "wayland-client",
2812
+ "xcursor",
2813
+ ]
2814
+
2815
+ [[package]]
2816
+ name = "wayland-protocols"
2817
+ version = "0.31.2"
2818
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2819
+ checksum = "8f81f365b8b4a97f422ac0e8737c438024b5951734506b0e1d775c73030561f4"
2820
+ dependencies = [
2821
+ "bitflags 2.13.1",
2822
+ "wayland-backend",
2823
+ "wayland-client",
2824
+ "wayland-scanner",
2825
+ ]
2826
+
2827
+ [[package]]
2828
+ name = "wayland-protocols-plasma"
2829
+ version = "0.2.0"
2830
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2831
+ checksum = "23803551115ff9ea9bce586860c5c5a971e360825a0309264102a9495a5ff479"
2832
+ dependencies = [
2833
+ "bitflags 2.13.1",
2834
+ "wayland-backend",
2835
+ "wayland-client",
2836
+ "wayland-protocols",
2837
+ "wayland-scanner",
2838
+ ]
2839
+
2840
+ [[package]]
2841
+ name = "wayland-protocols-wlr"
2842
+ version = "0.2.0"
2843
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2844
+ checksum = "ad1f61b76b6c2d8742e10f9ba5c3737f6530b4c243132c2a2ccc8aa96fe25cd6"
2845
+ dependencies = [
2846
+ "bitflags 2.13.1",
2847
+ "wayland-backend",
2848
+ "wayland-client",
2849
+ "wayland-protocols",
2850
+ "wayland-scanner",
2851
+ ]
2852
+
2853
+ [[package]]
2854
+ name = "wayland-scanner"
2855
+ version = "0.31.11"
2856
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2857
+ checksum = "338e30461b3a2b67d70eb30a6d89f8e0c93a833e07d2ae89085cd070c4a00ac0"
2858
+ dependencies = [
2859
+ "proc-macro2",
2860
+ "quick-xml",
2861
+ "quote",
2862
+ ]
2863
+
2864
+ [[package]]
2865
+ name = "wayland-sys"
2866
+ version = "0.31.11"
2867
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2868
+ checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be"
2869
+ dependencies = [
2870
+ "dlib",
2871
+ "log",
2872
+ "once_cell",
2873
+ "pkg-config",
2874
+ ]
2875
+
2876
+ [[package]]
2877
+ name = "web-sys"
2878
+ version = "0.3.105"
2879
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2880
+ checksum = "9fbddc4a036f00ec4f18c83445bd3115cb306a91da554919a099d9222fe4a7f8"
2881
+ dependencies = [
2882
+ "js-sys",
2883
+ "wasm-bindgen",
2884
+ ]
2885
+
2886
+ [[package]]
2887
+ name = "web-time"
2888
+ version = "0.2.4"
2889
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2890
+ checksum = "aa30049b1c872b72c89866d458eae9f20380ab280ffd1b1e18df2d3e2d98cfe0"
2891
+ dependencies = [
2892
+ "js-sys",
2893
+ "wasm-bindgen",
2894
+ ]
2895
+
2896
+ [[package]]
2897
+ name = "web-time"
2898
+ version = "1.1.0"
2899
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2900
+ checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
2901
+ dependencies = [
2902
+ "js-sys",
2903
+ "wasm-bindgen",
2904
+ ]
2905
+
2906
+ [[package]]
2907
+ name = "winapi-util"
2908
+ version = "0.1.11"
2909
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2910
+ checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
2911
+ dependencies = [
2912
+ "windows-sys 0.61.2",
2913
+ ]
2914
+
2915
+ [[package]]
2916
+ name = "windows-link"
2917
+ version = "0.2.1"
2918
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2919
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
2920
+
2921
+ [[package]]
2922
+ name = "windows-registry"
2923
+ version = "0.6.1"
2924
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2925
+ checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"
2926
+ dependencies = [
2927
+ "windows-link",
2928
+ "windows-result",
2929
+ "windows-strings",
2930
+ ]
2931
+
2932
+ [[package]]
2933
+ name = "windows-result"
2934
+ version = "0.4.1"
2935
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2936
+ checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
2937
+ dependencies = [
2938
+ "windows-link",
2939
+ ]
2940
+
2941
+ [[package]]
2942
+ name = "windows-strings"
2943
+ version = "0.5.1"
2944
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2945
+ checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
2946
+ dependencies = [
2947
+ "windows-link",
2948
+ ]
2949
+
2950
+ [[package]]
2951
+ name = "windows-sys"
2952
+ version = "0.45.0"
2953
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2954
+ checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
2955
+ dependencies = [
2956
+ "windows-targets 0.42.2",
2957
+ ]
2958
+
2959
+ [[package]]
2960
+ name = "windows-sys"
2961
+ version = "0.48.0"
2962
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2963
+ checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
2964
+ dependencies = [
2965
+ "windows-targets 0.48.5",
2966
+ ]
2967
+
2968
+ [[package]]
2969
+ name = "windows-sys"
2970
+ version = "0.52.0"
2971
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2972
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
2973
+ dependencies = [
2974
+ "windows-targets 0.52.6",
2975
+ ]
2976
+
2977
+ [[package]]
2978
+ name = "windows-sys"
2979
+ version = "0.59.0"
2980
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2981
+ checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
2982
+ dependencies = [
2983
+ "windows-targets 0.52.6",
2984
+ ]
2985
+
2986
+ [[package]]
2987
+ name = "windows-sys"
2988
+ version = "0.61.2"
2989
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2990
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
2991
+ dependencies = [
2992
+ "windows-link",
2993
+ ]
2994
+
2995
+ [[package]]
2996
+ name = "windows-targets"
2997
+ version = "0.42.2"
2998
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2999
+ checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"
3000
+ dependencies = [
3001
+ "windows_aarch64_gnullvm 0.42.2",
3002
+ "windows_aarch64_msvc 0.42.2",
3003
+ "windows_i686_gnu 0.42.2",
3004
+ "windows_i686_msvc 0.42.2",
3005
+ "windows_x86_64_gnu 0.42.2",
3006
+ "windows_x86_64_gnullvm 0.42.2",
3007
+ "windows_x86_64_msvc 0.42.2",
3008
+ ]
3009
+
3010
+ [[package]]
3011
+ name = "windows-targets"
3012
+ version = "0.48.5"
3013
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3014
+ checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
3015
+ dependencies = [
3016
+ "windows_aarch64_gnullvm 0.48.5",
3017
+ "windows_aarch64_msvc 0.48.5",
3018
+ "windows_i686_gnu 0.48.5",
3019
+ "windows_i686_msvc 0.48.5",
3020
+ "windows_x86_64_gnu 0.48.5",
3021
+ "windows_x86_64_gnullvm 0.48.5",
3022
+ "windows_x86_64_msvc 0.48.5",
3023
+ ]
3024
+
3025
+ [[package]]
3026
+ name = "windows-targets"
3027
+ version = "0.52.6"
3028
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3029
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
3030
+ dependencies = [
3031
+ "windows_aarch64_gnullvm 0.52.6",
3032
+ "windows_aarch64_msvc 0.52.6",
3033
+ "windows_i686_gnu 0.52.6",
3034
+ "windows_i686_gnullvm",
3035
+ "windows_i686_msvc 0.52.6",
3036
+ "windows_x86_64_gnu 0.52.6",
3037
+ "windows_x86_64_gnullvm 0.52.6",
3038
+ "windows_x86_64_msvc 0.52.6",
3039
+ ]
3040
+
3041
+ [[package]]
3042
+ name = "windows_aarch64_gnullvm"
3043
+ version = "0.42.2"
3044
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3045
+ checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"
3046
+
3047
+ [[package]]
3048
+ name = "windows_aarch64_gnullvm"
3049
+ version = "0.48.5"
3050
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3051
+ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
3052
+
3053
+ [[package]]
3054
+ name = "windows_aarch64_gnullvm"
3055
+ version = "0.52.6"
3056
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3057
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
3058
+
3059
+ [[package]]
3060
+ name = "windows_aarch64_msvc"
3061
+ version = "0.42.2"
3062
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3063
+ checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"
3064
+
3065
+ [[package]]
3066
+ name = "windows_aarch64_msvc"
3067
+ version = "0.48.5"
3068
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3069
+ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
3070
+
3071
+ [[package]]
3072
+ name = "windows_aarch64_msvc"
3073
+ version = "0.52.6"
3074
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3075
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
3076
+
3077
+ [[package]]
3078
+ name = "windows_i686_gnu"
3079
+ version = "0.42.2"
3080
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3081
+ checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"
3082
+
3083
+ [[package]]
3084
+ name = "windows_i686_gnu"
3085
+ version = "0.48.5"
3086
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3087
+ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
3088
+
3089
+ [[package]]
3090
+ name = "windows_i686_gnu"
3091
+ version = "0.52.6"
3092
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3093
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
3094
+
3095
+ [[package]]
3096
+ name = "windows_i686_gnullvm"
3097
+ version = "0.52.6"
3098
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3099
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
3100
+
3101
+ [[package]]
3102
+ name = "windows_i686_msvc"
3103
+ version = "0.42.2"
3104
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3105
+ checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"
3106
+
3107
+ [[package]]
3108
+ name = "windows_i686_msvc"
3109
+ version = "0.48.5"
3110
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3111
+ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
3112
+
3113
+ [[package]]
3114
+ name = "windows_i686_msvc"
3115
+ version = "0.52.6"
3116
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3117
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
3118
+
3119
+ [[package]]
3120
+ name = "windows_x86_64_gnu"
3121
+ version = "0.42.2"
3122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3123
+ checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"
3124
+
3125
+ [[package]]
3126
+ name = "windows_x86_64_gnu"
3127
+ version = "0.48.5"
3128
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3129
+ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
3130
+
3131
+ [[package]]
3132
+ name = "windows_x86_64_gnu"
3133
+ version = "0.52.6"
3134
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3135
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
3136
+
3137
+ [[package]]
3138
+ name = "windows_x86_64_gnullvm"
3139
+ version = "0.42.2"
3140
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3141
+ checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"
3142
+
3143
+ [[package]]
3144
+ name = "windows_x86_64_gnullvm"
3145
+ version = "0.48.5"
3146
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3147
+ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
3148
+
3149
+ [[package]]
3150
+ name = "windows_x86_64_gnullvm"
3151
+ version = "0.52.6"
3152
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3153
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
3154
+
3155
+ [[package]]
3156
+ name = "windows_x86_64_msvc"
3157
+ version = "0.42.2"
3158
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3159
+ checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
3160
+
3161
+ [[package]]
3162
+ name = "windows_x86_64_msvc"
3163
+ version = "0.48.5"
3164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3165
+ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
3166
+
3167
+ [[package]]
3168
+ name = "windows_x86_64_msvc"
3169
+ version = "0.52.6"
3170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3171
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
3172
+
3173
+ [[package]]
3174
+ name = "winit"
3175
+ version = "0.29.15"
3176
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3177
+ checksum = "0d59ad965a635657faf09c8f062badd885748428933dad8e8bdd64064d92e5ca"
3178
+ dependencies = [
3179
+ "ahash",
3180
+ "android-activity",
3181
+ "atomic-waker",
3182
+ "bitflags 2.13.1",
3183
+ "bytemuck",
3184
+ "calloop",
3185
+ "cfg_aliases",
3186
+ "core-foundation 0.9.4",
3187
+ "core-graphics",
3188
+ "cursor-icon",
3189
+ "icrate",
3190
+ "js-sys",
3191
+ "libc",
3192
+ "log",
3193
+ "memmap2",
3194
+ "ndk",
3195
+ "ndk-sys",
3196
+ "objc2",
3197
+ "once_cell",
3198
+ "orbclient",
3199
+ "percent-encoding",
3200
+ "raw-window-handle 0.5.2",
3201
+ "raw-window-handle 0.6.2",
3202
+ "redox_syscall 0.3.5",
3203
+ "rustix 0.38.44",
3204
+ "sctk-adwaita",
3205
+ "smithay-client-toolkit",
3206
+ "smol_str",
3207
+ "unicode-segmentation",
3208
+ "wasm-bindgen",
3209
+ "wasm-bindgen-futures",
3210
+ "wayland-backend",
3211
+ "wayland-client",
3212
+ "wayland-protocols",
3213
+ "wayland-protocols-plasma",
3214
+ "web-sys",
3215
+ "web-time 0.2.4",
3216
+ "windows-sys 0.48.0",
3217
+ "x11-dl",
3218
+ "x11rb",
3219
+ "xkbcommon-dl",
3220
+ ]
3221
+
3222
+ [[package]]
3223
+ name = "winnow"
3224
+ version = "1.0.4"
3225
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3226
+ checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
3227
+ dependencies = [
3228
+ "memchr",
3229
+ ]
3230
+
3231
+ [[package]]
3232
+ name = "wit-bindgen"
3233
+ version = "0.57.1"
3234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3235
+ checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
3236
+
3237
+ [[package]]
3238
+ name = "writeable"
3239
+ version = "0.6.4"
3240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3241
+ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
3242
+
3243
+ [[package]]
3244
+ name = "x11-dl"
3245
+ version = "2.21.0"
3246
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3247
+ checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"
3248
+ dependencies = [
3249
+ "libc",
3250
+ "once_cell",
3251
+ "pkg-config",
3252
+ ]
3253
+
3254
+ [[package]]
3255
+ name = "x11rb"
3256
+ version = "0.13.2"
3257
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3258
+ checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"
3259
+ dependencies = [
3260
+ "as-raw-xcb-connection",
3261
+ "gethostname",
3262
+ "libc",
3263
+ "libloading",
3264
+ "once_cell",
3265
+ "rustix 1.1.4",
3266
+ "x11rb-protocol",
3267
+ ]
3268
+
3269
+ [[package]]
3270
+ name = "x11rb-protocol"
3271
+ version = "0.13.2"
3272
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3273
+ checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd"
3274
+
3275
+ [[package]]
3276
+ name = "xcursor"
3277
+ version = "0.3.11"
3278
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3279
+ checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23"
3280
+
3281
+ [[package]]
3282
+ name = "xkbcommon-dl"
3283
+ version = "0.4.2"
3284
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3285
+ checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5"
3286
+ dependencies = [
3287
+ "bitflags 2.13.1",
3288
+ "dlib",
3289
+ "log",
3290
+ "once_cell",
3291
+ "xkeysym",
3292
+ ]
3293
+
3294
+ [[package]]
3295
+ name = "xkeysym"
3296
+ version = "0.2.1"
3297
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3298
+ checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56"
3299
+
3300
+ [[package]]
3301
+ name = "xml-rs"
3302
+ version = "0.8.29"
3303
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3304
+ checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7"
3305
+
3306
+ [[package]]
3307
+ name = "yoke"
3308
+ version = "0.8.3"
3309
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3310
+ checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
3311
+ dependencies = [
3312
+ "stable_deref_trait",
3313
+ "yoke-derive",
3314
+ "zerofrom",
3315
+ ]
3316
+
3317
+ [[package]]
3318
+ name = "yoke-derive"
3319
+ version = "0.8.2"
3320
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3321
+ checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
3322
+ dependencies = [
3323
+ "proc-macro2",
3324
+ "quote",
3325
+ "syn 2.0.119",
3326
+ "synstructure",
3327
+ ]
3328
+
3329
+ [[package]]
3330
+ name = "zerocopy"
3331
+ version = "0.8.56"
3332
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3333
+ checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
3334
+ dependencies = [
3335
+ "zerocopy-derive",
3336
+ ]
3337
+
3338
+ [[package]]
3339
+ name = "zerocopy-derive"
3340
+ version = "0.8.56"
3341
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3342
+ checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
3343
+ dependencies = [
3344
+ "proc-macro2",
3345
+ "quote",
3346
+ "syn 2.0.119",
3347
+ ]
3348
+
3349
+ [[package]]
3350
+ name = "zerofrom"
3351
+ version = "0.1.8"
3352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3353
+ checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
3354
+ dependencies = [
3355
+ "zerofrom-derive",
3356
+ ]
3357
+
3358
+ [[package]]
3359
+ name = "zerofrom-derive"
3360
+ version = "0.1.7"
3361
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3362
+ checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
3363
+ dependencies = [
3364
+ "proc-macro2",
3365
+ "quote",
3366
+ "syn 2.0.119",
3367
+ "synstructure",
3368
+ ]
3369
+
3370
+ [[package]]
3371
+ name = "zeroize"
3372
+ version = "1.9.0"
3373
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3374
+ checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
3375
+
3376
+ [[package]]
3377
+ name = "zerotrie"
3378
+ version = "0.2.5"
3379
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3380
+ checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
3381
+ dependencies = [
3382
+ "displaydoc",
3383
+ "yoke",
3384
+ "zerofrom",
3385
+ ]
3386
+
3387
+ [[package]]
3388
+ name = "zerovec"
3389
+ version = "0.11.8"
3390
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3391
+ checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"
3392
+ dependencies = [
3393
+ "yoke",
3394
+ "zerofrom",
3395
+ "zerovec-derive",
3396
+ ]
3397
+
3398
+ [[package]]
3399
+ name = "zerovec-derive"
3400
+ version = "0.11.6"
3401
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3402
+ checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
3403
+ dependencies = [
3404
+ "proc-macro2",
3405
+ "quote",
3406
+ "syn 3.0.5",
3407
+ ]
3408
+
3409
+ [[package]]
3410
+ name = "zlib-rs"
3411
+ version = "0.6.7"
3412
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3413
+ checksum = "34b31d188d9d685a4f9c7b46d6e36631b07058d2cfe190267adce54dc230bf12"
3414
+
3415
+ [[package]]
3416
+ name = "zmij"
3417
+ version = "1.0.23"
3418
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3419
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
3420
+
3421
+ [[package]]
3422
+ name = "zune-core"
3423
+ version = "0.5.3"
3424
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3425
+ checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b"
3426
+
3427
+ [[package]]
3428
+ name = "zune-jpeg"
3429
+ version = "0.5.15"
3430
+ source = "registry+https://github.com/rust-lang/crates.io-index"
3431
+ checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296"
3432
+ dependencies = [
3433
+ "zune-core",
3434
+ ]
3435
+ CARGO_EOF
3436
+
3437
+ # Fetch every dependency into the shared cache (downloads only; no build).
3438
+ # --locked guarantees the exact pinned versions are present.
3439
+ cargo fetch --locked --manifest-path "$WS_STAGE/Cargo.toml"
3440
+
3441
+ # Expose the paths build.sh relies on.
3442
+ export INOX_TARGET_DIR="target"
inochi2d--inox2d.df8413e/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0bd93d565f07378d7b6eeb8f9a4ac3c080c8c3e022cf2480fa7aa22341ad4de1
3
+ size 43641464
inochi2d--inox2d.df8413e/environment/harbor_configure_apt_mirror.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ repository_base="${1%/}"
5
+ if [[ -z "$repository_base" ]]; then
6
+ exit 0
7
+ fi
8
+
9
+ . /etc/os-release
10
+ codename="${VERSION_CODENAME:-}"
11
+ if [[ -z "$codename" ]]; then
12
+ echo "VERSION_CODENAME is not set" >&2
13
+ exit 1
14
+ fi
15
+
16
+ if [[ "$ID" == "ubuntu" ]]; then
17
+ repository_name="apt-proxy"
18
+ components="main universe restricted multiverse"
19
+ else
20
+ repository_name="debian-proxy"
21
+ components="main contrib non-free non-free-firmware"
22
+ fi
23
+
24
+ install -d /etc/apt/sources.list.d
25
+ rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
26
+ printf 'deb [trusted=yes] %s/%s %s %s\n' \
27
+ "$repository_base" "$repository_name" "$codename" "$components" \
28
+ >/etc/apt/sources.list
29
+ printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
30
+ "$repository_base" "$repository_name" "$codename" "$components" \
31
+ >>/etc/apt/sources.list
32
+
33
+ if [[ "$ID" != "ubuntu" ]]; then
34
+ printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
35
+ "$repository_base" "debian-proxy-security" "$codename" "$components" \
36
+ >>/etc/apt/sources.list
37
+ fi
inochi2d--inox2d.df8413e/environment/harbor_configure_java_mirrors.sh ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ maven_url="${1%/}"
5
+ plugin_url="${2%/}"
6
+ jitpack_url="${3%/}"
7
+
8
+ install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
9
+ if [[ -n "$maven_url" ]]; then
10
+ cat >/workspace/.m2/settings.xml <<EOF
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
13
+ <mirrors>
14
+ <mirror>
15
+ <id>programgym-maven</id>
16
+ <name>ProgramGym Maven mirror</name>
17
+ <url>${maven_url}</url>
18
+ <mirrorOf>*</mirrorOf>
19
+ </mirror>
20
+ </mirrors>
21
+ </settings>
22
+ EOF
23
+ fi
24
+
25
+ cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
26
+ def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
27
+ def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
28
+ def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
29
+
30
+ settingsEvaluated { settings ->
31
+ settings.pluginManagement.repositories {
32
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
33
+ if (pbMaven) { maven { url = uri(pbMaven) } }
34
+ }
35
+ }
36
+
37
+ allprojects {
38
+ buildscript.repositories {
39
+ if (pbPlugins) { maven { url = uri(pbPlugins) } }
40
+ if (pbMaven) { maven { url = uri(pbMaven) } }
41
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
42
+ }
43
+ repositories {
44
+ if (pbMaven) { maven { url = uri(pbMaven) } }
45
+ if (pbJitpack) { maven { url = uri(pbJitpack) } }
46
+ }
47
+ }
48
+ EOF
49
+ cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
50
+ /workspace/.gradle/init.d/programgym-mirrors.gradle
inochi2d--inox2d.df8413e/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ command -v cargo
4
+ command -v rustc
5
+ command -v rustup
6
+ cd /workspace
7
+ set -a
8
+ if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
9
+ sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /tmp/programgym-download.sh
10
+ fi
11
+ if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
12
+ sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /tmp/programgym-download.sh
13
+ fi
14
+ if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
15
+ sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /tmp/programgym-download.sh
16
+ fi
17
+ source /tmp/programgym-download.sh
18
+ set +a
19
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
20
+ import os
21
+ import shlex
22
+
23
+ ignored = {
24
+ "ALL_PROXY",
25
+ "HTTP_PROXY",
26
+ "HTTPS_PROXY",
27
+ "NO_PROXY",
28
+ "OLDPWD",
29
+ "PIP_PROXY",
30
+ "PWD",
31
+ "SHLVL",
32
+ "_",
33
+ "all_proxy",
34
+ "http_proxy",
35
+ "https_proxy",
36
+ "no_proxy",
37
+ "pip_proxy",
38
+ }
39
+ for key in sorted(os.environ):
40
+ if key in ignored or key.startswith("BASH_FUNC_"):
41
+ continue
42
+ value = os.environ[key]
43
+ if "\n" in value:
44
+ continue
45
+ print(f"export {key}={shlex.quote(value)}")
46
+ PY
47
+ chmod 0644 /etc/profile.d/programgym_download_env.sh
inochi2d--inox2d.df8413e/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ab6bff9cde2e8dfce57e817e9a118f37b4d2823c089edec572a20a5fb1bb113
3
+ size 2040
inochi2d--inox2d.df8413e/instruction.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are a helpful assistant that can interact with a computer.
2
+
3
+ This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
4
+ Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
5
+ You must figure out the behavior solely by running and interacting with the provided binary.
6
+ Writing original code based on observed behavior is the entire point of this benchmark.
7
+
8
+ Any approach that shortcuts this — finding existing source code, wrapping the binary,
9
+ or installing the original tool — does not count as a solution. It will be detected by an
10
+ automated judge, marked as a disqualification, and scored as a failure.
11
+ The trace will be posted to an online wall of shame.
12
+
13
+ <RULES>
14
+ ## What is not allowed
15
+
16
+ ### 1. Obtaining source code
17
+
18
+ The only source of truth about what the executable does is the executable itself and its
19
+ bundled documentation. You must not search the internet, package registries, or any external
20
+ source for information about this project's source code. Even if you recognize what the
21
+ executable is, you must reimplement it from behavioral observation alone.
22
+
23
+ This includes but is not limited to:
24
+ - Cloning or browsing the original GitHub repository, its forks, or mirrors
25
+ - Downloading the project from package registries: `cargo install <project>`, `go get github.com/<org>/<project>`, `pip install <project>`, `apt-get source <project>`, `npm install <project>`, etc.
26
+ - Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
27
+ - Using a package manager to download the project as a dependency and then reading its cached source (e.g., navigating into `~/.cargo/registry/src/` or `$(go env GOPATH)/pkg/mod/`)
28
+ - Searching the web for the project's source code or implementation details
29
+
30
+ ### 2. Wrapping or reusing the original binary
31
+
32
+ Your submission must be a genuine reimplementation. The provided `./executable` is for
33
+ observation only — your final solution must not depend on it or any other pre-built version
34
+ of the same tool at runtime.
35
+
36
+ This includes but is not limited to:
37
+ - Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
38
+ - Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
39
+ - Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
40
+ - Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
41
+ - Re-linking prebuilt `.o` object files found in the workspace without writing new source code
42
+
43
+ ### 3. Binary analysis of the provided executable
44
+
45
+ All information about the provided `./executable` must be obtained by interacting with it
46
+ through its normal user interface (CLI flags, stdin/stdout, etc.).
47
+ - You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
48
+ - You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
49
+
50
+ Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
51
+ analysis tools on binaries that you produce yourself during development.
52
+
53
+ ## What IS allowed
54
+
55
+ - Running the executable with any inputs, flags, and arguments to observe its behavior
56
+ - Reading any documentation files bundled in the workspace
57
+ </RULES>
58
+
59
+ ## Task context
60
+
61
+ We want to write the source code for a given executable.
62
+ The executable is located at `./executable` in the workspace root.
63
+
64
+ You also have access to the existing documentation.
65
+
66
+ ## Your task
67
+
68
+ Implement the source code to generate an executable of exactly identical behavior as the original.
69
+
70
+ No project-specific dependencies are pre-installed.
71
+ You do NOT have access to the internet.
72
+ **IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
73
+ Finally, commit your changes.
74
+
75
+ Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
76
+ `compile.sh` should be executable and should install any dependencies needed to compile the executable.
77
+ If your compile.sh fails to compile on a fresh checkout, your task has failed.
78
+
79
+ ## Important: This is a reverse-engineering benchmark
80
+
81
+ Your goal is to write original code from scratch that reproduces the executable's behavior.
82
+ The only way to learn what the executable does is to run it and read its bundled documentation.
83
+
84
+ Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
85
+ provided binary will be detected by an automated judge, disqualified, and scored as zero.
86
+ See the full rules in the system prompt above. Key points:
87
+
88
+ - Do NOT search the internet, clone repos, or download the project from any package registry
89
+ - Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
90
+ - Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
91
+ - You SHOULD extensively test the executable to understand its behavior before writing code.
92
+ If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
93
+
94
+ ## Recommended Workflow
95
+
96
+ 1. Explore all documentation files
97
+ 2. Play with the executable to understand its behavior (however, you MUST NOT decompile `./executable` or perform any other form of binary or strace/ltrace analysis on it)
98
+ 3. Write the source code to implement the behavior
inochi2d--inox2d.df8413e/solution/solve.sh ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Oracle-only ceiling check. The reference is execute-only for normal agents;
3
+ # because the oracle runs as the owning `agent` user it can temporarily add read
4
+ # permission and encode the binary for Harbor's normal artifact handoff.
5
+ set -euo pipefail
6
+ test -f ./executable
7
+ chmod u+r ./executable
8
+ python3 - <<'PY'
9
+ import base64
10
+ from pathlib import Path
11
+
12
+ Path(".programgym_oracle_reference").write_bytes(
13
+ base64.b64encode(Path("executable").read_bytes())
14
+ )
15
+ PY
16
+ chmod u-r ./executable
17
+ cat > compile.sh <<'EOF'
18
+ #!/usr/bin/env bash
19
+ set -euo pipefail
20
+ if [ -f ./.programgym_oracle_reference ]; then
21
+ python3 - <<'PY'
22
+ import base64
23
+ from pathlib import Path
24
+
25
+ Path("executable").write_bytes(
26
+ base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
27
+ )
28
+ PY
29
+ fi
30
+ test -f ./executable
31
+ chmod +x ./executable
32
+ EOF
33
+ chmod +x compile.sh
inochi2d--inox2d.df8413e/task.toml ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ schema_version = "1.3"
2
+ source = "ProgramGym"
3
+ artifacts = [
4
+ "/logs/verifier/programgym_eval.json",
5
+ "/logs/verifier/harbor_diagnostics.json",
6
+ "/logs/verifier/programgym_eval.log",
7
+ "/logs/verifier/reward.json",
8
+ "/logs/verifier/reward.txt",
9
+ # Keep agent/runtime state out of the submission handoff. In particular,
10
+ # Claude Code installs an absolute symlink under .local/bin; transferring it
11
+ # makes Python's safe tar extraction reject the entire workspace archive.
12
+ { source = "/workspace", exclude = [
13
+ "executable",
14
+ ".git",
15
+ ".bashrc",
16
+ ".cache",
17
+ ".cc-switch",
18
+ ".claude",
19
+ ".local",
20
+ ] },
21
+ ]
22
+
23
+ [task]
24
+ name = "programgym/inochi2d--inox2d.df8413e"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for Inochi2D/inox2d"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "Inochi2D__inox2d.df8413e"
32
+ repository = "Inochi2D/inox2d"
33
+ commit = "df8413e6b0c525dbb880b4dca2bdf0a5d4b9aaba"
34
+ language = "rust"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.715418322595056
37
+ test_branches = 4
38
+ test_count = 1164
39
+
40
+ [agent]
41
+ timeout_sec = 14400
42
+ user = "agent"
43
+ network_mode = "allowlist"
44
+ allowed_hosts = ["api.anthropic.com", "api.openai.com"]
45
+
46
+ [verifier]
47
+ timeout_sec = 7200
48
+ user = "root"
49
+ environment_mode = "separate"
50
+
51
+ [verifier.env]
52
+ PROGRAMGYM_XDIST_WORKERS = "8"
53
+
54
+ [verifier.environment]
55
+ build_timeout_sec = 1800
56
+ cpus = 8
57
+ memory_mb = 16384
58
+ storage_mb = 30720
59
+ gpus = 0
60
+ workdir = "/workspace"
61
+
62
+ [environment]
63
+ network_mode = "public"
64
+ build_timeout_sec = 1800
65
+ cpus = 8
66
+ memory_mb = 16384
67
+ storage_mb = 30720
68
+ gpus = 0
69
+ workdir = "/workspace"
inochi2d--inox2d.df8413e/tests/Dockerfile ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM rust:1.97.1-bookworm
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
5
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
6
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
7
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
8
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
9
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
10
+ ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
11
+ ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
12
+ ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
13
+ ARG PROGRAMGYM_CARGO_NET_RETRY="10"
14
+ ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
15
+ ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
16
+ ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
17
+ ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
18
+ ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
19
+ ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
20
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
21
+ ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
22
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
23
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
24
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
25
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
26
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
27
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
28
+ ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
29
+ ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
30
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
31
+ ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
32
+ ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
33
+ ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
34
+ ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
35
+ ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
36
+ ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
37
+ ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
38
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
39
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
40
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
41
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
42
+ COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
43
+ RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
44
+ && /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
45
+ && rm -f /tmp/harbor_configure_java_mirrors.sh
46
+ ENV DEBIAN_FRONTEND=noninteractive
47
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
48
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
49
+ ENV GOTOOLCHAIN=auto
50
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
51
+ ENV npm_config_cache=/workspace/.cache/npm
52
+ ENV HOME=/workspace
53
+ ENV XDG_CACHE_HOME=/workspace/.cache
54
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
55
+ ENV PYTHONUSERBASE=/workspace/.local
56
+ ENV CARGO_HOME=/usr/local/cargo
57
+ ENV RUSTUP_HOME=/usr/local/rustup
58
+ ENV RUSTUP_TOOLCHAIN=1.97.1
59
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
60
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
61
+ ENV PAGER=cat
62
+ ENV MANPAGER=cat
63
+ ENV LESS=-R
64
+ ENV TQDM_DISABLE=1
65
+ RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
66
+ RUN set -eux; for attempt in 1 2 3 4 5; do rustup component add llvm-tools-preview --toolchain 1.97.1 && break; [ "$attempt" -lt 5 ] || exit 1; sleep $((attempt * 2)); done
67
+ RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
68
+ RUN rustc --version && cargo --version && rustup show active-toolchain
69
+ WORKDIR /workspace
70
+ ADD workspace.tar.gz /workspace/
71
+ COPY executable /workspace/executable
72
+ COPY download.sh /tmp/programgym-download.sh
73
+ RUN chmod 755 /tmp/programgym-download.sh
74
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
75
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
76
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
77
+ && rm -f /tmp/programgym-download.sh \
78
+ && rm -f /tmp/harbor_prepare_download_env.sh
79
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
80
+ RUN chmod 111 /workspace/executable
81
+ WORKDIR /workspace
82
+ # Harbor uses tests/ as the separate verifier build context. Start with the
83
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
84
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
85
+ && mkdir -p /workspace /tests
86
+
87
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
88
+ # Installing a newer pytest alone leaves that apt package importable and creates
89
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
90
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
91
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
92
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
93
+ RUN set -eu; \
94
+ pip_break_system_packages=""; \
95
+ if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
96
+ pip_break_system_packages="--break-system-packages"; \
97
+ fi; \
98
+ python3 -m pip install ${pip_break_system_packages} \
99
+ --no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
100
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
101
+
102
+ COPY test.sh /tests/test.sh
103
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
104
+ COPY programgym_task.json /tests/programgym_task.json
105
+ COPY blobs/ /tests/blobs/
106
+ RUN chmod +x /tests/test.sh
107
+ RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
inochi2d--inox2d.df8413e/tests/blobs/tests/generated_module_01.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:581a86b25e37cf2ccc4a8018cc9818cf66107a6b203650d050f7dbe8d0026a95
3
+ size 21839