diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 0f67e590..45d5f59a 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -12,6 +12,178 @@ env: RUSTC_WRAPPER: sccache jobs: + pipeline-validation: + name: Pipeline Validation + runs-on: ubuntu-22.04 + steps: + - name: Free disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + android: true + dotnet: true + haskell: true + large-packages: false + docker-images: true + swap-storage: false + + - uses: actions/checkout@v5 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: "1.3.5" + + - name: Build UI + working-directory: ./ui + run: | + bun install --frozen-lockfile + bun run build + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: "1.92.0" + + - uses: mozilla-actions/sccache-action@v0.0.9 + + - uses: Swatinem/rust-cache@v2 + + - name: Install system dependencies + run: sudo apt-get update && sudo apt-get install -y libvpx-dev nasm cmake ninja-build yasm meson ffmpeg + + - name: Build and install SVT-AV1 from source (v4.1.0) + run: | + cd /tmp + git clone --depth 1 --branch v4.1.0 https://gitlab.com/AOMediaCodec/SVT-AV1.git + cd SVT-AV1 + cmake -S . -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr/local + cmake --build build -j"$(nproc)" + sudo cmake --install build + sudo ldconfig + + - name: Build skit + run: cargo build -p streamkit-server --bin skit --features "svt_av1 dav1d_static" + + - name: Start skit server + run: | + SK_SERVER__ADDRESS=127.0.0.1:4545 ./target/debug/skit & + # Wait for the server to be healthy + HEALTHY=0 + for i in $(seq 1 30); do + if curl -sf http://127.0.0.1:4545/healthz > /dev/null 2>&1; then + echo "skit is healthy" + HEALTHY=1 + break + fi + sleep 1 + done + if [ "$HEALTHY" -ne 1 ]; then + echo "ERROR: skit did not become healthy within 30s" + exit 1 + fi + + - name: Run pipeline validation tests (SW codecs only) + run: | + cd tests/pipeline-validation + PIPELINE_TEST_URL=http://127.0.0.1:4545 cargo test --test validate + + pipeline-validation-gpu: + name: Pipeline Validation (GPU) + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + runs-on: self-hosted + steps: + - uses: actions/checkout@v5 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: "1.3.5" + + - name: Build UI + working-directory: ./ui + run: | + bun install --frozen-lockfile + bun run build + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: "1.92.0" + + - uses: mozilla-actions/sccache-action@v0.0.9 + + - uses: Swatinem/rust-cache@v2 + + - name: Install system dependencies + run: sudo apt-get update && sudo apt-get install -y libvpx-dev nasm cmake ninja-build yasm meson ffmpeg libopus-dev pkg-config libssl-dev + + - name: Build and install SVT-AV1 from source (v4.1.0) + run: | + cd /tmp + if pkg-config --atleast-version=2.0.0 SvtAv1Enc 2>/dev/null; then + echo "SVT-AV1 already installed, skipping build" + else + rm -rf SVT-AV1 + git clone --depth 1 --branch v4.1.0 https://gitlab.com/AOMediaCodec/SVT-AV1.git + cd SVT-AV1 + cmake -S . -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr/local + cmake --build build -j"$(nproc)" + sudo cmake --install build + sudo ldconfig + fi + + - name: Build skit (with GPU + HW codecs + SVT-AV1 + dav1d) + env: + VPX_LIB_DIR: /usr/lib/x86_64-linux-gnu + VPX_INCLUDE_DIR: /usr/include + VPX_VERSION: "1.13.0" + CUDA_INCLUDE_PATH: /usr/include + # bindgen (used by shiguredo_nvcodec) needs the clang builtin include + # path so it can find stddef.h and other compiler-provided headers. + BINDGEN_EXTRA_CLANG_ARGS: "-I/usr/lib/llvm-18/lib/clang/18/include" + run: | + cargo build -p streamkit-server --bin skit --features "gpu nvcodec vulkan_video svt_av1 dav1d_static" + + - name: Start skit server + run: | + # Use a non-default port to avoid conflicts with any persistent skit + # instance that may be running on the self-hosted runner. + SKIT_PORT=4546 + SK_SERVER__ADDRESS=127.0.0.1:${SKIT_PORT} ./target/debug/skit & + echo $! > /tmp/skit-gpu.pid + # Wait for the server to be healthy + HEALTHY=0 + for i in $(seq 1 30); do + if curl -sf http://127.0.0.1:${SKIT_PORT}/healthz > /dev/null 2>&1; then + echo "skit is healthy on port ${SKIT_PORT}" + HEALTHY=1 + break + fi + sleep 1 + done + if [ "$HEALTHY" -ne 1 ]; then + echo "ERROR: skit did not become healthy within 30s" + exit 1 + fi + + - name: Run pipeline validation tests (all codecs including GPU) + run: | + cd tests/pipeline-validation + PIPELINE_TEST_URL=http://127.0.0.1:4546 cargo test --test validate + + - name: Stop skit server + if: always() + run: | + if [ -f /tmp/skit-gpu.pid ]; then + kill "$(cat /tmp/skit-gpu.pid)" 2>/dev/null || true + rm -f /tmp/skit-gpu.pid + fi + e2e: name: Playwright E2E runs-on: ubuntu-22.04 diff --git a/.github/workflows/marketplace-release.yml b/.github/workflows/marketplace-release.yml index ef6ff7d5..8bd11c55 100644 --- a/.github/workflows/marketplace-release.yml +++ b/.github/workflows/marketplace-release.yml @@ -97,6 +97,7 @@ jobs: '--target', os.environ.get('GITHUB_SHA', 'HEAD'), '--title', release_name, '--notes', f'Plugin bundle for {name} v{version}.', + '--latest=false', bundle, ] if is_prerelease: diff --git a/dist/registry/index.json b/dist/registry/index.json index eb3c6b41..0095f84e 100644 --- a/dist/registry/index.json +++ b/dist/registry/index.json @@ -95,6 +95,20 @@ } ] }, + { + "id": "parakeet", + "name": "Parakeet TDT", + "description": "Fast speech-to-text using NVIDIA Parakeet TDT via sherpa-onnx", + "latest": "0.1.0", + "versions": [ + { + "version": "0.1.0", + "manifest_url": "https://streamkit.dev/registry/plugins/parakeet/0.1.0/manifest.json", + "signature_url": "https://streamkit.dev/registry/plugins/parakeet/0.1.0/manifest.minisig", + "published_at": "2026-04-10" + } + ] + }, { "id": "piper", "name": "Piper", diff --git a/dist/registry/plugins/parakeet/0.1.0/manifest.json b/dist/registry/plugins/parakeet/0.1.0/manifest.json new file mode 100644 index 00000000..64111cfb --- /dev/null +++ b/dist/registry/plugins/parakeet/0.1.0/manifest.json @@ -0,0 +1,57 @@ +{ + "schema_version": 1, + "id": "parakeet", + "name": "Parakeet TDT", + "version": "0.1.0", + "node_kind": "parakeet", + "kind": "native", + "description": "Fast speech-to-text using NVIDIA Parakeet TDT via sherpa-onnx", + "license": "MPL-2.0", + "homepage": "https://huggingface.co/nvidia/parakeet-tdt-0.6b-v2", + "entrypoint": "libparakeet.so", + "bundle": { + "url": "https://github.com/streamer45/streamkit/releases/download/plugin-parakeet-v0.1.0/parakeet-0.1.0-bundle.tar.zst", + "sha256": "9ca3cd97ba3c665517dd1319f8492c15b6b97549231577b640bbbc0f71aa60c3", + "size_bytes": 15635462 + }, + "models": [ + { + "id": "parakeet-tdt-0.6b-v2-int8", + "name": "Parakeet TDT 0.6B v2 (English, INT8)", + "default": true, + "source": "huggingface", + "repo_id": "streamkit/parakeet-models", + "revision": "main", + "files": [ + "encoder.int8.onnx", + "decoder.int8.onnx", + "joiner.int8.onnx", + "tokens.txt" + ], + "expected_size_bytes": 661190513, + "license": "CC-BY-4.0", + "license_url": "https://huggingface.co/nvidia/parakeet-tdt-0.6b-v2", + "file_checksums": { + "encoder.int8.onnx": "a32b12d17bbbc309d0686fbbcc2987b5e9b8333a7da83fa6b089f0a2acd651ab", + "decoder.int8.onnx": "b6bb64963457237b900e496ee9994b59294526439fbcc1fecf705b31a15c6b4e", + "joiner.int8.onnx": "7946164367946e7f9f29a122407c3252b680dbae9a51343eb2488d057c3c43d2", + "tokens.txt": "ec182b70dd42113aff6c5372c75cac58c952443eb22322f57bbd7f53977d497d" + } + }, + { + "id": "silero-vad", + "name": "Silero VAD (v6.2)", + "default": true, + "source": "huggingface", + "repo_id": "streamkit/parakeet-models", + "revision": "main", + "files": [ + "silero_vad.onnx" + ], + "expected_size_bytes": 2327524, + "license": "MIT", + "license_url": "https://github.com/snakers4/silero-vad/blob/master/LICENSE", + "sha256": "1a153a22f4509e292a94e67d6f9b85e8deb25b4988682b7e174c65279d8788e3" + } + ] +} \ No newline at end of file diff --git a/dist/registry/plugins/parakeet/0.1.0/manifest.minisig b/dist/registry/plugins/parakeet/0.1.0/manifest.minisig new file mode 100644 index 00000000..17252b4c --- /dev/null +++ b/dist/registry/plugins/parakeet/0.1.0/manifest.minisig @@ -0,0 +1,4 @@ +untrusted comment: signature from minisign secret key +RUQ/85JEqYXEgb3NHkk8EDvKfvijFiOhUMrmR97Tqb5NEYf3kTZTK+U5IHo10l0lOfInZaLjscG7wQ6OqfgO6gaRAnqlUzMXmgo= +trusted comment: timestamp:1775850398 file:manifest.json hashed +BMn5YTOa/ekLGbyRUiXr5cnwpYr8NrU+bQrKORovVYFIUtYDDwUyzvELqGjs/tShSlT8Ws7UVtBDdSVdJlOxAg== diff --git a/docs/public/registry/index.json b/docs/public/registry/index.json index eb3c6b41..0095f84e 100644 --- a/docs/public/registry/index.json +++ b/docs/public/registry/index.json @@ -95,6 +95,20 @@ } ] }, + { + "id": "parakeet", + "name": "Parakeet TDT", + "description": "Fast speech-to-text using NVIDIA Parakeet TDT via sherpa-onnx", + "latest": "0.1.0", + "versions": [ + { + "version": "0.1.0", + "manifest_url": "https://streamkit.dev/registry/plugins/parakeet/0.1.0/manifest.json", + "signature_url": "https://streamkit.dev/registry/plugins/parakeet/0.1.0/manifest.minisig", + "published_at": "2026-04-10" + } + ] + }, { "id": "piper", "name": "Piper", diff --git a/docs/public/registry/plugins/parakeet/0.1.0/manifest.json b/docs/public/registry/plugins/parakeet/0.1.0/manifest.json new file mode 100644 index 00000000..64111cfb --- /dev/null +++ b/docs/public/registry/plugins/parakeet/0.1.0/manifest.json @@ -0,0 +1,57 @@ +{ + "schema_version": 1, + "id": "parakeet", + "name": "Parakeet TDT", + "version": "0.1.0", + "node_kind": "parakeet", + "kind": "native", + "description": "Fast speech-to-text using NVIDIA Parakeet TDT via sherpa-onnx", + "license": "MPL-2.0", + "homepage": "https://huggingface.co/nvidia/parakeet-tdt-0.6b-v2", + "entrypoint": "libparakeet.so", + "bundle": { + "url": "https://github.com/streamer45/streamkit/releases/download/plugin-parakeet-v0.1.0/parakeet-0.1.0-bundle.tar.zst", + "sha256": "9ca3cd97ba3c665517dd1319f8492c15b6b97549231577b640bbbc0f71aa60c3", + "size_bytes": 15635462 + }, + "models": [ + { + "id": "parakeet-tdt-0.6b-v2-int8", + "name": "Parakeet TDT 0.6B v2 (English, INT8)", + "default": true, + "source": "huggingface", + "repo_id": "streamkit/parakeet-models", + "revision": "main", + "files": [ + "encoder.int8.onnx", + "decoder.int8.onnx", + "joiner.int8.onnx", + "tokens.txt" + ], + "expected_size_bytes": 661190513, + "license": "CC-BY-4.0", + "license_url": "https://huggingface.co/nvidia/parakeet-tdt-0.6b-v2", + "file_checksums": { + "encoder.int8.onnx": "a32b12d17bbbc309d0686fbbcc2987b5e9b8333a7da83fa6b089f0a2acd651ab", + "decoder.int8.onnx": "b6bb64963457237b900e496ee9994b59294526439fbcc1fecf705b31a15c6b4e", + "joiner.int8.onnx": "7946164367946e7f9f29a122407c3252b680dbae9a51343eb2488d057c3c43d2", + "tokens.txt": "ec182b70dd42113aff6c5372c75cac58c952443eb22322f57bbd7f53977d497d" + } + }, + { + "id": "silero-vad", + "name": "Silero VAD (v6.2)", + "default": true, + "source": "huggingface", + "repo_id": "streamkit/parakeet-models", + "revision": "main", + "files": [ + "silero_vad.onnx" + ], + "expected_size_bytes": 2327524, + "license": "MIT", + "license_url": "https://github.com/snakers4/silero-vad/blob/master/LICENSE", + "sha256": "1a153a22f4509e292a94e67d6f9b85e8deb25b4988682b7e174c65279d8788e3" + } + ] +} \ No newline at end of file diff --git a/docs/public/registry/plugins/parakeet/0.1.0/manifest.minisig b/docs/public/registry/plugins/parakeet/0.1.0/manifest.minisig new file mode 100644 index 00000000..17252b4c --- /dev/null +++ b/docs/public/registry/plugins/parakeet/0.1.0/manifest.minisig @@ -0,0 +1,4 @@ +untrusted comment: signature from minisign secret key +RUQ/85JEqYXEgb3NHkk8EDvKfvijFiOhUMrmR97Tqb5NEYf3kTZTK+U5IHo10l0lOfInZaLjscG7wQ6OqfgO6gaRAnqlUzMXmgo= +trusted comment: timestamp:1775850398 file:manifest.json hashed +BMn5YTOa/ekLGbyRUiXr5cnwpYr8NrU+bQrKORovVYFIUtYDDwUyzvELqGjs/tShSlT8Ws7UVtBDdSVdJlOxAg== diff --git a/justfile b/justfile index 967f9ba6..380929bf 100644 --- a/justfile +++ b/justfile @@ -1389,6 +1389,18 @@ e2e-external url filter='': @echo "Running E2E tests against {{url}}..." @cd e2e && E2E_BASE_URL={{url}} bun run test:only {{ if filter != "" { "--grep '" + filter + "'" } else { "" } }} +# Run headless pipeline validation tests (no browser required). +# Requires a running skit server — pass its URL as an argument. +# Each .yml in samples/pipelines/test/ becomes a test case; a companion +# .toml sidecar declares the expected ffprobe output. +# +# Usage: +# just test-pipelines http://localhost:4545 +# just test-pipelines http://localhost:4545 vp9 # filter by name +test-pipelines url filter='': + @echo "Running headless pipeline validation tests against {{url}}..." + @cd tests/pipeline-validation && PIPELINE_TEST_URL={{url}} cargo test --test validate {{ if filter != "" { "-- " + filter } else { "" } }} + # Show E2E test report [working-directory: 'e2e'] e2e-report: diff --git a/samples/pipelines/test/dav1d_roundtrip/expected.toml b/samples/pipelines/test/dav1d_roundtrip/expected.toml new file mode 100644 index 00000000..dcb94a18 --- /dev/null +++ b/samples/pipelines/test/dav1d_roundtrip/expected.toml @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +requires_node = "video::dav1d::decoder" +output_extension = ".webm" +codec_name = "av1" +width = 320 +height = 240 +container_format = "matroska,webm" +pix_fmt = "yuv420p" diff --git a/samples/pipelines/test/dav1d_roundtrip/pipeline.yml b/samples/pipelines/test/dav1d_roundtrip/pipeline.yml new file mode 100644 index 00000000..ae3db3e9 --- /dev/null +++ b/samples/pipelines/test/dav1d_roundtrip/pipeline.yml @@ -0,0 +1,66 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Test pipeline: SVT-AV1 encode → dav1d decode → SVT-AV1 re-encode roundtrip. +# Exercises: colorbars → svt_av1 encoder → dav1d decoder → svt_av1 re-encoder → webm muxer +# Used by headless pipeline validation tests. +# +# Requires: skit built with --features "svt_av1 dav1d" + +name: Test — dav1d AV1 Decode Roundtrip +description: AV1 roundtrip via SVT-AV1 encode → dav1d decode → SVT-AV1 re-encode +mode: oneshot +client: + input: + type: none + output: + type: video + +nodes: + colorbars: + kind: video::colorbars + params: + width: 320 + height: 240 + fps: 30 + frame_count: 30 + pixel_format: nv12 + draw_time: true + draw_time_use_pts: true + + svt_av1_encoder: + kind: video::svt_av1::encoder + params: + preset: 12 + low_latency: true + needs: colorbars + + dav1d_decoder: + kind: video::dav1d::decoder + needs: svt_av1_encoder + + svt_av1_reencoder: + kind: video::svt_av1::encoder + params: + preset: 12 + low_latency: true + needs: dav1d_decoder + + webm_muxer: + kind: containers::webm::muxer + params: + video_width: 320 + video_height: 240 + streaming_mode: live + needs: svt_av1_reencoder + + pacer: + kind: core::pacer + needs: webm_muxer + + http_output: + kind: streamkit::http_output + params: + content_type: 'video/webm; codecs="av1"' + needs: pacer diff --git a/samples/pipelines/test/fixtures/test_tone.ogg b/samples/pipelines/test/fixtures/test_tone.ogg new file mode 100644 index 00000000..818f8521 Binary files /dev/null and b/samples/pipelines/test/fixtures/test_tone.ogg differ diff --git a/samples/pipelines/test/fixtures/test_tone.ogg.license b/samples/pipelines/test/fixtures/test_tone.ogg.license new file mode 100644 index 00000000..45469f0a --- /dev/null +++ b/samples/pipelines/test/fixtures/test_tone.ogg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: © 2025 StreamKit Contributors + +SPDX-License-Identifier: CC0-1.0 diff --git a/samples/pipelines/test/nv_av1_colorbars/expected.toml b/samples/pipelines/test/nv_av1_colorbars/expected.toml new file mode 100644 index 00000000..287d611d --- /dev/null +++ b/samples/pipelines/test/nv_av1_colorbars/expected.toml @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Expected output metadata for nv_av1_colorbars.yml +# Requires: skit built with --features nvcodec + NVIDIA GPU + +requires_node = "video::nv::av1_encoder" +output_extension = ".webm" +codec_name = "av1" +width = 320 +height = 240 +container_format = "matroska,webm" +pix_fmt = "yuv420p" diff --git a/samples/pipelines/test/nv_av1_colorbars/pipeline.yml b/samples/pipelines/test/nv_av1_colorbars/pipeline.yml new file mode 100644 index 00000000..053654b8 --- /dev/null +++ b/samples/pipelines/test/nv_av1_colorbars/pipeline.yml @@ -0,0 +1,55 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Test pipeline: NVENC AV1/WebM colorbars (30 frames = 1 second at 30fps). +# Used by headless pipeline validation tests. +# +# Requires: skit built with --features nvcodec +# NVIDIA GPU with NVENC AV1 support (Ada Lovelace / RTX 40+) + +name: Test — NVENC AV1 Color Bars +description: Short NVENC AV1/WebM colorbars for automated testing +mode: oneshot +client: + input: + type: none + output: + type: video + +nodes: + colorbars: + kind: video::colorbars + params: + width: 320 + height: 240 + fps: 30 + frame_count: 30 + pixel_format: nv12 + draw_time: true + draw_time_use_pts: true + + nv_av1_encoder: + kind: video::nv::av1_encoder + params: + bitrate: 1000000 + framerate: 30 + needs: colorbars + + webm_muxer: + kind: containers::webm::muxer + params: + video_width: 320 + video_height: 240 + streaming_mode: live + needs: nv_av1_encoder + + pacer: + kind: core::pacer + needs: webm_muxer + + http_output: + kind: streamkit::http_output + params: + content_type: 'video/webm; codecs="av1"' + needs: pacer diff --git a/samples/pipelines/test/openh264_colorbars/expected.toml b/samples/pipelines/test/openh264_colorbars/expected.toml new file mode 100644 index 00000000..21388536 --- /dev/null +++ b/samples/pipelines/test/openh264_colorbars/expected.toml @@ -0,0 +1,12 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Expected output metadata for openh264_colorbars.yml + +output_extension = ".mp4" +codec_name = "h264" +width = 320 +height = 240 +container_format = "mov,mp4,m4a,3gp,3g2,mj2" +pix_fmt = "yuv420p" diff --git a/samples/pipelines/test/openh264_colorbars/pipeline.yml b/samples/pipelines/test/openh264_colorbars/pipeline.yml new file mode 100644 index 00000000..e42618cc --- /dev/null +++ b/samples/pipelines/test/openh264_colorbars/pipeline.yml @@ -0,0 +1,48 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Test pipeline: OpenH264/MP4 colorbars (30 frames = 1 second at 30fps). +# Used by headless pipeline validation tests. + +name: Test — OpenH264 Color Bars +description: Short H.264/MP4 colorbars for automated testing +mode: oneshot +client: + input: + type: none + output: + type: video + +nodes: + colorbars: + kind: video::colorbars + params: + width: 320 + height: 240 + fps: 30 + frame_count: 30 + pixel_format: nv12 + draw_time: true + draw_time_use_pts: true + + h264_encoder: + kind: video::openh264::encoder + params: + bitrate_kbps: 1000 + max_frame_rate: 30.0 + needs: colorbars + + mp4_muxer: + kind: containers::mp4::muxer + params: + mode: stream + video_width: 320 + video_height: 240 + needs: h264_encoder + + http_output: + kind: streamkit::http_output + params: + content_type: 'video/mp4; codecs="avc1.42c01f"' + needs: mp4_muxer diff --git a/samples/pipelines/test/opus_mp4/expected.toml b/samples/pipelines/test/opus_mp4/expected.toml new file mode 100644 index 00000000..81badb0e --- /dev/null +++ b/samples/pipelines/test/opus_mp4/expected.toml @@ -0,0 +1,10 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +output_extension = ".mp4" +container_format = "mov,mp4,m4a,3gp,3g2,mj2" +audio_codec = "opus" +sample_rate = 48000 +channels = 1 +input_file = "../fixtures/test_tone.ogg" diff --git a/samples/pipelines/test/opus_mp4/pipeline.yml b/samples/pipelines/test/opus_mp4/pipeline.yml new file mode 100644 index 00000000..0ce01cd3 --- /dev/null +++ b/samples/pipelines/test/opus_mp4/pipeline.yml @@ -0,0 +1,47 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Test pipeline: Opus in MP4 container. +# Exercises: ogg demuxer → opus decoder → opus encoder → mp4 muxer (file mode) +# Used by headless pipeline validation tests. + +name: Test — Opus in MP4 +description: Decodes uploaded Ogg/Opus, re-encodes to Opus, muxes into MP4 +mode: oneshot +client: + input: + type: file_upload + accept: "audio/opus" + output: + type: audio + +nodes: + http_input: + kind: streamkit::http_input + + ogg_demuxer: + kind: containers::ogg::demuxer + needs: http_input + + opus_decoder: + kind: audio::opus::decoder + needs: ogg_demuxer + + opus_encoder: + kind: audio::opus::encoder + needs: opus_decoder + + mp4_muxer: + kind: containers::mp4::muxer + params: + mode: file + sample_rate: 48000 + channels: 1 + needs: opus_encoder + + http_output: + kind: streamkit::http_output + params: + content_type: 'audio/mp4; codecs="opus"' + needs: mp4_muxer diff --git a/samples/pipelines/test/opus_roundtrip/expected.toml b/samples/pipelines/test/opus_roundtrip/expected.toml new file mode 100644 index 00000000..b4c40adc --- /dev/null +++ b/samples/pipelines/test/opus_roundtrip/expected.toml @@ -0,0 +1,10 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +output_extension = ".ogg" +container_format = "ogg" +audio_codec = "opus" +sample_rate = 48000 +channels = 1 +input_file = "../fixtures/test_tone.ogg" diff --git a/samples/pipelines/test/opus_roundtrip/pipeline.yml b/samples/pipelines/test/opus_roundtrip/pipeline.yml new file mode 100644 index 00000000..0419fa3a --- /dev/null +++ b/samples/pipelines/test/opus_roundtrip/pipeline.yml @@ -0,0 +1,44 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Test pipeline: Opus encode/decode roundtrip via Ogg container. +# Exercises: ogg demuxer → opus decoder → opus encoder → ogg muxer +# Used by headless pipeline validation tests. + +name: Test — Opus Roundtrip (Ogg) +description: Decodes uploaded Ogg/Opus, re-encodes to Opus, muxes into Ogg +mode: oneshot +client: + input: + type: file_upload + accept: "audio/opus" + output: + type: audio + +nodes: + http_input: + kind: streamkit::http_input + + ogg_demuxer: + kind: containers::ogg::demuxer + needs: http_input + + opus_decoder: + kind: audio::opus::decoder + needs: ogg_demuxer + + opus_encoder: + kind: audio::opus::encoder + needs: opus_decoder + + ogg_muxer: + kind: containers::ogg::muxer + params: + channels: 1 + chunk_size: 65536 + needs: opus_encoder + + http_output: + kind: streamkit::http_output + needs: ogg_muxer diff --git a/samples/pipelines/test/rav1e_colorbars/expected.toml b/samples/pipelines/test/rav1e_colorbars/expected.toml new file mode 100644 index 00000000..04fc7cb1 --- /dev/null +++ b/samples/pipelines/test/rav1e_colorbars/expected.toml @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +requires_node = "video::av1::encoder" +output_extension = ".webm" +codec_name = "av1" +width = 320 +height = 240 +container_format = "matroska,webm" +pix_fmt = "yuv420p" diff --git a/samples/pipelines/test/rav1e_colorbars/pipeline.yml b/samples/pipelines/test/rav1e_colorbars/pipeline.yml new file mode 100644 index 00000000..df1fa0da --- /dev/null +++ b/samples/pipelines/test/rav1e_colorbars/pipeline.yml @@ -0,0 +1,53 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Test pipeline: rav1e AV1 encoder → WebM (30 frames = 1 second at 30fps). +# Exercises: colorbars → video::av1::encoder (rav1e, pure-Rust) → webm muxer +# Used by headless pipeline validation tests. + +name: Test — rav1e AV1 Color Bars +description: Short rav1e AV1/WebM colorbars for automated testing +mode: oneshot +client: + input: + type: none + output: + type: video + +nodes: + colorbars: + kind: video::colorbars + params: + width: 320 + height: 240 + fps: 30 + frame_count: 30 + pixel_format: nv12 + draw_time: true + draw_time_use_pts: true + + av1_encoder: + kind: video::av1::encoder + params: + speed: 10 + low_latency: true + needs: colorbars + + webm_muxer: + kind: containers::webm::muxer + params: + video_width: 320 + video_height: 240 + streaming_mode: live + needs: av1_encoder + + pacer: + kind: core::pacer + needs: webm_muxer + + http_output: + kind: streamkit::http_output + params: + content_type: 'video/webm; codecs="av1"' + needs: pacer diff --git a/samples/pipelines/test/svt_av1_colorbars/expected.toml b/samples/pipelines/test/svt_av1_colorbars/expected.toml new file mode 100644 index 00000000..afaa3247 --- /dev/null +++ b/samples/pipelines/test/svt_av1_colorbars/expected.toml @@ -0,0 +1,11 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +requires_node = "video::svt_av1::encoder" +output_extension = ".webm" +codec_name = "av1" +width = 320 +height = 240 +container_format = "matroska,webm" +pix_fmt = "yuv420p" diff --git a/samples/pipelines/test/svt_av1_colorbars/pipeline.yml b/samples/pipelines/test/svt_av1_colorbars/pipeline.yml new file mode 100644 index 00000000..0004467e --- /dev/null +++ b/samples/pipelines/test/svt_av1_colorbars/pipeline.yml @@ -0,0 +1,54 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Test pipeline: SVT-AV1/WebM colorbars (30 frames = 1 second at 30fps). +# Used by headless pipeline validation tests. +# +# Requires: skit built with --features svt_av1 + +name: Test — SVT-AV1 Color Bars +description: Short SVT-AV1/WebM colorbars for automated testing +mode: oneshot +client: + input: + type: none + output: + type: video + +nodes: + colorbars: + kind: video::colorbars + params: + width: 320 + height: 240 + fps: 30 + frame_count: 30 + pixel_format: nv12 + draw_time: true + draw_time_use_pts: true + + svt_av1_encoder: + kind: video::svt_av1::encoder + params: + preset: 12 + low_latency: true + needs: colorbars + + webm_muxer: + kind: containers::webm::muxer + params: + video_width: 320 + video_height: 240 + streaming_mode: live + needs: svt_av1_encoder + + pacer: + kind: core::pacer + needs: webm_muxer + + http_output: + kind: streamkit::http_output + params: + content_type: 'video/webm; codecs="av1"' + needs: pacer diff --git a/samples/pipelines/test/vp9_colorbars/expected.toml b/samples/pipelines/test/vp9_colorbars/expected.toml new file mode 100644 index 00000000..2df03262 --- /dev/null +++ b/samples/pipelines/test/vp9_colorbars/expected.toml @@ -0,0 +1,12 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Expected output metadata for vp9_colorbars.yml + +output_extension = ".webm" +codec_name = "vp9" +width = 320 +height = 240 +container_format = "matroska,webm" +pix_fmt = "yuv420p" diff --git a/samples/pipelines/test/vp9_colorbars/pipeline.yml b/samples/pipelines/test/vp9_colorbars/pipeline.yml new file mode 100644 index 00000000..582d8d94 --- /dev/null +++ b/samples/pipelines/test/vp9_colorbars/pipeline.yml @@ -0,0 +1,49 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Test pipeline: VP9/WebM colorbars (30 frames = 1 second at 30fps). +# Used by headless pipeline validation tests. + +name: Test — VP9 Color Bars +description: Short VP9/WebM colorbars for automated testing +mode: oneshot +client: + input: + type: none + output: + type: video + +nodes: + colorbars: + kind: video::colorbars + params: + width: 320 + height: 240 + fps: 30 + frame_count: 30 + pixel_format: nv12 + draw_time: true + draw_time_use_pts: true + + vp9_encoder: + kind: video::vp9::encoder + needs: colorbars + + webm_muxer: + kind: containers::webm::muxer + params: + video_width: 320 + video_height: 240 + streaming_mode: live + needs: vp9_encoder + + pacer: + kind: core::pacer + needs: webm_muxer + + http_output: + kind: streamkit::http_output + params: + content_type: 'video/webm; codecs="vp9"' + needs: pacer diff --git a/samples/pipelines/test/vp9_roundtrip/expected.toml b/samples/pipelines/test/vp9_roundtrip/expected.toml new file mode 100644 index 00000000..b8322c5a --- /dev/null +++ b/samples/pipelines/test/vp9_roundtrip/expected.toml @@ -0,0 +1,10 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +output_extension = ".webm" +codec_name = "vp9" +width = 320 +height = 240 +container_format = "matroska,webm" +pix_fmt = "yuv420p" diff --git a/samples/pipelines/test/vp9_roundtrip/pipeline.yml b/samples/pipelines/test/vp9_roundtrip/pipeline.yml new file mode 100644 index 00000000..062d1804 --- /dev/null +++ b/samples/pipelines/test/vp9_roundtrip/pipeline.yml @@ -0,0 +1,58 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Test pipeline: VP9 encode → decode → re-encode roundtrip (30 frames). +# Exercises: colorbars → vp9 encoder → vp9 decoder → vp9 re-encoder → webm muxer +# Used by headless pipeline validation tests. + +name: Test — VP9 Encode/Decode Roundtrip +description: VP9 roundtrip via encode → decode → re-encode +mode: oneshot +client: + input: + type: none + output: + type: video + +nodes: + colorbars: + kind: video::colorbars + params: + width: 320 + height: 240 + fps: 30 + frame_count: 30 + pixel_format: nv12 + draw_time: true + draw_time_use_pts: true + + vp9_encoder: + kind: video::vp9::encoder + needs: colorbars + + vp9_decoder: + kind: video::vp9::decoder + needs: vp9_encoder + + vp9_reencoder: + kind: video::vp9::encoder + needs: vp9_decoder + + webm_muxer: + kind: containers::webm::muxer + params: + video_width: 320 + video_height: 240 + streaming_mode: live + needs: vp9_reencoder + + pacer: + kind: core::pacer + needs: webm_muxer + + http_output: + kind: streamkit::http_output + params: + content_type: 'video/webm; codecs="vp9"' + needs: pacer diff --git a/samples/pipelines/test/vulkan_video_h264_colorbars/expected.toml b/samples/pipelines/test/vulkan_video_h264_colorbars/expected.toml new file mode 100644 index 00000000..21b048d1 --- /dev/null +++ b/samples/pipelines/test/vulkan_video_h264_colorbars/expected.toml @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Expected output metadata for vulkan_video_h264_colorbars.yml +# Requires: skit built with --features vulkan_video + Vulkan-capable GPU + +requires_node = "video::vulkan_video::h264_encoder" +output_extension = ".mp4" +codec_name = "h264" +width = 320 +height = 240 +container_format = "mov,mp4,m4a,3gp,3g2,mj2" +pix_fmt = "yuv420p" diff --git a/samples/pipelines/test/vulkan_video_h264_colorbars/pipeline.yml b/samples/pipelines/test/vulkan_video_h264_colorbars/pipeline.yml new file mode 100644 index 00000000..46491815 --- /dev/null +++ b/samples/pipelines/test/vulkan_video_h264_colorbars/pipeline.yml @@ -0,0 +1,51 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +# Test pipeline: Vulkan Video H.264/MP4 colorbars (30 frames = 1 second at 30fps). +# Used by headless pipeline validation tests. +# +# Requires: skit built with --features vulkan_video +# Vulkan-capable GPU with H.264 encode support + +name: Test — Vulkan Video H.264 Color Bars +description: Short Vulkan Video H.264/MP4 colorbars for automated testing +mode: oneshot +client: + input: + type: none + output: + type: video + +nodes: + colorbars: + kind: video::colorbars + params: + width: 320 + height: 240 + fps: 30 + frame_count: 30 + pixel_format: nv12 + draw_time: true + draw_time_use_pts: true + + vk_h264_encoder: + kind: video::vulkan_video::h264_encoder + params: + bitrate: 1000000 + framerate: 30 + needs: colorbars + + mp4_muxer: + kind: containers::mp4::muxer + params: + mode: stream + video_width: 320 + video_height: 240 + needs: vk_h264_encoder + + http_output: + kind: streamkit::http_output + params: + content_type: 'video/mp4; codecs="avc1.42c01f"' + needs: mp4_muxer diff --git a/tests/pipeline-validation/Cargo.lock b/tests/pipeline-validation/Cargo.lock new file mode 100644 index 00000000..d9d09f1a --- /dev/null +++ b/tests/pipeline-validation/Cargo.lock @@ -0,0 +1,1978 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" + +[[package]] +name = "camino" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" + +[[package]] +name = "cc" +version = "1.2.60" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "clap" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b193af5b67834b676abd72466a96c1024e6a6ad978a1f484bd90b85c94041351" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1110bd8a634a1ab8cb04345d8d878267d57c3cf1b38d91b71af6686408bbca6a" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "clap_lex" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" + +[[package]] +name = "colorchoice" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "datatest-stable" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a867d7322eb69cf3a68a5426387a25b45cb3b9c5ee41023ee6cea92e2afadd82" +dependencies = [ + "camino", + "fancy-regex", + "libtest-mimic", + "walkdir", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "escape8259" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5692dd7b5a1978a5aeb0ce83b7655c58ca8efdcb79d21036ea249da95afec2c6" + +[[package]] +name = "fancy-regex" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e24cb5a94bcae1e5408b0effca5cd7172ea3c5755049c5f3af4cd283a165298" +dependencies = [ + "bit-set", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "fastrand" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" + +[[package]] +name = "ffprobe" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ffef835e1f9ac151db5bb2adbb95c9dfe1f315f987f011dd89cd655b4e9a52c" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-core", + "futures-io", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "wasip2", + "wasip3", +] + +[[package]] +name = "h2" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f44da3a8150a6703ed5d34e164b875fd14c2cdab9af1252a9a1020bde2bdc54" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f467dd6dccf739c208452f8014c75c18bb8301b050ad1cfb27153803edb0f51" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "rustls-pki-types", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[package]] +name = "hyper-tls" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" +dependencies = [ + "bytes", + "http-body-util", + "hyper", + "hyper-util", + "native-tls", + "tokio", + "tokio-native-tls", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "system-configuration", + "tokio", + "tower-service", + "tracing", + "windows-registry", +] + +[[package]] +name = "icu_collections" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown 0.17.0", + "serde", + "serde_core", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "iri-string" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25e659a4bb38e810ebc252e53b5814ff908a8c58c2a9ce2fae1bbec24cbf4e20" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "js-sys" +version = "0.3.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2964e92d1d9dc3364cae4d718d93f227e3abb088e747d92e0395bfdedf1c12ca" +dependencies = [ + "cfg-if", + "futures-util", + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "libc" +version = "0.2.184" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af" + +[[package]] +name = "libtest-mimic" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14e6ba06f0ade6e504aff834d7c34298e5155c6baca353cc6a4aaff2f9fd7f33" +dependencies = [ + "anstream", + "anstyle", + "clap", + "escape8259", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "mio" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "native-tls" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "openssl" +version = "0.10.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "951c002c75e16ea2c65b8c7e4d3d51d5530d8dfa7d060b4776828c88cfb18ecf" +dependencies = [ + "bitflags", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "openssl-sys" +version = "0.9.112" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57d55af3b3e226502be1526dfdba67ab0e9c96fc293004e79576b2b9edb0dbdb" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pipeline-validation" +version = "0.1.0" +dependencies = [ + "datatest-stable", + "ffprobe", + "reqwest", + "serde", + "tempfile", + "toml", +] + +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +dependencies = [ + "zerovec", +] + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "reqwest" +version = "0.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64", + "bytes", + "encoding_rs", + "futures-channel", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-tls", + "hyper-util", + "js-sys", + "log", + "mime", + "mime_guess", + "native-tls", + "percent-encoding", + "pin-project-lite", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-native-tls", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4" +dependencies = [ + "once_cell", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" +dependencies = [ + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20a6af516fea4b20eccceaf166e8aa666ac996208e8a644ce3ef5aa783bc7cd4" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "system-configuration" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" +dependencies = [ + "bitflags", + "core-foundation 0.9.4", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.2", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tokio" +version = "1.51.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f66bf9585cda4b724d3e78ab34b73fb2bbaba9011b9bfdf69dc836382ea13b8c" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-native-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +dependencies = [ + "native-tls", + "tokio", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + +[[package]] +name = "toml_datetime" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_edit" +version = "0.22.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" +dependencies = [ + "indexmap", + "serde", + "serde_spanned", + "toml_datetime", + "toml_write", + "winnow", +] + +[[package]] +name = "toml_write" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +dependencies = [ + "bitflags", + "bytes", + "futures-util", + "http", + "http-body", + "iri-string", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-core", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "unicase" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.118" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf938a0bacb0469e83c1e148908bd7d5a6010354cf4fb73279b7447422e3a89" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.68" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f371d383f2fb139252e0bfac3b81b265689bf45b6874af544ffa4c975ac1ebf8" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.118" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eeff24f84126c0ec2db7a449f0c2ec963c6a49efe0698c4242929da037ca28ed" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.118" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d08065faf983b2b80a79fd87d8254c409281cf7de75fc4b773019824196c904" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.118" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fd04d9e306f1907bd13c6361b5c6bfc7b3b3c095ed3f8a9246390f8dbdee129" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags", + "hashbrown 0.15.5", + "indexmap", + "semver", +] + +[[package]] +name = "web-sys" +version = "0.3.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f2dfbb17949fa2088e5d39408c48368947b86f7834484e87b73de55bc14d97d" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" +dependencies = [ + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck", + "indexmap", + "prettyplease", + "syn", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags", + "indexmap", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "yoke" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zerofrom" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69faa1f2a1ea75661980b013019ed6687ed0e83d069bc1114e2cc74c6c04c4df" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" diff --git a/tests/pipeline-validation/Cargo.toml b/tests/pipeline-validation/Cargo.toml new file mode 100644 index 00000000..26f57935 --- /dev/null +++ b/tests/pipeline-validation/Cargo.toml @@ -0,0 +1,30 @@ +# SPDX-FileCopyrightText: © 2025 StreamKit Contributors +# +# SPDX-License-Identifier: MPL-2.0 + +[package] +name = "pipeline-validation" +version = "0.1.0" +edition = "2021" +publish = false +description = "Headless pipeline validation tests for StreamKit" + +# No library crate — this package only contains integration tests. +[lib] +name = "pipeline_validation" +path = "src/lib.rs" + +[[test]] +name = "validate" +path = "tests/validate.rs" +harness = false + +[dependencies] +ffprobe = "0.4" +reqwest = { version = "0.12", features = ["blocking", "multipart", "json"] } +serde = { version = "1", features = ["derive"] } +toml = "0.8" +tempfile = "3" + +[dev-dependencies] +datatest-stable = "0.3.3" diff --git a/tests/pipeline-validation/src/lib.rs b/tests/pipeline-validation/src/lib.rs new file mode 100644 index 00000000..2d307789 --- /dev/null +++ b/tests/pipeline-validation/src/lib.rs @@ -0,0 +1,300 @@ +// SPDX-FileCopyrightText: © 2025 StreamKit Contributors +// +// SPDX-License-Identifier: MPL-2.0 + +//! Headless pipeline validation helpers for StreamKit. +//! +//! This crate provides utilities for running oneshot pipelines against a live +//! `skit` server, capturing the output, and validating it with `ffprobe`. +//! No browser required. +//! +//! # Architecture +//! +//! Each test case is defined by a pair of files in `samples/pipelines/test/`: +//! +//! - `.yml` — the pipeline YAML to POST to `/api/v1/process` +//! - `.toml` — expected output metadata (codec, resolution, container) +//! +//! The test harness discovers all `.yml` files, loads the companion `.toml`, +//! runs the pipeline, and validates the output with `ffprobe`. + +use std::collections::HashSet; +use std::io::Write; +use std::path::Path; + +use serde::Deserialize; + +/// Expected output metadata for a pipeline test case. +/// +/// Lives in a `.toml` sidecar file alongside each test pipeline YAML. +#[derive(Debug, Deserialize)] +pub struct Expected { + /// File extension for the output (e.g. ".webm", ".mp4", ".ogg"). + pub output_extension: String, + + /// Expected container format name from ffprobe (e.g. "matroska,webm", "mov,mp4,m4a,3gp,3g2,mj2"). + pub container_format: String, + + /// Optional: node kind that must be registered in the server for this test + /// to run. If the node is missing, the test is skipped (returns Ok). + pub requires_node: Option, + + // --- Video expectations (optional — omit for audio-only tests) --- + + /// Expected video codec name as reported by ffprobe (e.g. "vp9", "h264", "av1"). + pub codec_name: Option, + + /// Expected video width in pixels. + pub width: Option, + + /// Expected video height in pixels. + pub height: Option, + + /// Optional: expected pixel format (e.g. "yuv420p"). + pub pix_fmt: Option, + + // --- Audio expectations (optional — omit for video-only tests) --- + + /// Expected audio codec name as reported by ffprobe (e.g. "opus", "mp3", "flac"). + pub audio_codec: Option, + + /// Expected audio sample rate in Hz (e.g. 48000). + pub sample_rate: Option, + + /// Expected number of audio channels (e.g. 2). + pub channels: Option, + + // --- Input file (optional — for pipelines that accept file uploads) --- + + /// Relative path (from the test directory) to an input file to upload. + /// If set, the pipeline will be run with a file upload instead of no input. + pub input_file: Option, +} + +/// Get the base URL for the skit server from environment. +/// +/// Checks `PIPELINE_TEST_URL` first, then `E2E_BASE_URL`, and defaults to +/// `http://127.0.0.1:4545`. +pub fn get_base_url() -> String { + std::env::var("PIPELINE_TEST_URL") + .or_else(|_| std::env::var("E2E_BASE_URL")) + .unwrap_or_else(|_| "http://127.0.0.1:4545".to_string()) +} + +/// Query the server's node schema endpoint to discover which node kinds are +/// registered. Returns a set of node kind strings. +/// +/// This is used to skip tests for HW codecs that aren't compiled into the +/// running server binary (e.g. `video::nv::av1_encoder`). +pub fn get_available_nodes(base_url: &str) -> Result, String> { + let url = format!("{base_url}/api/v1/schema/nodes"); + let response = reqwest::blocking::get(&url) + .map_err(|e| format!("Failed to query node schema at {url}: {e}"))?; + + if !response.status().is_success() { + return Err(format!( + "Node schema request failed with status {}", + response.status() + )); + } + + #[derive(Deserialize)] + struct NodeInfo { + kind: String, + } + + let nodes: Vec = response + .json() + .map_err(|e| format!("Failed to parse node schema JSON: {e}"))?; + + Ok(nodes.into_iter().map(|n| n.kind).collect()) +} + +/// Run a oneshot pipeline against the skit server. +/// +/// Posts the pipeline YAML as a multipart form to `/api/v1/process` and +/// saves the streamed response body to a temporary file. +/// +/// If `input_file` is `Some`, the file is attached as the `media` part of the +/// multipart form (for pipelines that expect `client.input.type: file_upload`). +/// +/// Returns the path to the output file on success. +pub fn run_pipeline( + base_url: &str, + yaml_contents: &str, + output_extension: &str, + input_file: Option<&Path>, +) -> Result { + let url = format!("{base_url}/api/v1/process"); + + let mut form = reqwest::blocking::multipart::Form::new() + .text("config", yaml_contents.to_string()); + + // Attach the input file if provided. + if let Some(path) = input_file { + let file_bytes = std::fs::read(path) + .map_err(|e| format!("Failed to read input file {}: {e}", path.display()))?; + let file_name = path + .file_name() + .and_then(|n| n.to_str()) + .unwrap_or("input") + .to_string(); + let part = reqwest::blocking::multipart::Part::bytes(file_bytes) + .file_name(file_name); + form = form.part("media", part); + } + + let client = reqwest::blocking::Client::builder() + .timeout(std::time::Duration::from_secs(120)) + .build() + .map_err(|e| format!("Failed to create HTTP client: {e}"))?; + + let response = client + .post(&url) + .multipart(form) + .send() + .map_err(|e| format!("Pipeline request to {url} failed: {e}"))?; + + if !response.status().is_success() { + let status = response.status(); + let body = response + .text() + .unwrap_or_else(|_| "".to_string()); + return Err(format!("Pipeline returned {status}: {body}")); + } + + // Stream response to a temp file. + let mut tmp = tempfile::Builder::new() + .suffix(output_extension) + .tempfile() + .map_err(|e| format!("Failed to create temp file: {e}"))?; + + let bytes = response + .bytes() + .map_err(|e| format!("Failed to read response body: {e}"))?; + + tmp.write_all(&bytes) + .map_err(|e| format!("Failed to write output to temp file: {e}"))?; + + tmp.flush() + .map_err(|e| format!("Failed to flush temp file: {e}"))?; + + Ok(tmp) +} + +/// Validate a pipeline's output file against the expected metadata. +/// +/// Runs `ffprobe` against the output file and checks codec, resolution, +/// container format, and audio properties against the [`Expected`] values. +pub fn validate_output(output_path: &Path, expected: &Expected) -> Result<(), String> { + let probe = ffprobe::ffprobe(output_path) + .map_err(|e| format!("ffprobe failed on {}: {e}", output_path.display()))?; + + // Check container format. + let format_name = &probe.format.format_name; + if !format_name.contains(&expected.container_format) + && !expected.container_format.contains(format_name.as_str()) + { + return Err(format!( + "Container mismatch: expected format containing '{}', got '{}'", + expected.container_format, format_name + )); + } + + // --- Video validation (if video expectations are set) --- + if let Some(ref expected_codec) = expected.codec_name { + let video = probe + .streams + .iter() + .find(|s| s.codec_type.as_deref() == Some("video")) + .ok_or("No video stream found in output (expected video codec)")?; + + let codec_name = video.codec_name.as_deref().unwrap_or(""); + if codec_name != expected_codec.as_str() { + return Err(format!( + "Video codec mismatch: expected '{}', got '{}'", + expected_codec, codec_name + )); + } + + if let Some(expected_w) = expected.width { + let width = video.width.unwrap_or(0) as u32; + if width != expected_w { + return Err(format!( + "Video width mismatch: expected {expected_w}, got {width}" + )); + } + } + + if let Some(expected_h) = expected.height { + let height = video.height.unwrap_or(0) as u32; + if height != expected_h { + return Err(format!( + "Video height mismatch: expected {expected_h}, got {height}" + )); + } + } + + if let Some(ref expected_pix_fmt) = expected.pix_fmt { + let pix_fmt = video.pix_fmt.as_deref().unwrap_or(""); + if pix_fmt != expected_pix_fmt.as_str() { + return Err(format!( + "Pixel format mismatch: expected '{}', got '{}'", + expected_pix_fmt, pix_fmt + )); + } + } + } + + // --- Audio validation (if audio expectations are set) --- + if let Some(ref expected_audio_codec) = expected.audio_codec { + let audio = probe + .streams + .iter() + .find(|s| s.codec_type.as_deref() == Some("audio")) + .ok_or("No audio stream found in output (expected audio codec)")?; + + let codec_name = audio.codec_name.as_deref().unwrap_or(""); + if codec_name != expected_audio_codec.as_str() { + return Err(format!( + "Audio codec mismatch: expected '{}', got '{}'", + expected_audio_codec, codec_name + )); + } + + if let Some(expected_sr) = expected.sample_rate { + // ffprobe reports sample_rate as a string in the stream. + let actual_sr = audio + .sample_rate + .as_deref() + .and_then(|s| s.parse::().ok()) + .unwrap_or(0); + if actual_sr != expected_sr { + return Err(format!( + "Sample rate mismatch: expected {expected_sr}, got {actual_sr}" + )); + } + } + + if let Some(expected_ch) = expected.channels { + let actual_ch = audio.channels.unwrap_or(0) as u32; + if actual_ch != expected_ch { + return Err(format!( + "Channel count mismatch: expected {expected_ch}, got {actual_ch}" + )); + } + } + } + + // Ensure at least one stream type was validated. + if expected.codec_name.is_none() && expected.audio_codec.is_none() { + return Err( + "Expected TOML must specify at least one of 'codec_name' (video) or 'audio_codec' (audio)" + .to_string(), + ); + } + + Ok(()) +} + + diff --git a/tests/pipeline-validation/tests/validate.rs b/tests/pipeline-validation/tests/validate.rs new file mode 100644 index 00000000..82f1f12d --- /dev/null +++ b/tests/pipeline-validation/tests/validate.rs @@ -0,0 +1,112 @@ +// SPDX-FileCopyrightText: © 2025 StreamKit Contributors +// +// SPDX-License-Identifier: MPL-2.0 + +//! Headless pipeline validation test harness. +//! +//! Discovers all `pipeline.yml` files under `samples/pipelines/test//`, +//! loads the sibling `expected.toml`, runs the pipeline against a live `skit` +//! server, and validates the output with `ffprobe`. +//! +//! # Usage +//! +//! ```bash +//! # Start skit, then run tests: +//! PIPELINE_TEST_URL=http://127.0.0.1:4545 \ +//! cargo test --manifest-path tests/pipeline-validation/Cargo.toml +//! +//! # Or via justfile: +//! just test-pipelines http://127.0.0.1:4545 +//! ``` + +#![allow(clippy::disallowed_macros)] // Test binary — no logging crate available. + +use std::collections::HashSet; +use std::path::Path; +use std::sync::OnceLock; + +use pipeline_validation::{ + get_available_nodes, get_base_url, run_pipeline, validate_output, Expected, +}; + +/// Lazily resolved base URL for the skit server. +fn base_url() -> &'static str { + static URL: OnceLock = OnceLock::new(); + URL.get_or_init(get_base_url) +} + +/// Lazily resolved set of available node kinds on the server. +fn available_nodes() -> &'static HashSet { + static NODES: OnceLock> = OnceLock::new(); + NODES.get_or_init(|| { + get_available_nodes(base_url()).unwrap_or_else(|err| { + eprintln!("WARNING: Could not query available nodes: {err}"); + eprintln!(" HW codec tests will be skipped."); + eprintln!(" Is skit running at {}?", base_url()); + HashSet::new() + }) + }) +} + +/// The main test function called by `datatest-stable` for each `pipeline.yml`. +/// +/// For each test directory it: +/// 1. Loads the sibling `expected.toml` +/// 2. Checks if the required node kind is available (skips if not) +/// 3. POSTs the pipeline to the server +/// 4. Saves the response to a temp file +/// 5. Validates the output with `ffprobe` +fn validate_pipeline(path: &Path, yaml: String) -> datatest_stable::Result<()> { + // Load sibling expectations file from the same directory. + let test_dir = path.parent().expect("pipeline.yml must be inside a test directory"); + let expected_path = test_dir.join("expected.toml"); + let expected_toml = std::fs::read_to_string(&expected_path).map_err(|e| { + format!( + "Missing expectations file '{}': {e}\n\ + Each test pipeline YAML needs a companion .toml with expected output metadata.", + expected_path.display() + ) + })?; + + let expected: Expected = toml::from_str(&expected_toml).map_err(|e| { + format!( + "Invalid expectations file '{}': {e}", + expected_path.display() + ) + })?; + + // Check if the required node is available (skip gracefully if not). + if let Some(ref required) = expected.requires_node { + if !available_nodes().contains(required.as_str()) { + eprintln!( + "SKIP: '{}' requires node '{}' which is not available on this server", + path.display(), + required + ); + return Ok(()); + } + } + + let test_name = test_dir + .file_name() + .map(|n| n.to_string_lossy().to_string()) + .unwrap_or_default(); + + // Resolve the input file path (if any) relative to the test directory. + let input_file = expected.input_file.as_ref().map(|rel| test_dir.join(rel)); + let input_ref = input_file.as_deref(); + + // Run the pipeline. + let output = run_pipeline(base_url(), &yaml, &expected.output_extension, input_ref) + .map_err(|e| format!("Pipeline '{test_name}' failed: {e}"))?; + + // Validate with ffprobe. + validate_output(output.path(), &expected) + .map_err(|e| format!("Validation failed for '{test_name}': {e}"))?; + + Ok(()) +} + +datatest_stable::harness! { + { test = validate_pipeline, root = "../../samples/pipelines/test", pattern = r"pipeline\.yml$" }, +}