diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6b5f6dd..8d99d19 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -207,3 +207,10 @@ jobs:
- run: ./gradlew test verifyPlugin --no-daemon
env:
KTAV_LSP_SMOKE_BINARY: ${{ github.workspace }}/lsp/target/release/ktav-lsp
+ - uses: actions/upload-artifact@v4
+ with:
+ name: intellij-distribution-evidence
+ path: |
+ intellij/build/distributions/*.zip
+ intellij/build/license-inventory/plugin-distribution.json
+ if-no-files-found: error
diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml
new file mode 100644
index 0000000..ce204ed
--- /dev/null
+++ b/.github/workflows/licenses.yml
@@ -0,0 +1,67 @@
+name: License checks
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+
+permissions:
+ contents: read
+
+jobs:
+ lsp-licenses:
+ name: LSP Cargo dependency licenses
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: EmbarkStudios/cargo-deny-action@b66acf5e9fe20f8aba065be86778a8a4c846f902
+ with:
+ manifest-path: ./lsp/Cargo.toml
+ arguments: --all-features --locked
+ command: check licenses
+
+ vscode-licenses:
+ name: VS Code and docs dependency licenses
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ - name: Install without lifecycle scripts
+ working-directory: vscode
+ run: npm ci --ignore-scripts
+ - run: node --test tests/npm-license-policy.test.mjs
+ - run: node ci/check-npm-licenses.mjs
+ - name: Build VSIX without publishing or signing
+ working-directory: vscode
+ run: npx --no-install vsce package --out "$RUNNER_TEMP/ktav.vsix"
+ - name: Check VSIX dependencies and notices
+ run: python ci/check-vsix-licenses.py "$RUNNER_TEMP/ktav.vsix"
+
+ intellij-licenses:
+ name: IntelliJ Gradle dependency licenses
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
+ with:
+ distribution: temurin
+ java-version: '17'
+ - name: Check IntelliJ distribution guard regressions
+ run: python3 -I -m unittest discover -s ci -p test_intellij_distribution.py -v
+ - name: Check tooling evidence guard regressions
+ run: python3 -I -m unittest discover -s ci -p test_tooling_license_evidence.py -v
+ - name: Check SDK evidence guard regressions
+ run: python3 -I -m unittest discover -s ci -p test_sdk_license_evidence.py -v
+ - name: Check Gradle configurations and buildscript dependencies
+ working-directory: intellij
+ run: ./gradlew --no-daemon --no-parallel --no-configure-on-demand -I ../ci/license-init.gradle licenseArtifactInventory checkLicense
+ - uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: intellij-license-report
+ path: |
+ intellij/build/reports/dependency-license
+ intellij/build/license-inventory
+ if-no-files-found: warn
diff --git a/.github/workflows/lsp-distribution-check.yml b/.github/workflows/lsp-distribution-check.yml
new file mode 100644
index 0000000..05d3f35
--- /dev/null
+++ b/.github/workflows/lsp-distribution-check.yml
@@ -0,0 +1,96 @@
+name: LSP distribution contract guards
+
+on:
+ pull_request:
+
+permissions:
+ contents: read
+
+jobs:
+ payloads:
+ uses: ./.github/workflows/lsp-licensed-payloads.yml
+ with:
+ source_ref: 2618bf1232f95da464a5cd407cc247ebb76acddd
+ vsix:
+ name: Verify actual VSIX legal and source delivery
+ needs: payloads
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: recursive
+ persist-credentials: false
+ - uses: actions/download-artifact@v4
+ with:
+ name: lsp-plugin-binaries
+ path: vscode/bin
+ - name: Restore executable modes lost by artifact transport
+ run: chmod +x vscode/bin/{linux-x64,linux-arm64,darwin-x64,darwin-arm64}/ktav-lsp
+ - uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: npm
+ cache-dependency-path: vscode/package-lock.json
+ - name: Build and package actual extension without publishing
+ working-directory: vscode
+ run: |
+ npm ci
+ npm run sync-grammars
+ npm run test:unit
+ npx vsce package --out ktav-license-check.vsix
+ - name: Verify existing runtime guard and complete LSP payloads
+ run: |
+ python3 -I scripts/check_lsp_plugin_zip.py vscode/ktav-license-check.vsix vsix > "$RUNNER_TEMP/vsix-lsp-distribution.json"
+ python3 -I vscode/src/test/vsix/vsix_archive.py vscode/ktav-license-check.vsix "$(node -p "require('./vscode/package.json').version")"
+ - uses: actions/upload-artifact@v4
+ with:
+ name: lsp-verified-vsix
+ path: |
+ vscode/ktav-license-check.vsix
+ ${{ runner.temp }}/vsix-lsp-distribution.json
+ if-no-files-found: error
+ intellij:
+ name: Verify actual IntelliJ legal and source delivery
+ needs: payloads
+ runs-on: ubuntu-latest
+ env:
+ KTAV_BUILD_STAMP: license-check
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: recursive
+ persist-credentials: false
+ - uses: actions/download-artifact@v4
+ with:
+ name: lsp-plugin-binaries
+ path: intellij/bin
+ - name: Restore executable modes lost by artifact transport
+ run: chmod +x intellij/bin/{linux-x64,linux-arm64,darwin-x64,darwin-arm64}/ktav-lsp
+ - uses: actions/setup-java@v4
+ with:
+ distribution: temurin
+ java-version: '17'
+ - uses: gradle/actions/setup-gradle@v4
+ - name: Build and verify actual plugin without publishing
+ working-directory: intellij
+ run: ./gradlew --no-daemon --no-parallel --no-configure-on-demand -I ../ci/license-init.gradle licenseArtifactInventory checkLicense test checkIntellijDistribution
+ - name: Require all six complete platform payloads in actual ZIP
+ shell: python
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ archives = list(Path('intellij/build/distributions').glob('*.zip'))
+ if len(archives) != 1:
+ raise SystemExit('expected exactly one actual IntelliJ ZIP')
+ report = subprocess.check_output([sys.executable, '-I', 'scripts/check_lsp_plugin_zip.py', str(archives[0]), 'intellij'])
+ (Path(os.environ['RUNNER_TEMP']) / 'intellij-lsp-distribution.json').write_bytes(report)
+ - uses: actions/upload-artifact@v4
+ with:
+ name: lsp-verified-intellij
+ path: |
+ intellij/build/distributions/*.zip
+ intellij/build/license-inventory/plugin-distribution.json
+ ${{ runner.temp }}/intellij-lsp-distribution.json
+ if-no-files-found: error
diff --git a/.github/workflows/lsp-licensed-payloads.yml b/.github/workflows/lsp-licensed-payloads.yml
new file mode 100644
index 0000000..a8c1f62
--- /dev/null
+++ b/.github/workflows/lsp-licensed-payloads.yml
@@ -0,0 +1,87 @@
+name: Licensed LSP payloads
+
+on:
+ workflow_call:
+ inputs:
+ source_ref:
+ description: Immutable 0.8.1 source commit to build
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+jobs:
+ contract:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ persist-credentials: false
+ - name: Require immutable source selection
+ shell: python
+ env:
+ SOURCE_REF: ${{ inputs.source_ref }}
+ run: |
+ import os
+ import re
+ if not re.fullmatch('[0-9a-f]{40}', os.environ['SOURCE_REF']):
+ raise SystemExit('licensed LSP producer requires immutable source SHA')
+ - name: Verify required legal/source roles and plugin remapping
+ run: python3 -I -m unittest discover -s ci -p 'test_lsp_distribution*.py' -v
+ - name: Verify existing IntelliJ archive guards
+ run: python3 -I -m unittest discover -s ci -p test_intellij_distribution.py -v
+ - name: Verify idempotent notice-only source overlay
+ run: python3 -I -m unittest discover -s ci -p test_lsp_notice_overlay.py -v
+ gnu:
+ name: GNU notices and matching source
+ needs: contract
+ uses: ./.github/workflows/lsp-notice-check.yml
+ with:
+ source_ref: ${{ inputs.source_ref }}
+ windows:
+ name: Windows source-backed notices
+ needs: contract
+ uses: ./.github/workflows/windows-gnullvm-check.yml
+ with:
+ source_ref: ${{ inputs.source_ref }}
+ macos:
+ name: macOS resource and system-input evidence
+ needs: contract
+ uses: ./.github/workflows/macos-notice-check.yml
+ with:
+ source_ref: ${{ inputs.source_ref }}
+ organize:
+ name: Preserve complete plugin binary payloads
+ needs: [gnu, windows, macos]
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ persist-credentials: false
+ - uses: actions/download-artifact@v4
+ with:
+ pattern: lsp-distribution-*
+ path: ${{ runner.temp }}/lsp-plugin-inputs
+ merge-multiple: false
+ - name: Organize all six platform directories with legal/source materials
+ shell: python
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ root = Path(os.environ['RUNNER_TEMP'])
+ report = subprocess.check_output([sys.executable, '-I', 'scripts/organize_lsp_distribution.py', str(root / 'lsp-plugin-inputs'), str(root / 'lsp-plugin-bin')])
+ (root / 'lsp-plugin-organization.json').write_bytes(report)
+ sys.stdout.buffer.write(report)
+ - uses: actions/upload-artifact@v4
+ with:
+ name: lsp-plugin-binaries
+ path: ${{ runner.temp }}/lsp-plugin-bin/
+ if-no-files-found: error
+ - uses: actions/upload-artifact@v4
+ with:
+ name: lsp-plugin-organization
+ path: ${{ runner.temp }}/lsp-plugin-organization.json
+ if-no-files-found: error
diff --git a/.github/workflows/lsp-notice-check.yml b/.github/workflows/lsp-notice-check.yml
new file mode 100644
index 0000000..ef91d1e
--- /dev/null
+++ b/.github/workflows/lsp-notice-check.yml
@@ -0,0 +1,227 @@
+name: LSP native notice evidence
+
+on:
+ workflow_call:
+ inputs:
+ source_ref:
+ description: Immutable source commit to build
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+env:
+ SOURCE_REF: ${{ inputs.source_ref }}
+
+jobs:
+ lsp-notice-prototype:
+ name: LSP notice / ${{ matrix.target }}
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
+ steps:
+ - uses: actions/checkout@v4
+ - name: Preserve source-backed notice tools and build hook
+ shell: python
+ run: |
+ import os
+ import shutil
+ from pathlib import Path
+ stage = Path(os.environ['RUNNER_TEMP']) / 'lsp-notice-tools'
+ stage.mkdir()
+ for name in ['scripts/rust_compiler_notices.py', 'ci/test_rust_compiler_notices.py', 'ci/rust-compiler-notices.json', *[str(path) for path in Path('ci/licenses/rust-compiler-originals').glob('*')], 'scripts/apply_lsp_notice_overlay.py', 'scripts/lsp_distribution.py', 'lsp/build.rs', 'scripts/prepare_lsp_notices.py', 'scripts/cargo_notice_bundle.py', 'scripts/collect_cargo_notices.py', 'scripts/check_embedded_notices.py', 'scripts/capture-zig-link.sh', 'ci/about.toml', 'ci/test_embedded_notices.py', 'ci/test_zig_link_capture.py', 'scripts/supplement_lsp_license.py', 'ci/test_lsp_license_supplement.py', 'ci/licenses/valuable-0.1.1.LICENSE', 'ci/licenses/lsp-source-supplements.json', 'scripts/check_lsp_startup.py', 'ci/test_lsp_startup.py', 'scripts/prepare_lsp_source_bundle.py', 'scripts/rebuild_lsp_source.sh', 'scripts/verify_lsp_source_bundle.py', 'scripts/check_lsp_relink.py', 'ci/test_lsp_source_bundle.py', 'ci/test_lsp_relink.py', 'ci/lsp-source-README.txt', 'ci/licenses/LGPL-2.1.txt', 'ci/licenses/GPL-2.0.txt', 'ci/licenses/GPL-3.0.txt', 'ci/licenses/gnu-source-texts.json', 'scripts/lsp_runtime_notices.py', 'ci/test_lsp_runtime_notices.py', 'ci/lsp-zig-runtime-catalog.json']:
+ target = stage / name
+ target.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copy2(name, target)
+ - uses: actions/checkout@v4
+ with:
+ ref: ${{ env.SOURCE_REF }}
+ submodules: recursive
+ persist-credentials: false
+ - name: Apply notice-only LSP source overlay
+ shell: python
+ run: |
+ import hashlib
+ import json
+ import os
+ import shutil
+ import subprocess
+ import sys
+ from pathlib import Path
+ source_ref = subprocess.check_output(['git', 'rev-parse', 'HEAD'], text=True).strip()
+ if source_ref != os.environ['SOURCE_REF']:
+ raise SystemExit('unexpected LSP release source')
+ stage = Path(os.environ['RUNNER_TEMP']) / 'lsp-notice-tools'
+ for name in stage.rglob('*'):
+ if not name.is_file():
+ continue
+ target = Path(name.relative_to(stage))
+ if target.as_posix() == 'lsp/build.rs' and target.exists() and target.read_bytes() != name.read_bytes():
+ raise SystemExit('existing LSP build hook requires review')
+ target.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copy2(name, target)
+ subprocess.run(['git', 'diff', '--exit-code', '--', 'lsp/Cargo.toml', 'lsp/Cargo.lock', 'lsp/src/lib.rs', 'lsp/tests', 'root-docs'], check=True)
+ overlay = json.loads(subprocess.check_output([sys.executable, '-I', 'scripts/apply_lsp_notice_overlay.py', 'lsp/src/main.rs']))
+ record = {'source_ref': source_ref, 'tooling_ref': os.environ['GITHUB_SHA'], **overlay, 'coverage': 'Notice-only source overlay; runtime and distribution requirements are verified by their dedicated gates.'}
+ with (Path(os.environ['RUNNER_TEMP']) / 'lsp-source-provenance.json').open('x', encoding='utf-8') as output:
+ json.dump(record, output, sort_keys=True, indent=2)
+ - name: Verify pinned compiler notice originals
+ run: python -I -m unittest discover -s ci -p test_rust_compiler_notices.py -v
+ - uses: dtolnay/rust-toolchain@1.99.1
+ with:
+ targets: ${{ matrix.target }}
+ components: rust-docs
+ - uses: mlugg/setup-zig@v2
+ with:
+ version: '0.14.0'
+ - uses: taiki-e/install-action@v2
+ with:
+ tool: cargo-zigbuild@0.24.0,cargo-about@0.9.3
+ - name: Verify source supplement and startup guards
+ run: |
+ python3 -I -m unittest discover -s ci -p test_lsp_license_supplement.py -v
+ python3 -I -m unittest discover -s ci -p test_lsp_startup.py -v
+ python3 -I -m unittest discover -s ci -p test_lsp_source_bundle.py -v
+ python3 -I -m unittest discover -s ci -p test_lsp_relink.py -v
+ python3 -I -m unittest discover -s ci -p test_lsp_runtime_notices.py -v
+ - name: Verify registry core and prepare existing locked notices
+ shell: python
+ run: |
+ import json
+ import os
+ import shutil
+ import subprocess
+ import sys
+ import tomllib
+ from pathlib import Path
+ lock = tomllib.loads(Path('lsp/Cargo.lock').read_text())
+ core = [item for item in lock['package'] if item['name'] == 'ktav']
+ if len(core) != 1 or core[0].get('version') != '0.8.1' or core[0].get('source') != 'registry+https://github.com/rust-lang/crates.io-index' or core[0].get('checksum') != '7140dfe2fa6c320e74768cd6a637828c2d26f81746254f4fcd805f3993bd3fd5':
+ raise SystemExit('unexpected LSP core provenance')
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'lsp-notices'
+ subprocess.run([sys.executable, '../scripts/prepare_lsp_notices.py', str(evidence)], cwd='lsp', check=True)
+ shutil.copy2(Path(os.environ['RUNNER_TEMP']) / 'lsp-source-provenance.json', evidence / 'source-provenance.json')
+ subprocess.run([sys.executable, 'scripts/lsp_runtime_notices.py', str(evidence), '${{ matrix.target }}'], check=True)
+ with Path(os.environ['GITHUB_ENV']).open('a', encoding='utf-8') as output:
+ output.write('KTAV_NATIVE_NOTICES=' + (evidence / 'NOTICE.json.gz').as_posix() + chr(10))
+ - name: Verify resource and linker-capture guards
+ run: |
+ python3 -I -m unittest discover -s ci -p test_embedded_notices.py -v
+ python3 -I -m unittest discover -s ci -p test_zig_link_capture.py -v
+ - name: Full host LSP tests with the metadata hook
+ if: matrix.target == 'x86_64-unknown-linux-gnu'
+ working-directory: lsp
+ run: cargo test --locked --release
+ - name: Build executable and capture actual runtime inputs
+ shell: bash
+ working-directory: lsp
+ run: |
+ set -euo pipefail
+ export KTAV_REAL_ZIG="$(command -v zig)"
+ export KTAV_LINK_MAP="$RUNNER_TEMP/lsp-notices/native-link.map"
+ export CARGO_ZIGBUILD_ZIG_COMMAND="$GITHUB_WORKSPACE/scripts/capture-zig-link.sh"
+ unset CARGO_ZIGBUILD_ZIG_COMMAND_ARGS
+ chmod +x "$CARGO_ZIGBUILD_ZIG_COMMAND"
+ zig version > "$RUNNER_TEMP/lsp-notices/zig-version.txt"
+ RUSTFLAGS="-C link-arg=-Wl,--print-map" cargo zigbuild --locked --release --target ${{ matrix.target }}.2.17
+ test -s "$KTAV_LINK_MAP"
+ python3 -c 'import gzip, os; from pathlib import Path; p = Path(os.environ["KTAV_NATIVE_NOTICES"]); before = p.read_bytes(); after = gzip.compress(p.with_name("NOTICE.json").read_bytes(), compresslevel=1, mtime=0); assert before != after; p.write_bytes(after)'
+ RUSTFLAGS="-C link-arg=-Wl,--print-map" cargo zigbuild --locked --release --target ${{ matrix.target }}.2.17
+ - name: Verify actual executable resource and incremental input tracking
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import hashlib
+ import json
+ import os
+ import subprocess
+ import sys
+ from pathlib import Path
+ binary = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release/ktav-lsp'
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'lsp-notices'
+ report = subprocess.check_output([sys.executable, '-I', 'scripts/check_embedded_notices.py', str(binary), str(evidence / 'NOTICE.json')])
+ payload = (evidence / 'NOTICE.json.gz').read_bytes()
+ resource = b'KTAV-NOTICES-GZIP-v1\0' + len(payload).to_bytes(8, 'little') + payload
+ if binary.read_bytes().count(resource) != 1:
+ raise SystemExit('LSP did not retain the updated exact resource after incremental rebuild')
+ verification = json.loads(report)
+ verification['plain_notice_sha256'] = hashlib.sha256((evidence / 'NOTICE.gnu-startup.txt').read_bytes()).hexdigest()
+ (evidence / 'native-resource-verification.json').write_text(json.dumps(verification, sort_keys=True, indent=2), encoding='utf-8')
+ with (evidence / 'incremental-resource.json').open('x', encoding='utf-8') as output:
+ json.dump({'exact_resource_sha256': hashlib.sha256(resource).hexdigest(), 'incremental_input_rebuilt': True}, output, sort_keys=True, indent=2)
+ - name: Verify retained startup inputs and final ELF symbols
+ run: python3 scripts/check_lsp_startup.py lsp/target/${{ matrix.target }}/release/ktav-lsp ${{ runner.temp }}/lsp-notices
+ - name: Prepare corresponding source and original target link inputs
+ if: matrix.target == 'aarch64-unknown-linux-gnu'
+ run: python3 scripts/prepare_lsp_source_bundle.py ${{ runner.temp }}/lsp-notices ${{ runner.temp }}/lsp-source-package ${{ matrix.target }}
+ - name: Verify actual source archive and extract into a new directory
+ if: matrix.target == 'aarch64-unknown-linux-gnu'
+ run: python3 scripts/verify_lsp_source_bundle.py ${{ runner.temp }}/lsp-source-package/ktav-lsp-source-${{ matrix.target }}.tar.gz ${{ runner.temp }}/lsp-source-verify
+ - name: Rebuild original executable from supplied materials
+ if: matrix.target == 'aarch64-unknown-linux-gnu'
+ shell: bash
+ run: |
+ set -euo pipefail
+ bash "$RUNNER_TEMP/lsp-source-verify/lsp-source/rebuild.sh" "${{ matrix.target }}"
+ cp "$RUNNER_TEMP/lsp-source-verify/lsp-source/target-relinked/${{ matrix.target }}/release/ktav-lsp" "$RUNNER_TEMP/lsp-relink-original"
+ - name: Modify supplied startup source for relink proof
+ if: matrix.target == 'aarch64-unknown-linux-gnu'
+ shell: python
+ run: |
+ import datetime
+ import hashlib
+ import os
+ from pathlib import Path
+ source = Path(os.environ['RUNNER_TEMP']) / 'lsp-source-verify/lsp-source/upstream/zig-5ad91a646a753cc3eecd8751e61cf458dadd9ac4/lib/libc/glibc/sysdeps/aarch64/start-2.33.S'
+ original = source.read_bytes()
+ if hashlib.sha1(b'blob ' + str(len(original)).encode() + bytes([0]) + original).hexdigest() != 'd96cf57e2da901bc21e69bf5a87ed034820453f0':
+ raise SystemExit('original supplied startup source changed')
+ anchor = bytes([10]) + b'_start:' + bytes([10])
+ if original.count(anchor) != 1:
+ raise SystemExit('startup entry point requires review')
+ notice = ('/* Изменено для CI relink proof, ' + datetime.date.today().isoformat() + '. */').encode('utf-8')
+ source.write_bytes(original.replace(anchor, anchor + notice + bytes([10]) + b' nop' + bytes([10]), 1))
+ - name: Relink with modified startup and prove actual entry instruction
+ if: matrix.target == 'aarch64-unknown-linux-gnu'
+ shell: bash
+ run: |
+ set -euo pipefail
+ bash "$RUNNER_TEMP/lsp-source-verify/lsp-source/rebuild.sh" "${{ matrix.target }}"
+ python3 scripts/check_lsp_relink.py "$RUNNER_TEMP/lsp-relink-original" "$RUNNER_TEMP/lsp-source-verify/lsp-source/target-relinked/${{ matrix.target }}/release/ktav-lsp" "$RUNNER_TEMP/lsp-notices/NOTICE.json" > "$RUNNER_TEMP/lsp-notices/source-relink-proof.json"
+ - uses: actions/upload-artifact@v4
+ if: success() && matrix.target == 'aarch64-unknown-linux-gnu'
+ with:
+ name: lsp-corresponding-source-${{ matrix.target }}
+ path: ${{ runner.temp }}/lsp-source-package/ktav-lsp-source-${{ matrix.target }}.tar.gz
+ if-no-files-found: error
+ - uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: lsp-license-prototype-${{ matrix.target }}
+ path: ${{ runner.temp }}/lsp-notices/
+ if-no-files-found: warn
+ - name: Stage complete binary, legal notices and required source payload
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ root = Path(os.environ['RUNNER_TEMP'])
+ evidence = root / 'lsp-notices'
+ binary = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release/ktav-lsp'
+ output = root / 'lsp-distribution'
+ subprocess.run([sys.executable, 'scripts/lsp_distribution.py', 'stage', str(evidence), str(binary), os.environ['LSP_TARGET'], str(root / 'lsp-source-package'), str(output)], check=True)
+ subprocess.run([sys.executable, 'scripts/lsp_distribution.py', 'verify', str(output)], check=True)
+ - uses: actions/upload-artifact@v4
+ if: success()
+ with:
+ name: lsp-distribution-${{ matrix.target }}
+ path: ${{ runner.temp }}/lsp-distribution/
+ if-no-files-found: error
diff --git a/.github/workflows/macos-notice-check.yml b/.github/workflows/macos-notice-check.yml
new file mode 100644
index 0000000..456d113
--- /dev/null
+++ b/.github/workflows/macos-notice-check.yml
@@ -0,0 +1,195 @@
+name: macOS LSP notice evidence
+
+on:
+ workflow_call:
+ inputs:
+ source_ref:
+ description: Immutable source commit to build
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+env:
+ SOURCE_REF: ${{ inputs.source_ref }}
+
+jobs:
+ macos-notices:
+ name: LSP macOS notices / ${{ matrix.target }}
+ runs-on: macos-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ target: [x86_64-apple-darwin, aarch64-apple-darwin]
+ steps:
+ - uses: actions/checkout@v4
+ - name: Preserve reviewed notice tooling
+ shell: python
+ run: |
+ import os
+ from pathlib import Path
+ import shutil
+ stage = Path(os.environ['RUNNER_TEMP']) / 'macos-notice-tools'
+ stage.mkdir()
+ for name in ['scripts/rust_compiler_notices.py', 'ci/test_rust_compiler_notices.py', 'ci/rust-compiler-notices.json', *[str(path) for path in Path('ci/licenses/rust-compiler-originals').glob('*')], 'scripts/apply_lsp_notice_overlay.py', 'scripts/lsp_distribution.py', 'lsp/build.rs', 'scripts/prepare_lsp_notices.py', 'scripts/cargo_notice_bundle.py', 'scripts/collect_cargo_notices.py', 'scripts/check_embedded_notices.py', 'scripts/supplement_lsp_license.py', 'scripts/check_lsp_macos.py', 'ci/about.toml', 'ci/licenses/valuable-0.1.1.LICENSE', 'ci/licenses/lsp-source-supplements.json', 'ci/test_lsp_macos_notices.py']:
+ destination = stage / name
+ destination.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copyfile(name, destination)
+ - uses: actions/checkout@v4
+ with:
+ ref: ${{ env.SOURCE_REF }}
+ submodules: recursive
+ persist-credentials: false
+ - name: Verify immutable core and apply notice-only overlay
+ shell: python
+ run: |
+ import hashlib
+ import json
+ import os
+ from pathlib import Path
+ import shutil
+ import subprocess
+ import sys
+ import tomllib
+ if subprocess.check_output(['git', 'rev-parse', 'HEAD'], text=True).strip() != os.environ['SOURCE_REF']:
+ raise SystemExit('unexpected macOS LSP source')
+ lock_bytes = Path('lsp/Cargo.lock').read_bytes()
+ core = [item for item in tomllib.loads(lock_bytes.decode('utf-8'))['package'] if item['name'] == 'ktav']
+ if len(core) != 1 or core[0].get('version') != '0.8.1' or core[0].get('checksum') != '7140dfe2fa6c320e74768cd6a637828c2d26f81746254f4fcd805f3993bd3fd5':
+ raise SystemExit('unexpected macOS core identity')
+ stage = Path(os.environ['RUNNER_TEMP']) / 'macos-notice-tools'
+ for source in stage.rglob('*'):
+ if not source.is_file():
+ continue
+ destination = Path(source.relative_to(stage))
+ if destination.as_posix() == 'lsp/build.rs' and destination.exists() and destination.read_bytes() != source.read_bytes():
+ raise SystemExit('existing LSP build hook requires review')
+ destination.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copyfile(source, destination)
+ subprocess.run(['git', 'diff', '--exit-code', '--', 'lsp/Cargo.toml', 'lsp/Cargo.lock', 'lsp/src/lib.rs', 'lsp/tests', 'root-docs'], check=True)
+ overlay = json.loads(subprocess.check_output([sys.executable, '-I', 'scripts/apply_lsp_notice_overlay.py', 'lsp/src/main.rs']))
+ record = {'source_ref': os.environ['SOURCE_REF'], **overlay, 'coverage': 'Audit-only Cargo/std notice resource; system-library terms require separate review.'}
+ (Path(os.environ['RUNNER_TEMP']) / 'macos-notice-provenance.json').write_text(json.dumps(record, sort_keys=True, indent=2), encoding='utf-8')
+ - name: Verify pinned compiler notice originals
+ run: python -I -m unittest discover -s ci -p test_rust_compiler_notices.py -v
+ - uses: dtolnay/rust-toolchain@1.99.1
+ with:
+ targets: ${{ matrix.target }}
+ components: rust-docs
+ - uses: taiki-e/install-action@v2
+ with:
+ tool: cargo-about@0.9.3
+ - name: Verify Darwin map and machine guards
+ run: python3 -I -m unittest discover -s ci -p test_lsp_macos_notices.py -v
+ - name: Prepare locked Cargo/std notice resource
+ shell: python
+ run: |
+ import os
+ from pathlib import Path
+ import shutil
+ import subprocess
+ import sys
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'macos-notices'
+ subprocess.run([sys.executable, '../scripts/prepare_lsp_notices.py', str(evidence)], cwd='lsp', check=True)
+ shutil.copyfile(Path(os.environ['RUNNER_TEMP']) / 'macos-notice-provenance.json', evidence / 'source-provenance.json')
+ with Path(os.environ['GITHUB_ENV']).open('a', encoding='utf-8') as output:
+ output.write('KTAV_NATIVE_NOTICES=' + (evidence / 'NOTICE.json.gz').as_posix() + chr(10))
+ output.write('CARGO_ENCODED_RUSTFLAGS=-C' + chr(31) + 'link-arg=-Wl,-map,' + (evidence / 'native-link.map').as_posix() + chr(31) + '-C' + chr(31) + 'link-arg=-Wl,-dead_strip_dylibs' + chr(10))
+ - name: Build exact resource and capture selected linker
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ RUSTC_LOG: rustc_codegen_ssa::back::link=info
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ result = subprocess.run(['cargo', 'build', '--locked', '--release', '--manifest-path', 'lsp/Cargo.toml', '--target', os.environ['LSP_TARGET']], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'macos-notices'
+ (evidence / 'linker-trace.txt').write_bytes(result.stderr)
+ sys.stdout.buffer.write(result.stdout)
+ sys.stderr.buffer.write(result.stderr)
+ raise SystemExit(result.returncode)
+ - name: Preserve release identity and collect actual system imports
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import base64
+ import hashlib
+ import json
+ import os
+ from pathlib import Path
+ import subprocess
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'macos-notices'
+ binary = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release/ktav-lsp'
+ identity = {'binary_sha256': hashlib.sha256(binary.read_bytes()).hexdigest(), 'map_sha256': hashlib.sha256((evidence / 'native-link.map').read_bytes()).hexdigest()}
+ (evidence / 'release-before-tests.json').write_text(json.dumps(identity, sort_keys=True), encoding='utf-8')
+ for name, args in [('dynamic-libraries.txt', ['otool', '-L', str(binary)]), ('undefined-symbols.txt', ['nm', '-m', '-u', str(binary)]), ('load-commands.txt', ['otool', '-l', str(binary)]), ('clang-version.txt', ['clang', '--version']), ('sdk-version.txt', ['xcrun', '--show-sdk-version'])]:
+ (evidence / name).write_bytes(subprocess.check_output(args))
+ sdk = Path(subprocess.check_output(['xcrun', '--show-sdk-path'], text=True).strip())
+ header = sdk / 'usr/include/iconv.h'
+ if not header.is_file() or header.stat().st_size > 4 * 1024 * 1024:
+ raise SystemExit('missing or oversized original SDK iconv header')
+ data = header.read_bytes()
+ record = {'path': 'usr/include/iconv.h', 'sha256': hashlib.sha256(data).hexdigest(), 'raw_bytes_base64': base64.b64encode(data).decode('ascii'), 'scope': 'Original selected SDK interface header; not by itself proof of the runtime dylib source revision.'}
+ (evidence / 'system-iconv-header.json').write_text(json.dumps(record, sort_keys=True, indent=2), encoding='utf-8')
+ - name: Actual matching-CPU tests without overwriting the release map
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import json
+ import os
+ from pathlib import Path
+ import subprocess
+ host = subprocess.check_output(['rustc', '-vV'], text=True).split('host: ', 1)[1].splitlines()[0]
+ native = host == os.environ['LSP_TARGET']
+ if native:
+ environment = {**os.environ, 'CARGO_TARGET_DIR': str(Path(os.environ['RUNNER_TEMP']) / 'macos-notice-tests'), 'CARGO_ENCODED_RUSTFLAGS': '-C' + chr(31) + 'link-arg=-Wl,-dead_strip_dylibs'}
+ subprocess.run(['cargo', 'test', '--locked', '--release', '--manifest-path', 'lsp/Cargo.toml', '--target', os.environ['LSP_TARGET']], env=environment, check=True)
+ report = {'target': os.environ['LSP_TARGET'], 'host': host, 'native_execution': native}
+ (Path(os.environ['RUNNER_TEMP']) / 'macos-notices/execution-scope.json').write_text(json.dumps(report, sort_keys=True), encoding='utf-8')
+ - name: Verify actual Mach-O resource and static-input boundary
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'macos-notices'
+ binary = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release/ktav-lsp'
+ subprocess.run([sys.executable, 'scripts/check_lsp_macos.py', str(evidence), str(binary), os.environ['LSP_TARGET']], check=True)
+ if Path('lsp/Cargo.lock').read_bytes() != (evidence / 'Cargo.lock').read_bytes():
+ raise SystemExit('macOS build changed original lock')
+ - uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: lsp-macos-notices-${{ matrix.target }}
+ path: ${{ runner.temp }}/macos-notices/
+ if-no-files-found: warn
+ - name: Stage complete binary, legal notices and required source payload
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ root = Path(os.environ['RUNNER_TEMP'])
+ evidence = root / 'macos-notices'
+ binary = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release/ktav-lsp'
+ output = root / 'lsp-distribution'
+ subprocess.run([sys.executable, 'scripts/lsp_distribution.py', 'stage', str(evidence), str(binary), os.environ['LSP_TARGET'], str(root / 'macos-notices'), str(output)], check=True)
+ subprocess.run([sys.executable, 'scripts/lsp_distribution.py', 'verify', str(output)], check=True)
+ - uses: actions/upload-artifact@v4
+ if: success()
+ with:
+ name: lsp-distribution-${{ matrix.target }}
+ path: ${{ runner.temp }}/lsp-distribution/
+ if-no-files-found: error
diff --git a/.github/workflows/platform-runtime-check.yml b/.github/workflows/platform-runtime-check.yml
new file mode 100644
index 0000000..f65e640
--- /dev/null
+++ b/.github/workflows/platform-runtime-check.yml
@@ -0,0 +1,141 @@
+name: LSP platform runtime evidence
+
+on:
+ pull_request:
+
+permissions:
+ contents: read
+
+env:
+ SOURCE_REF: 2618bf1232f95da464a5cd407cc247ebb76acddd
+
+jobs:
+ platform-runtime:
+ name: LSP SDK inputs / ${{ matrix.target }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - os: macos-latest
+ target: x86_64-apple-darwin
+ artifact: ktav-lsp
+ - os: macos-latest
+ target: aarch64-apple-darwin
+ artifact: ktav-lsp
+ - os: windows-latest
+ target: x86_64-pc-windows-msvc
+ artifact: ktav-lsp.exe
+ - os: windows-latest
+ target: aarch64-pc-windows-msvc
+ artifact: ktav-lsp.exe
+ steps:
+ - uses: actions/checkout@v4
+ - name: Verify measured SDK document size and safety bounds
+ run: python -I -m unittest discover -s ci -p test_sdk_legal_bounds.py -v
+ - name: Preserve SDK document collector
+ shell: python
+ run: |
+ import os
+ import shutil
+ from pathlib import Path
+ stage = Path(os.environ['RUNNER_TEMP']) / 'lsp-sdk-audit-tools'
+ stage.mkdir()
+ shutil.copyfile('scripts/collect_lsp_sdk_legal.py', stage / 'collect_lsp_sdk_legal.py')
+ - uses: actions/checkout@v4
+ with:
+ ref: ${{ env.SOURCE_REF }}
+ persist-credentials: false
+ - uses: dtolnay/rust-toolchain@1.99.1
+ with:
+ targets: ${{ matrix.target }}
+ components: rust-docs
+ - name: Verify exact source/core and capture linker map flags
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import json
+ import os
+ import platform
+ import subprocess
+ import tomllib
+ from pathlib import Path
+ if subprocess.check_output(['git', 'rev-parse', 'HEAD'], text=True).strip() != os.environ['SOURCE_REF']:
+ raise SystemExit('unexpected platform runtime source')
+ lock = tomllib.loads(Path('lsp/Cargo.lock').read_text())
+ core = [item for item in lock['package'] if item['name'] == 'ktav']
+ if len(core) != 1 or core[0].get('version') != '0.8.1' or core[0].get('checksum') != '7140dfe2fa6c320e74768cd6a637828c2d26f81746254f4fcd805f3993bd3fd5':
+ raise SystemExit('unexpected platform runtime core identity')
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'lsp-platform-runtime'
+ evidence.mkdir()
+ (evidence / 'Cargo.lock').write_bytes(Path('lsp/Cargo.lock').read_bytes())
+ (evidence / 'rustc.txt').write_bytes(subprocess.check_output(['rustc', '--version', '--verbose']))
+ map_path = (evidence / 'native-link.map').as_posix()
+ flag = 'link-arg=/MAP:' + map_path if platform.system() == 'Windows' else 'link-arg=-Wl,-map,' + map_path
+ with Path(os.environ['GITHUB_ENV']).open('a', encoding='utf-8') as output:
+ output.write('CARGO_ENCODED_RUSTFLAGS=-C' + chr(31) + flag + chr(10))
+ record = {'source_ref': os.environ['SOURCE_REF'], 'target': os.environ['LSP_TARGET'], 'host': platform.platform(), 'scope': 'Audit-only SDK link-input evidence; no executable publication or license conclusion.'}
+ (evidence / 'source-provenance.json').write_text(json.dumps(record, sort_keys=True, indent=2), encoding='utf-8')
+ - name: Build actual target with map and selected linker trace
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ RUSTC_LOG: rustc_codegen_ssa::back::link=info
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ result = subprocess.run(['cargo', 'build', '--locked', '--release', '--manifest-path', 'lsp/Cargo.toml', '--target', os.environ['LSP_TARGET']], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'lsp-platform-runtime'
+ (evidence / 'linker-trace.txt').write_bytes(result.stderr)
+ sys.stdout.buffer.write(result.stdout)
+ sys.stderr.buffer.write(result.stderr)
+ raise SystemExit(result.returncode)
+ - name: Capture original map, compiler library report and binary fingerprint
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ LSP_ARTIFACT: ${{ matrix.artifact }}
+ run: |
+ import hashlib
+ import json
+ import os
+ import platform
+ import shutil
+ import subprocess
+ from pathlib import Path
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'lsp-platform-runtime'
+ binary = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release' / os.environ['LSP_ARTIFACT']
+ link_map = evidence / 'native-link.map'
+ if not binary.is_file() or not link_map.is_file() or not 0 < link_map.stat().st_size < 64 * 1024 * 1024:
+ raise SystemExit('missing actual binary or platform map')
+ if (evidence / 'Cargo.lock').read_bytes() != Path('lsp/Cargo.lock').read_bytes():
+ raise SystemExit('platform runtime build changed the existing lock')
+ sysroot = Path(subprocess.check_output(['rustc', '--print', 'sysroot'], text=True).strip())
+ shutil.copyfile(sysroot / 'share/doc/rust/COPYRIGHT-library.html', evidence / 'COPYRIGHT-library.html')
+ if platform.system() == 'Darwin':
+ for name, args in [('dynamic-libraries.txt', ['otool', '-L', str(binary)]), ('load-commands.txt', ['otool', '-l', str(binary)]), ('clang-version.txt', ['clang', '--version']), ('sdk-version.txt', ['xcrun', '--show-sdk-version'])]:
+ (evidence / name).write_bytes(subprocess.check_output(args))
+ else:
+ vswhere = Path(os.environ['ProgramFiles(x86)']) / 'Microsoft Visual Studio/Installer/vswhere.exe'
+ if vswhere.is_file():
+ (evidence / 'vs-installation-candidates.txt').write_bytes(subprocess.check_output([str(vswhere), '-all', '-property', 'installationVersion']))
+ record = {'target': os.environ['LSP_TARGET'], 'binary_sha256': hashlib.sha256(binary.read_bytes()).hexdigest(), 'map_sha256': hashlib.sha256(link_map.read_bytes()).hexdigest(), 'map_bytes': link_map.stat().st_size, 'sdk_environment': {key: os.environ.get(key) for key in ['SDKROOT', 'DEVELOPER_DIR', 'WindowsSDKVersion', 'VCToolsVersion']}, 'scope': 'Observed platform inputs only; SDK copyright and distribution terms require separate review.'}
+ (evidence / 'native-platform-inputs.json').write_text(json.dumps(record, sort_keys=True, indent=2), encoding='utf-8')
+ - name: Capture original installed SDK license documents
+ shell: python
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ root = Path(os.environ['RUNNER_TEMP'])
+ subprocess.run([sys.executable, str(root / 'lsp-sdk-audit-tools/collect_lsp_sdk_legal.py'), str(root / 'lsp-platform-runtime')], check=True)
+ - uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: lsp-sdk-inputs-${{ matrix.target }}
+ path: ${{ runner.temp }}/lsp-platform-runtime/
+ if-no-files-found: warn
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 2546694..d623b8e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -60,10 +60,15 @@ jobs:
verify-versions:
name: Verify versions in sync
runs-on: ubuntu-latest
+ outputs:
+ source_ref: ${{ steps.source.outputs.source_ref }}
steps:
- uses: actions/checkout@v5
with:
ref: ${{ inputs.tag || github.ref }}
+ - name: Pin selected source commit
+ id: source
+ run: printf 'source_ref=%s\n' "$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- name: Compare versions
shell: bash
run: |
@@ -141,85 +146,12 @@ jobs:
# for the github-release job to attach to the Release.
# ------------------------------------------------------------------
lsp-binaries:
- name: lsp binary / ${{ matrix.target }}
+ name: Licensed LSP binaries and source
needs: verify-versions
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- include:
- - os: ubuntu-latest
- target: x86_64-unknown-linux-gnu
- artifact: ktav-lsp
- asset: ktav-lsp-linux-amd64
- use-zigbuild: true
- - os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
- artifact: ktav-lsp
- asset: ktav-lsp-linux-arm64
- use-zigbuild: true
- - os: macos-latest
- target: x86_64-apple-darwin
- artifact: ktav-lsp
- asset: ktav-lsp-darwin-amd64
- use-zigbuild: false
- - os: macos-latest
- target: aarch64-apple-darwin
- artifact: ktav-lsp
- asset: ktav-lsp-darwin-arm64
- use-zigbuild: false
- - os: windows-latest
- target: x86_64-pc-windows-msvc
- artifact: ktav-lsp.exe
- asset: ktav-lsp-windows-amd64.exe
- use-zigbuild: false
- - os: windows-latest
- target: aarch64-pc-windows-msvc
- artifact: ktav-lsp.exe
- asset: ktav-lsp-windows-arm64.exe
- use-zigbuild: false
- defaults:
- run:
- working-directory: lsp
- steps:
- - uses: actions/checkout@v5
- with:
- ref: ${{ inputs.tag || github.ref }}
- - uses: dtolnay/rust-toolchain@stable
- with:
- targets: ${{ matrix.target }}
- - uses: Swatinem/rust-cache@v2
- with:
- workspaces: lsp
- key: ${{ matrix.target }}
- - name: Install zig
- if: matrix.use-zigbuild
- uses: mlugg/setup-zig@v2
- with:
- version: 0.14.0
- - name: Install cargo-zigbuild
- if: matrix.use-zigbuild
- uses: taiki-e/install-action@v2
- with:
- tool: cargo-zigbuild
- - name: Build (zigbuild)
- if: matrix.use-zigbuild
- run: cargo zigbuild --locked --release --target ${{ matrix.target }}.2.17
- - name: Build (native)
- if: ${{ !matrix.use-zigbuild }}
- run: cargo build --locked --release --target ${{ matrix.target }}
- - name: Stage artifact
- shell: bash
- run: cp target/${{ matrix.target }}/release/${{ matrix.artifact }} ../${{ matrix.asset }}
- - uses: actions/upload-artifact@v5
- with:
- name: ${{ matrix.asset }}
- path: ${{ matrix.asset }}
- if-no-files-found: error
+ uses: ./.github/workflows/lsp-licensed-payloads.yml
+ with:
+ source_ref: ${{ needs.verify-versions.outputs.source_ref }}
- # ------------------------------------------------------------------
- # vscode — download binaries, package + publish to Marketplace + Open VSX.
- # ------------------------------------------------------------------
vscode-publish:
name: vscode / vsce + ovsx publish
needs: [verify-versions, lsp-binaries]
@@ -239,36 +171,12 @@ jobs:
ref: ${{ inputs.tag || github.ref }}
submodules: recursive
- # Download all platform binaries from lsp-binaries artifacts
- uses: actions/download-artifact@v5
with:
- path: binaries
- pattern: ktav-lsp-*
- merge-multiple: false
-
- # Place binaries in bin/-/
- - name: Organize binaries
- shell: bash
- run: |
- # `download-artifact` placed the artifacts at $GITHUB_WORKSPACE/binaries
- # (workspace-root relative — NOT relative to this step's vscode
- # working-directory). Each artifact dir holds ONE file named after the
- # asset (lsp-binaries stages it as `$asset`, not `ktav-lsp`). Copy each
- # into the platform dir the extension probes, renamed to `ktav-lsp[.exe]`.
- # Absolute $GITHUB_WORKSPACE paths avoid any cwd ambiguity; no `[ -d ]`
- # guards so a missing binary fails the release loudly instead of
- # silently shipping a partial (Windows-only) VSIX.
- B="$GITHUB_WORKSPACE/binaries"
- D="$GITHUB_WORKSPACE/vscode/bin"
- mkdir -p "$D"/{linux-x64,linux-arm64,darwin-x64,darwin-arm64,win32-x64,win32-arm64}
- cp "$B/ktav-lsp-linux-amd64/ktav-lsp-linux-amd64" "$D/linux-x64/ktav-lsp"
- cp "$B/ktav-lsp-linux-arm64/ktav-lsp-linux-arm64" "$D/linux-arm64/ktav-lsp"
- cp "$B/ktav-lsp-darwin-amd64/ktav-lsp-darwin-amd64" "$D/darwin-x64/ktav-lsp"
- cp "$B/ktav-lsp-darwin-arm64/ktav-lsp-darwin-arm64" "$D/darwin-arm64/ktav-lsp"
- cp "$B/ktav-lsp-windows-amd64.exe/ktav-lsp-windows-amd64.exe" "$D/win32-x64/ktav-lsp.exe"
- cp "$B/ktav-lsp-windows-arm64.exe/ktav-lsp-windows-arm64.exe" "$D/win32-arm64/ktav-lsp.exe"
- chmod +x "$D/linux-x64/ktav-lsp" "$D/linux-arm64/ktav-lsp" "$D/darwin-x64/ktav-lsp" "$D/darwin-arm64/ktav-lsp"
- ls -lhR "$D"
+ name: lsp-plugin-binaries
+ path: vscode/bin
+ - name: Restore executable modes after artifact transport
+ run: chmod +x bin/{linux-x64,linux-arm64,darwin-x64,darwin-arm64}/ktav-lsp
- uses: actions/setup-node@v6
with:
@@ -302,6 +210,8 @@ jobs:
VSIX="ktav-$(node -p "require('./package.json').version").vsix"
npx vsce package --out "$VSIX"
echo "VSIX=$VSIX" >> "$GITHUB_ENV"
+ - name: Verify complete LSP legal and source delivery
+ run: python3 -I ../scripts/check_lsp_plugin_zip.py "$VSIX" vsix > "$RUNNER_TEMP/vsix-lsp-distribution.json"
- name: Validate packaged VSIX
shell: bash
run: |
@@ -371,32 +281,12 @@ jobs:
ref: ${{ inputs.tag || github.ref }}
submodules: recursive
- # Download all platform binaries from lsp-binaries artifacts
- uses: actions/download-artifact@v5
with:
- path: binaries
- pattern: ktav-lsp-*
- merge-multiple: false
-
- # Place binaries in bin/-/
- - name: Organize binaries
- shell: bash
- run: |
- # Same as vscode-publish: artifacts live at $GITHUB_WORKSPACE/binaries
- # (workspace-root relative), each dir holding one file named after the
- # asset. Copy into the per-platform dir as `ktav-lsp[.exe]`. Absolute
- # paths avoid cwd ambiguity; fail loudly on any missing binary.
- B="$GITHUB_WORKSPACE/binaries"
- D="$GITHUB_WORKSPACE/intellij/bin"
- mkdir -p "$D"/{linux-x64,linux-arm64,darwin-x64,darwin-arm64,win32-x64,win32-arm64}
- cp "$B/ktav-lsp-linux-amd64/ktav-lsp-linux-amd64" "$D/linux-x64/ktav-lsp"
- cp "$B/ktav-lsp-linux-arm64/ktav-lsp-linux-arm64" "$D/linux-arm64/ktav-lsp"
- cp "$B/ktav-lsp-darwin-amd64/ktav-lsp-darwin-amd64" "$D/darwin-x64/ktav-lsp"
- cp "$B/ktav-lsp-darwin-arm64/ktav-lsp-darwin-arm64" "$D/darwin-arm64/ktav-lsp"
- cp "$B/ktav-lsp-windows-amd64.exe/ktav-lsp-windows-amd64.exe" "$D/win32-x64/ktav-lsp.exe"
- cp "$B/ktav-lsp-windows-arm64.exe/ktav-lsp-windows-arm64.exe" "$D/win32-arm64/ktav-lsp.exe"
- chmod +x "$D/linux-x64/ktav-lsp" "$D/linux-arm64/ktav-lsp" "$D/darwin-x64/ktav-lsp" "$D/darwin-arm64/ktav-lsp"
- ls -lhR "$D"
+ name: lsp-plugin-binaries
+ path: intellij/bin
+ - name: Restore executable modes after artifact transport
+ run: chmod +x bin/{linux-x64,linux-arm64,darwin-x64,darwin-arm64}/ktav-lsp
# The plugin version carries a build stamp. Take it from the commit so
# both Gradle runs below, and any re-run of this tag, build one version
@@ -409,7 +299,19 @@ jobs:
distribution: temurin
java-version: "17"
- uses: gradle/actions/setup-gradle@v4
- - run: ./gradlew test verifyPlugin buildPlugin --no-daemon
+ - run: ./gradlew --no-daemon --no-parallel --no-configure-on-demand -I ../ci/license-init.gradle licenseArtifactInventory checkLicense test verifyPlugin buildPlugin
+ - name: Verify complete LSP legal and source delivery
+ shell: python
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ archives = list(Path('build/distributions').glob('*.zip'))
+ if len(archives) != 1:
+ raise SystemExit('expected exactly one actual IntelliJ ZIP')
+ report = subprocess.check_output([sys.executable, '-I', '../scripts/check_lsp_plugin_zip.py', str(archives[0]), 'intellij'])
+ (Path(os.environ['RUNNER_TEMP']) / 'intellij-lsp-distribution.json').write_bytes(report)
- name: Publish to JetBrains Marketplace
# Publishes only on a manual dispatch with publish=true; tag pushes
# build only. The FIRST version must be uploaded manually via
@@ -420,7 +322,9 @@ jobs:
# for that manual first upload.
if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish && env.INTELLIJ_PUBLISH_TOKEN != '' }}
continue-on-error: true
- run: ./gradlew publishPlugin --no-daemon
+ run: ./gradlew --no-daemon --no-parallel --no-configure-on-demand -I ../ci/license-init.gradle publishPlugin
+ - name: Recheck license and distribution gates before upload
+ run: ./gradlew --no-daemon --no-parallel --no-configure-on-demand -I ../ci/license-init.gradle licenseArtifactInventory checkLicense
# The universal plugin zip (loads on all JetBrains IDEs / all OSes,
# bundling every platform LSP binary) always ships.
- uses: actions/upload-artifact@v5
@@ -435,7 +339,7 @@ jobs:
# ------------------------------------------------------------------
github-release:
name: GitHub Release
- needs: [lsp-publish, lsp-binaries, vscode-publish, intellij-publish]
+ needs: [verify-versions, lsp-publish, lsp-binaries, vscode-publish, intellij-publish]
runs-on: ubuntu-latest
permissions:
contents: write
@@ -446,8 +350,29 @@ jobs:
- uses: actions/download-artifact@v5
with:
+ pattern: lsp-distribution-*
+ path: release-lsp-inputs
+ merge-multiple: false
+ - name: Stage only verified raw LSP assets, notices and source
+ run: python3 -I scripts/stage_lsp_release_assets.py release-lsp-inputs artifacts "${{ needs.verify-versions.outputs.source_ref }}" > "$RUNNER_TEMP/release-lsp-assets.json"
+ - uses: actions/download-artifact@v5
+ with:
+ name: vscode-vsix
+ path: artifacts
+ - uses: actions/download-artifact@v5
+ with:
+ name: intellij-zip
path: artifacts
- merge-multiple: true
+ - uses: actions/upload-artifact@v4
+ with:
+ name: licensed-release-candidate
+ path: artifacts/
+ if-no-files-found: error
+ - uses: actions/upload-artifact@v4
+ with:
+ name: licensed-release-inventory
+ path: ${{ runner.temp }}/release-lsp-assets.json
+ if-no-files-found: error
- name: Extract release notes from CHANGELOG.md
id: notes
diff --git a/.github/workflows/windows-gnullvm-check.yml b/.github/workflows/windows-gnullvm-check.yml
new file mode 100644
index 0000000..c8afa6a
--- /dev/null
+++ b/.github/workflows/windows-gnullvm-check.yml
@@ -0,0 +1,339 @@
+name: Windows GNU LLVM compatibility evidence
+
+on:
+ workflow_call:
+ inputs:
+ source_ref:
+ description: Immutable source commit to build
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+env:
+ SOURCE_REF: ${{ inputs.source_ref }}
+
+jobs:
+ gnullvm-prototype:
+ name: LSP GNU LLVM / ${{ matrix.target }}
+ runs-on: windows-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - target: x86_64-pc-windows-gnullvm
+ compiler: x86_64-w64-mingw32-clang.exe
+ - target: aarch64-pc-windows-gnullvm
+ compiler: aarch64-w64-mingw32-clang.exe
+ steps:
+ - uses: actions/checkout@v4
+ - name: Preserve reviewed notice tools before release-source checkout
+ shell: python
+ run: |
+ import os
+ from pathlib import Path
+ import shutil
+ stage = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-notice-tools'
+ stage.mkdir()
+ names = ['scripts/rust_compiler_notices.py', 'ci/test_rust_compiler_notices.py', 'ci/rust-compiler-notices.json', *[str(path) for path in Path('ci/licenses/rust-compiler-originals').glob('*')], 'scripts/apply_lsp_notice_overlay.py', 'scripts/lsp_distribution.py', 'lsp/build.rs', 'scripts/prepare_lsp_notices.py', 'scripts/cargo_notice_bundle.py', 'scripts/collect_cargo_notices.py', 'scripts/check_embedded_notices.py', 'scripts/supplement_lsp_license.py', 'scripts/lsp_gnullvm_notices.py', 'scripts/check_lsp_gnullvm.py', 'ci/about.toml', 'ci/licenses/valuable-0.1.1.LICENSE', 'ci/licenses/lsp-source-supplements.json', 'ci/lsp-gnullvm-runtime-catalog.json', 'ci/test_lsp_gnullvm_notices.py']
+ for name in names:
+ destination = stage / name
+ destination.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copyfile(name, destination)
+ - uses: actions/checkout@v4
+ with:
+ ref: ${{ env.SOURCE_REF }}
+ submodules: recursive
+ persist-credentials: false
+ - name: Apply notice-only source overlay
+ shell: python
+ run: |
+ import hashlib
+ import json
+ import os
+ from pathlib import Path
+ import shutil
+ import subprocess
+ import sys
+ stage = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-notice-tools'
+ for source in stage.rglob('*'):
+ if not source.is_file():
+ continue
+ destination = Path(source.relative_to(stage))
+ if destination.as_posix() == 'lsp/build.rs' and destination.exists() and destination.read_bytes() != source.read_bytes():
+ raise SystemExit('existing LSP build hook requires review')
+ destination.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copyfile(source, destination)
+ subprocess.run(['git', 'diff', '--exit-code', '--', 'lsp/Cargo.toml', 'lsp/Cargo.lock', 'lsp/src/lib.rs', 'lsp/tests', 'root-docs'], check=True)
+ overlay = json.loads(subprocess.check_output([sys.executable, '-I', 'scripts/apply_lsp_notice_overlay.py', 'lsp/src/main.rs']))
+ provenance = overlay
+ (Path(os.environ['RUNNER_TEMP']) / 'gnullvm-source-overlay.json').write_text(json.dumps(provenance, sort_keys=True, indent=2))
+ - name: Verify pinned compiler notice originals
+ run: python -I -m unittest discover -s ci -p test_rust_compiler_notices.py -v
+ - uses: dtolnay/rust-toolchain@1.99.1
+ with:
+ targets: ${{ matrix.target }}
+ components: rust-docs
+ - uses: taiki-e/install-action@v2
+ with:
+ tool: cargo-about@0.9.3
+ - name: Verify Windows source-notice regression guards
+ run: python -I -m unittest discover -s ci -p test_lsp_gnullvm_notices.py -v
+ - name: Verify source/core and install exact candidate SDK
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ CANDIDATE_COMPILER: ${{ matrix.compiler }}
+ run: |
+ import hashlib
+ import json
+ import os
+ from pathlib import Path, PurePosixPath
+ import stat
+ import subprocess
+ import tomllib
+ import urllib.request
+ import zipfile
+ if subprocess.check_output(['git', 'rev-parse', 'HEAD'], text=True).strip() != os.environ['SOURCE_REF']:
+ raise SystemExit('unexpected GNU LLVM source')
+ lock = Path('lsp/Cargo.lock').read_bytes()
+ core = [item for item in tomllib.loads(lock.decode())['package'] if item['name'] == 'ktav']
+ if len(core) != 1 or core[0].get('version') != '0.8.1' or core[0].get('checksum') != '7140dfe2fa6c320e74768cd6a637828c2d26f81746254f4fcd805f3993bd3fd5':
+ raise SystemExit('unexpected GNU LLVM core source')
+ root = Path(os.environ['RUNNER_TEMP'])
+ evidence = root / 'gnullvm-evidence'
+ evidence.mkdir()
+ (evidence / 'Cargo.lock').write_bytes(lock)
+ sdk = root / 'gnullvm-sdk'
+ sdk.mkdir()
+ archive_path = sdk / 'sdk.zip'
+ url = 'https://github.com/mstorsjo/llvm-mingw/releases/download/20261020/llvm-mingw-20261020-ucrt-x86_64.zip'
+ checksum = hashlib.sha256()
+ total = 0
+ with urllib.request.urlopen(url, timeout=120) as response, archive_path.open('xb') as output:
+ while chunk := response.read(1024 * 1024):
+ total += len(chunk)
+ if total > 256 * 1024 * 1024:
+ raise SystemExit('candidate SDK size limit exceeded')
+ checksum.update(chunk)
+ output.write(chunk)
+ if checksum.hexdigest() != 'fd5462b7f5d93b2ff981fcd3f9c7e427e47f3203c64ea91c27bcc444eebd74cd':
+ raise SystemExit('candidate SDK integrity mismatch')
+ with zipfile.ZipFile(archive_path) as archive:
+ for member in archive.infolist():
+ path = PurePosixPath(member.filename)
+ if path.is_absolute() or '..' in path.parts or '\\' in member.filename or ':' in member.filename or stat.S_IFMT(member.external_attr >> 16) == stat.S_IFLNK:
+ raise SystemExit('unsafe candidate SDK archive member')
+ archive.extractall(sdk)
+ install = sdk / 'llvm-mingw-20261020-ucrt-x86_64'
+ compiler = install / 'bin' / os.environ['CANDIDATE_COMPILER']
+ if not compiler.is_file():
+ raise SystemExit('candidate compiler missing')
+ (evidence / 'compiler-version.txt').write_bytes(subprocess.check_output([str(compiler), '--version']))
+ (evidence / 'rustc.txt').write_bytes(subprocess.check_output(['rustc', '--version', '--verbose']))
+ key = 'CARGO_TARGET_' + os.environ['LSP_TARGET'].upper().replace('-', '_') + '_LINKER'
+ map_path = (evidence / 'native-link.map').as_posix()
+ with Path(os.environ['GITHUB_ENV']).open('a', encoding='utf-8') as output:
+ output.write(key + '=' + str(compiler) + chr(10))
+ output.write('CARGO_ENCODED_RUSTFLAGS=-C' + chr(31) + 'target-feature=+crt-static' + chr(31) + '-C' + chr(31) + 'link-arg=-Wl,-Map,' + map_path + chr(31) + '-C' + chr(31) + 'link-arg=-Wl,--reproduce=' + (root / 'gnullvm-release-link.tar').as_posix() + chr(10))
+ output.write('LLVM_MINGW_CANDIDATE=' + str(install) + chr(10))
+ with Path(os.environ['GITHUB_PATH']).open('a', encoding='utf-8') as output:
+ output.write(str(install / 'bin') + chr(10))
+ (evidence / 'source-provenance.json').write_text(json.dumps({'source_ref': os.environ['SOURCE_REF'], 'target': os.environ['LSP_TARGET'], 'sdk_archive_sha256': checksum.hexdigest(), 'sdk_source': url, 'notice_overlay': json.loads((root / 'gnullvm-source-overlay.json').read_text()), 'coverage': 'Experimental standalone LSP with exact embedded notices; no production or other binding compatibility claim.'}, sort_keys=True, indent=2), encoding='utf-8')
+ - name: Prepare exact locked Cargo/std and Windows runtime notices
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import os
+ from pathlib import Path
+ import shutil
+ import subprocess
+ import sys
+ notices = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-cargo-notices'
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-evidence'
+ subprocess.run([sys.executable, '../scripts/prepare_lsp_notices.py', str(notices)], cwd='lsp', check=True)
+ subprocess.run([sys.executable, 'scripts/lsp_gnullvm_notices.py', str(notices), os.environ['LSP_TARGET']], check=True)
+ for source in notices.iterdir():
+ if not source.is_file():
+ raise SystemExit('unexpected nested notice evidence')
+ destination = evidence / source.name
+ if destination.exists():
+ if destination.read_bytes() != source.read_bytes():
+ raise SystemExit('conflicting source notice evidence')
+ else:
+ shutil.copyfile(source, destination)
+ with Path(os.environ['GITHUB_ENV']).open('a', encoding='utf-8') as output:
+ output.write('KTAV_NATIVE_NOTICES=' + (evidence / 'NOTICE.json.gz').as_posix() + chr(10))
+ - name: Build standalone LSP with exact embedded notices
+ run: cargo build --locked --release --manifest-path lsp/Cargo.toml --target ${{ matrix.target }}
+ - name: Preserve release binary and map identity before tests
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import hashlib
+ import json
+ import os
+ from pathlib import Path
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-evidence'
+ binary = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release/ktav-lsp.exe'
+ record = {'binary_sha256': hashlib.sha256(binary.read_bytes()).hexdigest(), 'map_sha256': hashlib.sha256((evidence / 'native-link.map').read_bytes()).hexdigest()}
+ (evidence / 'release-before-tests.json').write_text(json.dumps(record, sort_keys=True))
+ - name: Fingerprint actual linker inputs without publishing object files
+ shell: python
+ run: |
+ import hashlib
+ import json
+ import os
+ from pathlib import Path, PurePosixPath
+ import tarfile
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-evidence'
+ reproduction = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-release-link.tar'
+ if not reproduction.is_file() or reproduction.stat().st_size > 512 * 1024 * 1024:
+ raise SystemExit('missing or oversized release linker reproduction')
+ inputs = []
+ seen = set()
+ total = 0
+ with tarfile.open(reproduction, mode='r:') as archive:
+ for member in archive:
+ path = PurePosixPath(member.name)
+ if path.is_absolute() or '..' in path.parts or member.name in seen or '\\' in member.name or member.issym() or member.islnk():
+ raise SystemExit('unsafe or duplicate linker input')
+ seen.add(member.name)
+ if member.isdir():
+ continue
+ if not member.isfile() or member.size < 0 or member.size > 128 * 1024 * 1024:
+ raise SystemExit('invalid linker input size/type')
+ total += member.size
+ if total > 512 * 1024 * 1024 or len(seen) > 8192:
+ raise SystemExit('linker input inventory exceeds bound')
+ stream = archive.extractfile(member)
+ checksum = hashlib.sha256()
+ size = 0
+ while chunk := stream.read(1024 * 1024):
+ checksum.update(chunk)
+ size += len(chunk)
+ if size != member.size:
+ raise SystemExit('truncated linker input')
+ inputs.append({'path': member.name, 'size': size, 'sha256': checksum.hexdigest()})
+ if not inputs or not any(item['path'].endswith('/response.txt') for item in inputs):
+ raise SystemExit('linker reproduction lacks command/input evidence')
+ (evidence / 'link-input-fingerprints.json').write_text(json.dumps({'release_identity': json.loads((evidence / 'release-before-tests.json').read_text()), 'inputs': inputs}, sort_keys=True, indent=2), encoding='utf-8')
+ - name: Actual matching-CPU LSP tests in a separate target directory
+ if: matrix.target == 'x86_64-pc-windows-gnullvm'
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ environment = {**os.environ, 'CARGO_TARGET_DIR': str(Path(os.environ['RUNNER_TEMP']) / 'gnullvm-test-target'), 'CARGO_ENCODED_RUSTFLAGS': '-C' + chr(31) + 'target-feature=+crt-static'}
+ subprocess.run(['cargo', 'test', '--locked', '--release', '--manifest-path', 'lsp/Cargo.toml', '--target', os.environ['LSP_TARGET']], env=environment, check=True)
+ - name: Capture actual PE imports, runtime map and original license files
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import base64
+ import hashlib
+ import json
+ import os
+ from pathlib import Path
+ import re
+ import subprocess
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-evidence'
+ sdk = Path(os.environ['LLVM_MINGW_CANDIDATE'])
+ binary = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release/ktav-lsp.exe'
+ if not binary.is_file() or not (evidence / 'native-link.map').is_file():
+ raise SystemExit('missing actual candidate binary/map')
+ before = json.loads((evidence / 'release-before-tests.json').read_text())
+ if hashlib.sha256(binary.read_bytes()).hexdigest() != before['binary_sha256'] or hashlib.sha256((evidence / 'native-link.map').read_bytes()).hexdigest() != before['map_sha256']:
+ raise SystemExit('tests changed the release binary or its linker map')
+ if Path('lsp/Cargo.lock').read_bytes() != (evidence / 'Cargo.lock').read_bytes():
+ raise SystemExit('candidate build changed existing lock')
+ readobj = sdk / 'bin/llvm-readobj.exe'
+ pe = subprocess.check_output([str(readobj), '--file-headers', '--coff-imports', str(binary)])
+ (evidence / 'pe-inputs.txt').write_bytes(pe)
+ imports = re.findall(rb'^\s*Name: ([^\r\n]+[.]dll)\s*$', pe, re.M | re.I)
+ if not imports or any(name.lower().startswith((b'libunwind', b'libgcc', b'libstdc++', b'libc++')) for name in imports):
+ raise SystemExit('candidate executable still requires non-OS compiler runtime DLL')
+ notices = []
+ total = 0
+ for path in sorted(sdk.rglob('*')):
+ if not path.is_file() or not re.match(r'(?i)^(?:license|copying|copyright|notice)', path.name):
+ continue
+ if path.stat().st_size > 4 * 1024 * 1024:
+ raise SystemExit('candidate legal document exceeds bound')
+ data = path.read_bytes()
+ total += len(data)
+ if total > 32 * 1024 * 1024:
+ raise SystemExit('candidate legal inventory exceeds bound')
+ notices.append({'path': path.relative_to(sdk).as_posix(), 'sha256': hashlib.sha256(data).hexdigest(), 'raw_bytes_base64': base64.b64encode(data).decode('ascii')})
+ (evidence / 'sdk-legal.json').write_text(json.dumps(notices, indent=2), encoding='utf-8')
+ (evidence / 'binary-fingerprint.json').write_text(json.dumps({'target': os.environ['LSP_TARGET'], 'binary_sha256': hashlib.sha256(binary.read_bytes()).hexdigest(), 'native_execution': os.environ['LSP_TARGET'] == 'x86_64-pc-windows-gnullvm', 'scope': 'Compatibility prototype only; inspect retained runtime inputs before selecting licensing policy.'}, sort_keys=True, indent=2), encoding='utf-8')
+ - name: Verify exact embedded/plain notices, CPU and retained runtime inputs
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-evidence'
+ binary = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release/ktav-lsp.exe'
+ subprocess.run([sys.executable, 'scripts/check_lsp_gnullvm.py', str(evidence), str(binary), os.environ['LSP_TARGET']], check=True)
+ - name: Run standalone executable without SDK DLL search paths
+ if: matrix.target == 'x86_64-pc-windows-gnullvm'
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import json
+ import os
+ from pathlib import Path
+ import shutil
+ import subprocess
+ probe = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-standalone-probe'
+ probe.mkdir()
+ source = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release/ktav-lsp.exe'
+ binary = probe / 'ktav-lsp.exe'
+ shutil.copyfile(source, binary)
+ windows = Path(os.environ['SystemRoot'])
+ environment = {**os.environ, 'PATH': str(windows / 'System32') + os.pathsep + str(windows)}
+ result = subprocess.run([str(binary)], input=b'', stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=probe, env=environment, timeout=30)
+ evidence = Path(os.environ['RUNNER_TEMP']) / 'gnullvm-evidence'
+ (evidence / 'standalone-stderr.txt').write_bytes(result.stderr)
+ if result.returncode != 0 or result.stdout:
+ raise SystemExit('standalone candidate failed without SDK DLL paths or emitted non-protocol stdout')
+ (evidence / 'standalone-probe.json').write_text(json.dumps({'sdk_path_removed': True, 'only_executable_staged': True, 'exit_code': result.returncode, 'empty_stdin_stdout_empty': True}, sort_keys=True, indent=2))
+ - uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: windows-gnullvm-evidence-${{ matrix.target }}
+ path: ${{ runner.temp }}/gnullvm-evidence/
+ if-no-files-found: warn
+ - name: Stage complete binary, legal notices and required source payload
+ shell: python
+ env:
+ LSP_TARGET: ${{ matrix.target }}
+ run: |
+ import os
+ from pathlib import Path
+ import subprocess
+ import sys
+ root = Path(os.environ['RUNNER_TEMP'])
+ evidence = root / 'gnullvm-evidence'
+ binary = Path('lsp/target') / os.environ['LSP_TARGET'] / 'release/ktav-lsp.exe'
+ output = root / 'lsp-distribution'
+ subprocess.run([sys.executable, 'scripts/lsp_distribution.py', 'stage', str(evidence), str(binary), os.environ['LSP_TARGET'], str(root / 'gnullvm-evidence'), str(output)], check=True)
+ subprocess.run([sys.executable, 'scripts/lsp_distribution.py', 'verify', str(output)], check=True)
+ - uses: actions/upload-artifact@v4
+ if: success()
+ with:
+ name: lsp-distribution-${{ matrix.target }}
+ path: ${{ runner.temp }}/lsp-distribution/
+ if-no-files-found: error
diff --git a/README.md b/README.md
index 74dfee8..3300b83 100644
--- a/README.md
+++ b/README.md
@@ -149,7 +149,15 @@ CHANGELOG lists changes per subproject under each version heading.
## License
-MIT OR Apache-2.0. See [LICENSE-MIT](LICENSE-MIT) and [LICENSE-APACHE](LICENSE-APACHE).
+Ktav's own code is MIT OR Apache-2.0. See [LICENSE-MIT](LICENSE-MIT) and [LICENSE-APACHE](LICENSE-APACHE). Bundled third-party code retains its own licenses and notices; the first-party license does not replace them.
+
+### Native binaries, notices and source
+
+The license-checked release pipeline delivers each LSP executable together with `*.distribution.json`, readable `*.THIRD-PARTY-NOTICES.txt`, `*.NOTICE.json`, its compressed copy, the original Rust `*.COPYRIGHT-library.html`, `*.Cargo.lock`, and both Ktav license files. Platform-specific runtime notices are delivered alongside them. Keep the complete platform payload when redistributing; copying only the executable drops required materials.
+
+The GNU Linux ARM64 payload also includes `ktav-lsp-source-aarch64-unknown-linux-gnu.tar.gz` and `*.source-binding.json`. Its retained startup code is subject to LGPL-2.1-or-later without the compiled-linking exception present in the reviewed x64 startup. The matching source archive supplies corresponding source and relinking materials; use its rebuild script to rebuild with modified startup source. This does not change the license of Ktav's own code.
+
+Universal plugins carry the same complete payloads: `bin//` in the VS Code extension and `lib/bin//` in the IntelliJ plugin. The required ARM64 source archive adds approximately 94 MB to each universal plugin. CI verifies the actual VSIX/IntelliJ ZIP contents, executable notice resources and source bindings, not only staging directories. These checks do not retroactively replace historical published assets.
## Other Ktav implementations
diff --git a/ci/about.toml b/ci/about.toml
new file mode 100644
index 0000000..9ef5947
--- /dev/null
+++ b/ci/about.toml
@@ -0,0 +1,11 @@
+accepted = [
+ "MIT",
+ "ISC",
+ "BSD-2-Clause",
+ "BSD-3-Clause",
+ "Zlib",
+ "BSL-1.0",
+ "Apache-2.0 WITH LLVM-exception",
+ "Apache-2.0",
+ "Unicode-3.0",
+]
diff --git a/ci/allowed-licenses.json b/ci/allowed-licenses.json
new file mode 100644
index 0000000..12ba6f6
--- /dev/null
+++ b/ci/allowed-licenses.json
@@ -0,0 +1,91 @@
+{
+ "allowedLicenses": [
+ {
+ "moduleLicense": "MIT"
+ },
+ {
+ "moduleLicense": "MIT License"
+ },
+ {
+ "moduleLicense": "Apache-2[.]0"
+ },
+ {
+ "moduleLicense": "Apache License 2[.]0"
+ },
+ {
+ "moduleLicense": "Apache License, Version 2[.]0"
+ },
+ {
+ "moduleLicense": "The Apache License, Version 2[.]0"
+ },
+ {
+ "moduleLicense": "The Apache Software License, Version 2[.]0"
+ },
+ {
+ "moduleLicense": "BSD-2-Clause"
+ },
+ {
+ "moduleLicense": "BSD-3-Clause"
+ },
+ {
+ "moduleLicense": "New BSD License"
+ },
+ {
+ "moduleLicense": "ISC"
+ },
+ {
+ "moduleName": "org[.]junit([.].*)?:.*",
+ "moduleLicense": "Eclipse Public License - v 2[.]0"
+ },
+ {
+ "moduleName": "org[.]junit([.].*)?:.*",
+ "moduleLicense": "Eclipse Public License v2[.]0"
+ },
+ {
+ "moduleName": "junit:junit",
+ "moduleVersion": "4[.]13[.]2",
+ "moduleLicense": "Eclipse Public License 1[.]0"
+ },
+ {
+ "moduleName": "com\\.jetbrains\\.intellij\\.platform:test\\-framework",
+ "moduleVersion": "243\\.21565\\.193"
+ },
+ {
+ "moduleName": "com\\.jetbrains\\.intellij\\.platform:test\\-framework\\-common",
+ "moduleVersion": "243\\.21565\\.193"
+ },
+ {
+ "moduleName": "com\\.jetbrains\\.intellij\\.platform:test\\-framework\\-core",
+ "moduleVersion": "243\\.21565\\.193"
+ },
+ {
+ "moduleName": "com\\.jetbrains\\.intellij\\.platform:test\\-framework\\-team\\-city",
+ "moduleVersion": "243\\.21565\\.193"
+ },
+ {
+ "moduleName": "com\\.jetbrains\\.intellij\\.tools:tests\\-bootstrap",
+ "moduleVersion": "243\\.21565\\.193"
+ },
+ {
+ "moduleName": "com\\.jetbrains:jbr\\-api",
+ "moduleVersion": "1\\.0\\.0"
+ },
+ {
+ "moduleName": "org\\.jetbrains\\.intellij\\.deps:trove4j",
+ "moduleVersion": "1\\.0\\.20200330",
+ "moduleLicense": "GNU LESSER GENERAL PUBLIC LICENSE 2[.]1"
+ },
+ {
+ "moduleName": "org\\.jetbrains\\.kotlin\\.jvm:org\\.jetbrains\\.kotlin\\.jvm\\.gradle\\.plugin",
+ "moduleVersion": "2\\.0\\.0"
+ },
+ {
+ "moduleName": "org\\.jetbrains\\.intellij\\.platform:org\\.jetbrains\\.intellij\\.platform\\.gradle\\.plugin",
+ "moduleVersion": "2\\.2\\.0"
+ },
+ {
+ "moduleName": "idea:ideaIC",
+ "moduleVersion": "2025\\.2"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/ci/check-intellij-distribution.py b/ci/check-intellij-distribution.py
new file mode 100644
index 0000000..c2122b2
--- /dev/null
+++ b/ci/check-intellij-distribution.py
@@ -0,0 +1,133 @@
+"""Проверить Ktav licenses и отсутствие IDE SDK code в actual plugin ZIP."""
+
+import hashlib
+import io
+import json
+from pathlib import Path, PurePosixPath
+import stat
+import sys
+import zipfile
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
+from check_lsp_plugin_zip import MAX_SOURCE, verify as verify_lsp_zip
+
+MAX_ENTRY = 64 * 1024 * 1024
+MAX_ARCHIVE = 256 * 1024 * 1024
+NATIVE_PREFIXES = (b'\x7fELF', b'MZ', b'\x00asm', b'!\n', b'\xcf\xfa\xed\xfe', b'\xfe\xed\xfa\xcf', b'\xca\xfe\xba\xbe', b'\xbe\xba\xfe\xca')
+PLATFORMS = {'linux-x64', 'linux-arm64', 'darwin-x64', 'darwin-arm64', 'win32-x64', 'win32-arm64'}
+
+
+def entries(archive, verified_source_entries=()):
+ records = archive.infolist()
+ if len(records) > 30000 or sum(item.file_size for item in records) > MAX_ARCHIVE:
+ raise ValueError('archive inventory exceeds limits')
+ names = set()
+ for item in records:
+ name = item.filename
+ path = PurePosixPath(name)
+ if path.is_absolute() or '..' in path.parts or '\\' in name or ':' in name:
+ raise ValueError('unsafe archive path')
+ if name in names:
+ raise ValueError('duplicate archive member')
+ names.add(name)
+ if stat.S_ISLNK(item.external_attr >> 16):
+ raise ValueError('archive symlink requires review')
+ limit = MAX_SOURCE if name in verified_source_entries else MAX_ENTRY
+ if item.file_size > limit:
+ raise ValueError('archive member exceeds size limit')
+ if not item.is_dir():
+ yield item
+
+
+def read(archive, item):
+ with archive.open(item) as stream:
+ data = stream.read(MAX_ENTRY + 1)
+ if len(data) > MAX_ENTRY:
+ raise ValueError('archive member exceeds read limit')
+ return data
+
+
+def verify(path, project):
+ if path.stat().st_size > MAX_ARCHIVE:
+ raise ValueError('plugin ZIP exceeds size limit')
+ licenses = {name: (project / name).read_bytes() for name in ('LICENSE-MIT', 'LICENSE-APACHE')}
+ jars = []
+ native = []
+ plugin_descriptors = 0
+ with zipfile.ZipFile(path) as outer:
+ has_manifests = any(item.filename.endswith('.distribution.json') for item in outer.infolist())
+ lsp = verify_lsp_zip(path, 'intellij') if has_manifests else None
+ verified_sources = lsp['verified_source_entries'] if lsp else ()
+ for item in entries(outer, verified_sources):
+ name = item.filename
+ if not name.startswith('ktav-intellij/'):
+ raise ValueError('unexpected plugin root')
+ if name in verified_sources:
+ continue
+ data = read(outer, item)
+ if name.endswith('.jar'):
+ with zipfile.ZipFile(io.BytesIO(data)) as jar:
+ members = list(entries(jar))
+ own_classes = 0
+ for member in members:
+ value = read(jar, member)
+ if member.filename.endswith('.class'):
+ if not member.filename.startswith('lang/ktav/') or not value.startswith(b'\xca\xfe\xba\xbe'):
+ raise ValueError(f'non-Ktav class bundled: {member.filename}')
+ own_classes += 1
+ elif value.startswith(NATIVE_PREFIXES) or value.startswith(b'PK\x03\x04') or member.filename.endswith(('.so', '.dll', '.dylib', '.jar', '.a')):
+ raise ValueError('hidden executable or archive in plugin JAR')
+ if member.filename == 'META-INF/plugin.xml':
+ plugin_descriptors += 1
+ member_names = {member.filename for member in members}
+ for license_name, expected in licenses.items():
+ if 'META-INF/' + license_name not in member_names:
+ raise ValueError('Ktav license missing from plugin JAR')
+ if jar.read('META-INF/' + license_name) != expected:
+ raise ValueError('packaged Ktav license differs from source')
+ jars.append({'path': name, 'sha256': hashlib.sha256(data).hexdigest(), 'classes': own_classes})
+ elif data.startswith(NATIVE_PREFIXES) or name.endswith(('.so', '.dll', '.dylib', '.exe', '.class', '.a')):
+ parts = PurePosixPath(name).parts
+ if len(parts) != 5 or parts[:3] != ('ktav-intellij', 'lib', 'bin') or parts[3] not in PLATFORMS:
+ raise ValueError('unexpected native or SDK payload')
+ expected = 'ktav-lsp.exe' if parts[3].startswith('win32-') else 'ktav-lsp'
+ if parts[4] != expected:
+ raise ValueError('unexpected native payload name')
+ signatures = (b'\x7fELF',) if parts[3].startswith('linux-') else ((b'MZ',) if parts[3].startswith('win32-') else (b'\xcf\xfa\xed\xfe', b'\xfe\xed\xfa\xcf'))
+ if not data.startswith(signatures):
+ raise ValueError('unexpected native LSP format')
+ native.append({'path': name, 'sha256': hashlib.sha256(data).hexdigest()})
+ elif data.startswith(b'PK\x03\x04'):
+ raise ValueError('hidden archive in plugin ZIP')
+ if not jars or plugin_descriptors != 1 or not any(item['classes'] for item in jars):
+ raise ValueError('missing or duplicate Ktav plugin descriptor/classes')
+ return {
+ 'schema_version': 1,
+ 'archive': path.name,
+ 'archive_sha256': hashlib.sha256(path.read_bytes()).hexdigest(),
+ 'coverage': 'Ktav JAR license bytes and exclusion of IDE SDK/tooling JVM classes. Native LSP code and license obligations require separate evidence.',
+ 'jars': jars,
+ 'native_lsp_payloads': native,
+ 'lsp_distribution': lsp,
+ 'licenses': {name: hashlib.sha256(value).hexdigest() for name, value in licenses.items()},
+ }
+
+
+def main():
+ if len(sys.argv) != 4:
+ raise SystemExit('usage: check-intellij-distribution.py DISTRIBUTION_DIRECTORY PROJECT_ROOT REPORT')
+ try:
+ archives = list(Path(sys.argv[1]).glob('*.zip'))
+ if len(archives) != 1:
+ raise ValueError('expected exactly one IntelliJ distribution ZIP')
+ result = verify(archives[0], Path(sys.argv[2]))
+ output = Path(sys.argv[3])
+ output.parent.mkdir(parents=True, exist_ok=True)
+ output.write_text(json.dumps(result, sort_keys=True, indent=2) + '\n', encoding='utf-8')
+ except (OSError, ValueError, KeyError, zipfile.BadZipFile) as error:
+ raise SystemExit(str(error)) from error
+ print('Verified actual IntelliJ ZIP: Ktav licenses retained; only Ktav JAR classes and declared native LSP paths')
+
+
+if __name__ == '__main__':
+ main()
diff --git a/ci/check-npm-licenses.mjs b/ci/check-npm-licenses.mjs
new file mode 100644
index 0000000..7528062
--- /dev/null
+++ b/ci/check-npm-licenses.mjs
@@ -0,0 +1,135 @@
+import { createHash } from 'node:crypto';
+import { readFile, readdir } from 'node:fs/promises';
+import { createRequire } from 'node:module';
+import { spawnSync } from 'node:child_process';
+import { join, resolve } from 'node:path';
+import { pathToFileURL } from 'node:url';
+
+const require = createRequire(new URL('../vscode/package.json', import.meta.url));
+const parse = require('spdx-expression-parse');
+const unrestricted = new Set(['MIT', 'Apache-2.0', 'BSD-2-Clause', 'BSD-3-Clause', 'ISC', '0BSD', 'Zlib']);
+const developmentOnly = new Set(['BlueOak-1.0.0', 'Artistic-2.0', 'CC-BY-3.0', 'CC0-1.0', 'EPL-2.0', 'Python-2.0', 'WTFPL']);
+const reviewedSigningLicense = '80780388a077c74609a5fc7ee1cc3d382740a5e48d87f7aac5a20cbddef3e91c';
+const platformNames = new Set(['alpine-arm64', 'alpine-x64', 'darwin-arm64', 'darwin-x64', 'linux-arm', 'linux-arm64', 'linux-x64', 'win32-arm64', 'win32-x64']);
+
+export function allowedExpression(expression, dev) {
+ try {
+ function visit(node) {
+ if (node.conjunction === 'and') return visit(node.left) && visit(node.right);
+ if (node.conjunction === 'or') return visit(node.left) || visit(node.right);
+ if (node.exception || node.plus) return false;
+ return unrestricted.has(node.license) || (dev && developmentOnly.has(node.license));
+ }
+ return visit(parse(expression));
+ } catch {
+ return false;
+ }
+}
+
+export function isReviewedSigningPackage(path, pkg) {
+ const prefix = 'node_modules/@vscode/vsce-sign';
+ if (pkg?.dev !== true || pkg?.license !== 'SEE LICENSE IN LICENSE.txt') return false;
+ if (path === prefix) return pkg.version === '2.0.9';
+ if (!path.startsWith(`${prefix}-`)) return false;
+ return pkg.version === '2.0.6' && platformNames.has(path.slice(`${prefix}-`.length));
+}
+
+export function inspectLock(lock) {
+ if (lock?.lockfileVersion !== 3 || !lock.packages || typeof lock.packages !== 'object' || Array.isArray(lock.packages) || !lock.packages['']) {
+ throw new Error('Invalid npm lockfile');
+ }
+ const failures = [];
+ const restricted = [];
+ for (const [path, pkg] of Object.entries(lock.packages)) {
+ if (!path) continue;
+ if (path === 'node_modules/@vscode/vsce-sign' || path.startsWith('node_modules/@vscode/vsce-sign-')) {
+ if (isReviewedSigningPackage(path, pkg)) restricted.push({ path, ...pkg });
+ else failures.push(`${path}: signing package requires review`);
+ } else if (typeof pkg?.license !== 'string' || !allowedExpression(pkg.license, pkg.dev === true)) {
+ failures.push(`${path}: unapproved or missing license ${JSON.stringify(pkg?.license)}`);
+ }
+ }
+ return { failures, restricted };
+}
+
+export function dependencyFreeManifest(pkg) {
+ const fields = ['dependencies', 'devDependencies', 'optionalDependencies', 'peerDependencies', 'bundledDependencies', 'bundleDependencies', 'workspaces'];
+ return fields.every((field) => pkg[field] == null || (typeof pkg[field] === 'object' && Object.keys(pkg[field]).length === 0));
+}
+
+export function verifySigningBytes(pkg, archive, licenseText) {
+ if (typeof pkg.integrity !== 'string' || !pkg.integrity.startsWith('sha512-')) return false;
+ const digest = createHash('sha512').update(archive).digest('base64');
+ return pkg.integrity === `sha512-${digest}` && createHash('sha256').update(licenseText).digest('hex') === reviewedSigningLicense;
+}
+
+async function checkManifests(dir = '.') {
+ const known = new Set([
+ 'lsp/Cargo.toml', 'lsp/Cargo.lock', 'intellij/build.gradle.kts', 'intellij/settings.gradle.kts',
+ 'polydoc/package.json', 'polydoc/package-lock.json', 'vscode/package.json', 'vscode/package-lock.json',
+ 'vscode/src/test/vsix/driver/package.json',
+ ]);
+ const pattern = /^(package(-lock)?\.json|npm-shrinkwrap\.json|yarn\.lock|pnpm-lock\.yaml|Cargo\.(toml|lock)|go\.(mod|sum)|pyproject\.toml|requirements[^/]*\.txt|composer\.(json|lock)|pom\.xml|[^/]+\.csproj|build\.gradle(\.kts)?|settings\.gradle(\.kts)?|libs\.versions\.toml|Gemfile(\.lock)?)$/;
+ async function walk(path) {
+ for (const entry of await readdir(path, { withFileTypes: true })) {
+ if ((path === '.' && entry.name === '.git') || entry.name === 'node_modules') continue;
+ const child = join(path, entry.name);
+ if (entry.isSymbolicLink()) throw new Error(`Symlink requires review: ${child}`);
+ if (entry.isDirectory()) await walk(child);
+ else if (pattern.test(entry.name) && !known.has(child)) throw new Error(`New manifest requires review: ${child}`);
+ }
+ }
+ await walk(dir);
+ const settings = await readFile('intellij/settings.gradle.kts');
+ if (createHash('sha256').update(settings).digest('hex') !== 'd904d2c8d153196a43a6ad8000df204372db81837cf0187e832eb4dfa55e661e') {
+ throw new Error('Gradle settings changed; review settings-level dependencies');
+ }
+}
+
+async function main() {
+ if (!allowedExpression('CC0-1.0', true) || allowedExpression('CC0-1.0', false)) throw new Error('CC0 development-only policy failed');
+ await checkManifests();
+ const vscode = JSON.parse(await readFile('vscode/package-lock.json', 'utf8'));
+ const docs = JSON.parse(await readFile('polydoc/package-lock.json', 'utf8'));
+ const driver = JSON.parse(await readFile('vscode/src/test/vsix/driver/package.json', 'utf8'));
+ if (!dependencyFreeManifest(driver)) throw new Error('VSIX driver dependencies require license review');
+ const parser = vscode.packages?.['node_modules/spdx-expression-parse'];
+ if (parser?.version !== '3.0.1' || parser?.license !== 'MIT') throw new Error('SPDX parser changed; review it first');
+ const failures = [];
+ const { failures: vscodeFailures, restricted } = inspectLock(vscode);
+ failures.push(...vscodeFailures, ...inspectLock(docs).failures);
+ for (const pkg of restricted) {
+ try {
+ const url = new URL(pkg.resolved);
+ if (url.protocol !== 'https:' || url.hostname !== 'registry.npmjs.org') throw new Error('untrusted registry URL');
+ const response = await fetch(url, { redirect: 'error', signal: AbortSignal.timeout(30000) });
+ if (!response.ok) throw new Error(`registry HTTP ${response.status}`);
+ const chunks = [];
+ let size = 0;
+ for await (const chunk of response.body) {
+ size += chunk.length;
+ if (size > 64 * 1024 * 1024) throw new Error('archive exceeds size limit');
+ chunks.push(chunk);
+ }
+ const archive = Buffer.concat(chunks);
+ const result = spawnSync('tar', ['-xOzf', '-', 'package/LICENSE.txt'], { input: archive, maxBuffer: 1024 * 1024 });
+ if (result.status !== 0 || !verifySigningBytes(pkg, archive, result.stdout)) throw new Error('archive integrity or reviewed license changed');
+ const metadata = spawnSync('tar', ['-xOzf', '-', 'package/package.json'], { input: archive, maxBuffer: 1024 * 1024 });
+ if (metadata.status !== 0) throw new Error('package metadata missing');
+ const actual = JSON.parse(metadata.stdout.toString('utf8'));
+ if (actual.name !== pkg.path.slice('node_modules/'.length) || actual.version !== pkg.version || actual.license !== pkg.license) {
+ throw new Error('package metadata differs from lockfile');
+ }
+ } catch (error) {
+ failures.push(`${pkg.path}: ${error.message}`);
+ }
+ }
+ if (failures.length) {
+ for (const failure of failures) console.error(failure);
+ process.exitCode = 1;
+ } else {
+ console.log(`Checked ${Object.keys(vscode.packages).length - 1} VS Code and ${Object.keys(docs.packages).length - 1} docs lock entries`);
+ }
+}
+
+if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) await main();
diff --git a/ci/check-sdk-license-evidence.py b/ci/check-sdk-license-evidence.py
new file mode 100644
index 0000000..325ba8f
--- /dev/null
+++ b/ci/check-sdk-license-evidence.py
@@ -0,0 +1,77 @@
+"""Проверить source-backed разрешения только для точных test SDK artifacts."""
+
+import hashlib
+import json
+from pathlib import Path
+import re
+import sys
+
+REVISION = '9ae2edc879df5e9e189483752c4c4ae01650a566'
+LICENSE_SHA256 = 'cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30'
+VERSION = '243.21565.193'
+OTHER_MISSING_METADATA = {
+ ('com.jetbrains:jbr-api', '1.0.0'),
+ ('idea:ideaIC', '2025.2'),
+ ('org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin', '2.0.0'),
+ ('org.jetbrains.intellij.platform:org.jetbrains.intellij.platform.gradle.plugin', '2.2.0'),
+}
+MODULES = {
+ 'com.jetbrains.intellij.platform:test-framework',
+ 'com.jetbrains.intellij.platform:test-framework-common',
+ 'com.jetbrains.intellij.platform:test-framework-core',
+ 'com.jetbrains.intellij.platform:test-framework-team-city',
+ 'com.jetbrains.intellij.tools:tests-bootstrap',
+}
+
+
+def verify(inventory, review, policy):
+ if not isinstance(inventory, list) or review.get('schema_version') != 1:
+ raise ValueError('invalid SDK evidence schema')
+ if review.get('source_revision') != REVISION:
+ raise ValueError('unreviewed SDK source revision')
+ text = review.get('upstream_license_text', '').encode('utf-8')
+ if hashlib.sha256(text).hexdigest() != LICENSE_SHA256 or review.get('upstream_license_sha256') != LICENSE_SHA256:
+ raise ValueError('SDK source license changed')
+ dependencies = review.get('dependencies', [])
+ if len(dependencies) != len(MODULES) or {item.get('module_name') for item in dependencies} != MODULES:
+ raise ValueError('SDK review module set changed')
+ expected_rules = {(re.escape(name), re.escape(VERSION)) for name in MODULES} | {(re.escape(name), re.escape(version)) for name, version in OTHER_MISSING_METADATA}
+ actual_rules = [item for item in policy['allowedLicenses'] if not item.get('moduleLicense')]
+ if len(actual_rules) != len(expected_rules) or {(item.get('moduleName'), item.get('moduleVersion')) for item in actual_rules} != expected_rules:
+ raise ValueError('unbound missing-metadata license allowance')
+ for dependency in dependencies:
+ name = dependency['module_name']
+ if dependency.get('module_version') != VERSION or dependency.get('license') != 'Apache-2.0':
+ raise ValueError('unreviewed SDK version or license')
+ source = dependency.get('source_archive', {})
+ if not re.fullmatch(r'[0-9a-f]{64}', source.get('sha256', '')) or not dependency.get('source_files'):
+ raise ValueError('SDK source evidence missing')
+ group, module = name.split(':')
+ if any(item.get('version') != VERSION for item in inventory if item.get('group') == group and item.get('name') == module):
+ raise ValueError(f'SDK artifact version changed: {name}')
+ matches = [item for item in inventory if item.get('group') == group and item.get('name') == module and item.get('version') == VERSION and item.get('file') == dependency['file_name']]
+ if len(matches) != 1:
+ raise ValueError(f'SDK artifact missing or duplicated: {name}')
+ artifact = matches[0]
+ if artifact.get('sha256') != dependency['binary_sha256']:
+ raise ValueError(f'SDK binary changed: {name}')
+ if set(artifact.get('configurations', [])) != {'::testRuntimeClasspath'} or dependency.get('configurations') != ['::testRuntimeClasspath']:
+ raise ValueError(f'SDK artifact entered a non-test configuration: {name}')
+ return len(dependencies)
+
+
+def main():
+ if len(sys.argv) != 4:
+ raise SystemExit('usage: check-sdk-license-evidence.py INVENTORY REVIEW POLICY')
+ try:
+ inventory, review, policy = [json.loads(Path(name).read_text(encoding='utf-8')) for name in sys.argv[1:]]
+ count = verify(inventory, review, policy)
+ output = Path(sys.argv[1]).parent / 'reviewed-test-sdk.json'
+ output.write_bytes(Path(sys.argv[2]).read_bytes())
+ except (OSError, ValueError, KeyError, TypeError) as error:
+ raise SystemExit(str(error)) from error
+ print(f'Verified source-backed licenses for {count} exact test-only SDK artifacts')
+
+
+if __name__ == '__main__':
+ main()
diff --git a/ci/check-tooling-license-evidence.py b/ci/check-tooling-license-evidence.py
new file mode 100644
index 0000000..6d55aad
--- /dev/null
+++ b/ci/check-tooling-license-evidence.py
@@ -0,0 +1,178 @@
+"""Проверить точные build/tooling approvals, не выдавая SDK runtime allowance."""
+
+import hashlib
+import importlib.util
+import json
+from pathlib import Path, PurePosixPath
+import re
+import sys
+import xml.etree.ElementTree as ET
+import zipfile
+
+ROOT = Path(__file__).resolve().parent
+spec = importlib.util.spec_from_file_location('sdk_license_evidence', ROOT / 'check-sdk-license-evidence.py')
+sdk = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(sdk)
+
+VERSIONS = {
+ 'com.jetbrains:jbr-api': '1.0.0',
+ 'org.jetbrains.intellij.deps:trove4j': '1.0.20200330',
+ 'org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin': '2.0.0',
+ 'org.jetbrains.intellij.platform:org.jetbrains.intellij.platform.gradle.plugin': '2.2.0',
+ 'idea:ideaIC': '2025.2',
+}
+BINARIES = {
+ 'com.jetbrains:jbr-api': ('test-api', '::testRuntimeClasspath', 'f472369968f6692804e528e3a17d3d71386ac502d1312164b6dd670b46d966e3', '4d817ce6fcc231488c4531f010ea3b6b60662bd733a4ac2d5093fafac73ebd19', '984e98c3978c4a937668f5b7dab4c7016ad4b9733150ea3c66a235c1afe9750a', sdk.LICENSE_SHA256),
+ 'org.jetbrains.intellij.deps:trove4j': ('compiler-tooling', '::kotlinKlibCommonizerClasspath', 'c5fd725bffab51846bf3c77db1383c60aaaebfe1b7fe2f00d23fe1b7df0a439d', '2e0174e80b989eb5deafcfb77407c908a0abe1f67a80306f98aeca63246e5481', '7d4ca9217f2dd7a1992504dab980d1809abb10e0a9e49eabe8990680e3596035', '20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95'),
+}
+MARKERS = {
+ 'org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin': ('e48cc51526cf45e2dfe7dee2b9a71bbb39cc7742fb2f068fc57fb3a19a09fdd6', 'org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0'),
+ 'org.jetbrains.intellij.platform:org.jetbrains.intellij.platform.gradle.plugin': ('1a424f172cb381bc04bd369cc4ea179404ec76df13ffc89b4d667ca1f7f8dd44', 'org.jetbrains.intellij.platform:intellij-platform-gradle-plugin:2.2.0'),
+}
+SDK_TAR = '30e917c55507443c61674d0bdd5cbb40a5b02c628d5073f8a0028ef49e0c50b5'
+SDK_MANIFEST = 'df0bb8a33659a62dd4e55c37d99b9a1cd256090810ff399e63026bb8bc5de427'
+
+
+def digest(data):
+ return hashlib.sha256(data).hexdigest()
+
+
+def canonical(items):
+ return json.dumps(items, ensure_ascii=False, sort_keys=True, separators=(',', ':')).encode('utf-8')
+
+
+def scope(row, expected):
+ if set(row.get('configurations', [])) != {expected}:
+ raise ValueError('tooling entered an unreviewed configuration')
+
+
+def rows_for(inventory, name, version):
+ group, module = name.split(':')
+ rows = [row for row in inventory if row.get('group') == group and row.get('name') == module]
+ permitted_versions = {version, '2024.3'} if name == 'idea:ideaIC' else {version}
+ if any(row.get('version') not in permitted_versions for row in rows):
+ raise ValueError('unreviewed tooling version')
+ return [row for row in rows if row.get('version') == version]
+
+
+def verify(inventory, review, policy, distribution):
+ if review.get('schema_version') != 1:
+ raise ValueError('invalid tooling review schema')
+ dependencies = review.get('dependencies', [])
+ if len(dependencies) != len(VERSIONS) or {item.get('module_name') for item in dependencies} != set(VERSIONS):
+ raise ValueError('unreviewed tooling module set')
+ expected_rules = {(re.escape(name), re.escape(sdk.VERSION)) for name in sdk.MODULES} | {(re.escape(name), re.escape(version)) for name, version in sdk.OTHER_MISSING_METADATA}
+ missing = [rule for rule in policy['allowedLicenses'] if not rule.get('moduleLicense')]
+ if len(missing) != len(expected_rules) or {(rule.get('moduleName'), rule.get('moduleVersion')) for rule in missing} != expected_rules:
+ raise ValueError('unbound missing-metadata allowance')
+ trove = [rule for rule in policy['allowedLicenses'] if rule.get('moduleName') == re.escape('org.jetbrains.intellij.deps:trove4j')]
+ if len(trove) != 1 or trove[0].get('moduleVersion') != re.escape(VERSIONS['org.jetbrains.intellij.deps:trove4j']) or trove[0].get('moduleLicense') != 'GNU LESSER GENERAL PUBLIC LICENSE 2[.]1':
+ raise ValueError('unbound LGPL tooling allowance')
+ if any(re.search(r'GNU|GPL', rule.get('moduleLicense', '')) and rule not in trove for rule in policy['allowedLicenses']):
+ raise ValueError('unreviewed global GPL allowance')
+ if distribution.get('schema_version') != 1 or not distribution.get('jars') or not any(jar.get('classes', 0) for jar in distribution['jars']):
+ raise ValueError('actual plugin distribution evidence missing')
+
+ for item in dependencies:
+ name = item['module_name']
+ version = VERSIONS[name]
+ if item.get('module_version') != version:
+ raise ValueError('tooling review version changed')
+ rows = rows_for(inventory, name, version)
+ if name in BINARIES:
+ kind, expected_scope, binary_hash, source_hash, notice_hash, license_hash = BINARIES[name]
+ if item.get('kind') != kind or len(rows) != 1:
+ raise ValueError('tooling binary missing or duplicated')
+ row = rows[0]
+ if row.get('file') != item['file_name'] or row.get('sha256') != binary_hash or item.get('binary_sha256') != binary_hash:
+ raise ValueError('tooling binary identity changed')
+ scope(row, expected_scope)
+ scope(item, expected_scope)
+ if item['source_archive']['sha256'] != source_hash or digest(canonical(sorted(item['source_files'], key=lambda source: source['path']))) != notice_hash:
+ raise ValueError('tooling source notices changed')
+ if item.get('full_license_sha256') != license_hash or digest(item['full_license_text'].encode()) != license_hash:
+ raise ValueError('tooling license text changed')
+ expected_license = 'Apache-2.0' if kind == 'test-api' else 'LGPL-2.1-only AND LicenseRef-CERN-Trove'
+ if item.get('license') != expected_license:
+ raise ValueError('unreviewed tooling license selection')
+ elif name in MARKERS:
+ pom_hash, implementation = MARKERS[name]
+ if item.get('kind') != 'plugin-marker' or len(rows) != 1 or rows[0].get('artifact_type') != 'plugin-marker-pom' or rows[0].get('marker_code_artifacts') != 0:
+ raise ValueError('plugin marker contains unreviewed code or metadata')
+ row = rows[0]
+ scope(row, '::buildscript:classpath')
+ scope(item, '::buildscript:classpath')
+ data = row.get('metadata_text', '').encode('utf-8')
+ if row.get('sha256') != pom_hash or item.get('pom_sha256') != pom_hash or digest(data) != pom_hash or data != item['pom_text'].encode('utf-8'):
+ raise ValueError('plugin marker POM changed')
+ if b' 16 * 1024 * 1024:
+ raise ValueError('tooling evidence exceeds size limit')
+ return json.loads(data)
+
+
+def main():
+ if len(sys.argv) != 5:
+ raise SystemExit('usage: check-tooling-license-evidence.py INVENTORY REVIEW POLICY DISTRIBUTION_REPORT')
+ try:
+ inventory_path, review_path, policy_path, distribution_path = map(Path, sys.argv[1:])
+ inventory, review, policy, distribution = map(load, (inventory_path, review_path, policy_path, distribution_path))
+ archive_name = distribution['archive']
+ if PurePosixPath(archive_name).name != archive_name or '\\' in archive_name or ':' in archive_name or not archive_name.endswith('.zip'):
+ raise ValueError('invalid distribution evidence path')
+ archive_path = inventory_path.parent.parent / 'distributions' / archive_name
+ module_spec = importlib.util.spec_from_file_location('intellij_distribution', ROOT / 'check-intellij-distribution.py')
+ archive_checker = importlib.util.module_from_spec(module_spec)
+ module_spec.loader.exec_module(archive_checker)
+ actual = archive_checker.verify(archive_path, ROOT.parent)
+ if actual != distribution:
+ raise ValueError('actual plugin distribution evidence differs')
+ count = verify(inventory, review, policy, distribution)
+ (inventory_path.parent / 'reviewed-tooling-licenses.json').write_bytes(review_path.read_bytes())
+ except (OSError, ValueError, KeyError, TypeError, AttributeError, ET.ParseError, zipfile.BadZipFile) as error:
+ raise SystemExit(str(error)) from error
+ print(f'Verified {count} exact build/tooling reviews and actual plugin non-redistribution boundary')
+
+
+if __name__ == '__main__':
+ main()
diff --git a/ci/check-vsix-licenses.py b/ci/check-vsix-licenses.py
new file mode 100644
index 0000000..490abf6
--- /dev/null
+++ b/ci/check-vsix-licenses.py
@@ -0,0 +1,45 @@
+import json
+import re
+import sys
+import zipfile
+from pathlib import Path
+
+
+def check(names, packages):
+ failures = []
+ paths = [name for name in names if name.startswith('extension/node_modules/')]
+ entries = {f'extension/{path}/': data for path, data in packages.items() if path.startswith('node_modules/')}
+ for path in paths:
+ matches = [prefix for prefix in entries if path.startswith(prefix)]
+ if not matches:
+ failures.append(f'untracked dependency in VSIX: {path}')
+ continue
+ owner = max(matches, key=len)
+ if entries[owner].get('dev') is True:
+ failures.append(f'development dependency in VSIX: {path}')
+ for prefix, data in entries.items():
+ if data.get('dev') is True or not any(path.startswith(prefix) for path in paths):
+ continue
+ license_files = [path[len(prefix):] for path in paths if path.startswith(prefix)]
+ if not any(re.fullmatch(r'(?i)(license|copying)(\.[a-z0-9]+)?', name) for name in license_files):
+ failures.append(f'no package license file in VSIX: {prefix}')
+ return failures
+
+
+def main():
+ packages = json.loads(Path('vscode/package-lock.json').read_text(encoding='utf-8'))['packages']
+ with zipfile.ZipFile(sys.argv[1]) as archive:
+ names = archive.namelist()
+ failures = check(names, packages)
+ assert check(['extension/node_modules/x/index.js'], {'node_modules/x': {'dev': True}})
+ assert check(['extension/node_modules/y/index.js'], {})
+ assert check(['extension/node_modules/x/index.js'], {'node_modules/x': {}})
+ assert not check(['extension/node_modules/x/LICENSE'], {'node_modules/x': {}})
+ if failures:
+ print('\n'.join(failures), file=sys.stderr)
+ raise SystemExit(1)
+ print('Checked VSIX dependencies and license files')
+
+
+if __name__ == '__main__':
+ main()
diff --git a/ci/license-init.gradle b/ci/license-init.gradle
new file mode 100644
index 0000000..e7246c0
--- /dev/null
+++ b/ci/license-init.gradle
@@ -0,0 +1,159 @@
+initscript {
+ repositories {
+ mavenCentral()
+ gradlePluginPortal()
+ }
+ dependencies {
+ classpath "com.github.jk1:gradle-license-report:3.1.4"
+ }
+}
+
+gradle.projectsEvaluated {
+ def root = gradle.rootProject
+ root.pluginManager.apply(com.github.jk1.license.LicenseReportPlugin)
+ def report = root.extensions.getByType(com.github.jk1.license.LicenseReportExtension)
+ report.configurations = com.github.jk1.license.LicenseReportExtension.ALL
+ report.buildScriptProjects = ([root] + root.subprojects) as org.gradle.api.Project[]
+ report.excludeOwnGroup = false
+ report.allowedLicensesFile = root.file("../ci/allowed-licenses.json")
+
+ def guard = root.tasks.register("licenseDependencyBoundaries") {
+ doLast {
+ def testConfigurations = ["testCompileClasspath", "testRuntimeClasspath", "testAnnotationProcessor", "testDependencySources", "testImplementationDependenciesMetadata"] as Set
+ def derivedTestConfigurations = ["testDependencySources", "testImplementationDependenciesMetadata"] as Set
+ def violations = []
+ def forbidden = { group, configuration ->
+ !testConfigurations.contains(configuration) && (group == "junit" || group == "org.junit" || group.startsWith("org.junit."))
+ }
+ assert forbidden("org.junit.jupiter", "runtimeClasspath")
+ assert forbidden("org.junit.jupiter", "contestRuntimeClasspath")
+ assert !forbidden("org.junit.jupiter", "testRuntimeClasspath")
+ def inTestGraph = { id, ids -> ids.contains(id) }
+ assert inTestGraph("junit", ["junit"])
+ assert !inTestGraph("junit", ["other"])
+ root.allprojects.each { project ->
+ project.configurations.findAll { it.canBeResolved }.each { configuration ->
+ configuration.incoming.resolutionResult.allComponents.each { component ->
+ def id = component.id
+ if (id instanceof org.gradle.api.artifacts.component.ModuleComponentIdentifier && derivedTestConfigurations.contains(configuration.name) && (id.group == "junit" || id.group == "org.junit" || id.group.startsWith("org.junit."))) {
+ def testGraphs = ["testCompileClasspath", "testRuntimeClasspath"].collect { project.configurations.findByName(it) }.findAll { it != null }
+ if (!testGraphs.any { graph -> inTestGraph(id, graph.incoming.resolutionResult.allComponents.collect { it.id }) }) {
+ violations << "Test-derived dependency ${id} in ${configuration.name} not present in a test graph"
+ }
+ }
+ if (id instanceof org.gradle.api.artifacts.component.ModuleComponentIdentifier && forbidden(id.group, configuration.name)) {
+ violations << "Unexpected non-test dependency ${id} in ${project.path}:${configuration.name}"
+ }
+ }
+ }
+ }
+ if (!violations.isEmpty()) throw new GradleException(violations.unique().sort().join("\n"))
+ }
+ }
+ root.tasks.register("licenseArtifactInventory") {
+ doLast {
+ def seen = [:]
+ root.allprojects.each { project ->
+ project.configurations.findAll { it.canBeResolved && it.name != "testDependencySources" }.each { configuration ->
+ configuration.resolvedConfiguration.resolvedArtifacts.each { artifact ->
+ def id = artifact.moduleVersion.id
+ def key = "${id.group}:${id.name}:${id.version}:${artifact.file.name}"
+ if (!seen.containsKey(key)) {
+ def file = artifact.file
+ def digest = null
+ if (file.isFile()) {
+ def md = java.security.MessageDigest.getInstance("SHA-256")
+ file.withInputStream { stream ->
+ byte[] buffer = new byte[65536]
+ int count
+ while ((count = stream.read(buffer)) != -1) md.update(buffer, 0, count)
+ }
+ digest = md.digest().encodeHex().toString()
+ }
+ def directoryNotices = []
+ if (file.isDirectory() && id.group == "idea" && id.name == "ideaIC") {
+ long total = 0
+ root.fileTree(file).matching {
+ include("LICENSE*", "NOTICE*", "license/**", "jbr/legal/**")
+ }.files.findAll { it.isFile() }.sort { it.path }.each { notice ->
+ if (notice.name ==~ /(?i)(.*\.(txt|html|md|license)|LICENSE.*|NOTICE.*|COPYING.*|COPYRIGHT|ASSEMBLY_EXCEPTION|ADDITIONAL_LICENSE_INFO)/) {
+ if (!notice.canonicalFile.toPath().startsWith(file.canonicalFile.toPath())) throw new GradleException("SDK notice escapes artifact")
+ if (notice.length() > 2 * 1024 * 1024) throw new GradleException("SDK notice exceeds size limit")
+ byte[] bytes = notice.bytes
+ total += bytes.length
+ if (total > 8 * 1024 * 1024 || directoryNotices.size() >= 1000) throw new GradleException("SDK notice inventory exceeds limit")
+ def decoder = java.nio.charset.StandardCharsets.UTF_8.newDecoder().onMalformedInput(java.nio.charset.CodingErrorAction.REPORT)
+ def text = decoder.decode(java.nio.ByteBuffer.wrap(bytes)).toString()
+ def relative = file.toPath().relativize(notice.toPath()).toString().replace(File.separator, "/")
+ directoryNotices << [path: relative, sha256: java.security.MessageDigest.getInstance("SHA-256").digest(bytes).encodeHex().toString(), text: text]
+ }
+ }
+ if (directoryNotices.isEmpty()) throw new GradleException("SDK directory contains no license evidence")
+ }
+ seen[key] = [group: id.group, name: id.name, version: id.version, file: file.name, sha256: digest, directory_notices: directoryNotices, configurations: [] as Set]
+ }
+ seen[key].configurations.add("${project.path}:${configuration.name}")
+ }
+ }
+ }
+ root.allprojects.each { project ->
+ project.buildscript.configurations.findAll { it.canBeResolved }.each { configuration ->
+ def markerCode = configuration.resolvedConfiguration.resolvedArtifacts.findAll {
+ it.moduleVersion.id.name.endsWith(".gradle.plugin") && !it.file.name.endsWith(".pom")
+ }
+ if (!markerCode.isEmpty()) throw new GradleException("Plugin marker resolves code; license review required")
+ configuration.incoming.resolutionResult.allComponents.each { component ->
+ def id = component.id
+ if (id instanceof org.gradle.api.artifacts.component.ModuleComponentIdentifier && id.module.endsWith(".gradle.plugin")) {
+ def cache = new File(gradle.gradleUserHomeDir, "caches/modules-2/files-2.1").canonicalFile
+ def directory = new File(cache, "${id.group}/${id.module}/${id.version}")
+ if (!directory.canonicalFile.toPath().startsWith(cache.toPath())) throw new GradleException("Marker metadata escapes cache")
+ def poms = root.fileTree(directory).matching { include("**/*.pom") }.files
+ if (poms.isEmpty()) throw new GradleException("Resolved plugin marker has no cached POM: ${id}")
+ poms.sort { it.path }.each { pom ->
+ if (!pom.canonicalFile.toPath().startsWith(cache.toPath())) throw new GradleException("Marker POM escapes cache")
+ if (pom.length() > 65536) throw new GradleException("Marker POM exceeds size limit")
+ byte[] bytes = pom.bytes
+ def hash = java.security.MessageDigest.getInstance("SHA-256").digest(bytes).encodeHex().toString()
+ def key = "${id.group}:${id.module}:${id.version}:${pom.name}"
+ if (seen.containsKey(key) && seen[key].sha256 != hash) throw new GradleException("Ambiguous cached marker metadata: ${id}")
+ if (!seen.containsKey(key)) {
+ def decoder = java.nio.charset.StandardCharsets.UTF_8.newDecoder().onMalformedInput(java.nio.charset.CodingErrorAction.REPORT)
+ seen[key] = [group: id.group, name: id.module, version: id.version, file: pom.name, sha256: hash,
+ metadata_text: decoder.decode(java.nio.ByteBuffer.wrap(bytes)).toString(), artifact_type: "plugin-marker-pom", marker_code_artifacts: 0, configurations: [] as Set]
+ }
+ seen[key].configurations.add("${project.path}:buildscript:${configuration.name}")
+ }
+ }
+ }
+ }
+ }
+ def output = new File(root.layout.buildDirectory.get().asFile, "license-inventory/artifact-fingerprints.json")
+ output.parentFile.mkdirs()
+ output.text = groovy.json.JsonOutput.prettyPrint(groovy.json.JsonOutput.toJson(seen.values()))
+ }
+ }
+ def sdkGuard = root.tasks.register("checkReviewedSdkLicenses") {
+ dependsOn("licenseArtifactInventory")
+ doLast {
+ root.exec {
+ commandLine("python3", "-I", root.file("../ci/check-sdk-license-evidence.py"),
+ new File(root.layout.buildDirectory.get().asFile, "license-inventory/artifact-fingerprints.json"),
+ root.file("../ci/reviewed-intellij-test-licenses.json"), root.file("../ci/allowed-licenses.json"))
+ }
+ }
+ }
+ def toolingGuard = root.tasks.register("checkReviewedToolingLicenses") {
+ dependsOn("licenseArtifactInventory", root.tasks.named("checkIntellijDistribution"))
+ doLast {
+ root.exec {
+ commandLine("python3", "-I", root.file("../ci/check-tooling-license-evidence.py"),
+ new File(root.layout.buildDirectory.get().asFile, "license-inventory/artifact-fingerprints.json"),
+ root.file("../ci/reviewed-intellij-tooling-licenses.json"), root.file("../ci/allowed-licenses.json"),
+ new File(root.layout.buildDirectory.get().asFile, "license-inventory/plugin-distribution.json"))
+ }
+ }
+ }
+ root.tasks.named("checkLicense") { dependsOn(guard, sdkGuard, toolingGuard) }
+ root.tasks.named("publishPlugin") { dependsOn(root.tasks.named("checkLicense")) }
+}
diff --git a/ci/licenses/GPL-2.0.txt b/ci/licenses/GPL-2.0.txt
new file mode 100644
index 0000000..9efa6fb
--- /dev/null
+++ b/ci/licenses/GPL-2.0.txt
@@ -0,0 +1,338 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ , 1 April 1989
+ Moe Ghoul, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/ci/licenses/GPL-3.0.txt b/ci/licenses/GPL-3.0.txt
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/ci/licenses/GPL-3.0.txt
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/ci/licenses/LGPL-2.1.txt b/ci/licenses/LGPL-2.1.txt
new file mode 100644
index 0000000..f6683e7
--- /dev/null
+++ b/ci/licenses/LGPL-2.1.txt
@@ -0,0 +1,501 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ , 1 April 1990
+ Moe Ghoul, President of Vice
+
+That's all there is to it!
diff --git a/ci/licenses/gnu-source-texts.json b/ci/licenses/gnu-source-texts.json
new file mode 100644
index 0000000..3e9f5d7
--- /dev/null
+++ b/ci/licenses/gnu-source-texts.json
@@ -0,0 +1,22 @@
+{
+ "schema_version": 1,
+ "licenses": [
+ {
+ "file": "LGPL-2.1.txt",
+ "source": "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt",
+ "sha256": "20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95"
+ },
+ {
+ "file": "GPL-2.0.txt",
+ "source": "https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt",
+ "sha256": "edaef632cbb643e4e7a221717a6c441a4c1a7c918e6e4d56debc3d8739b233f6"
+ },
+ {
+ "file": "GPL-3.0.txt",
+ "source": "https://raw.githubusercontent.com/gcc-mirror/gcc/releases/gcc-14.2.0/COPYING3",
+ "git_blob": "94a9ed024d3859793618152ea559a168bbcbb5e2",
+ "sha256": "8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903"
+ }
+ ],
+ "coverage": "Original unmodified license documents supplied with corresponding SDK sources; the original source files determine which terms apply."
+}
diff --git a/ci/licenses/lsp-source-supplements.json b/ci/licenses/lsp-source-supplements.json
new file mode 100644
index 0000000..065bb6f
--- /dev/null
+++ b/ci/licenses/lsp-source-supplements.json
@@ -0,0 +1,130 @@
+{
+ "packages": [
+ {
+ "crate_checksum": "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299",
+ "crate_license_path": null,
+ "declared_license": "MIT OR Apache-2.0",
+ "license": "MIT",
+ "license_sha256": "23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3",
+ "license_source": "https://raw.githubusercontent.com/zrzka/anes-rs/378ac7461ecac29fde9e10df7b08359d1315a9ad/LICENSE-MIT",
+ "license_text": "Permission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n",
+ "name": "anes",
+ "reason": "Original source license replaces generated cargo-about fallback; original report retained.",
+ "vcs": {
+ "git": {
+ "sha1": "378ac7461ecac29fde9e10df7b08359d1315a9ad"
+ }
+ },
+ "version": "0.1.6"
+ },
+ {
+ "crate_checksum": "5aeb6f403d7a4911efb1e33402027fc44f29b5bf6def3effcc22d7bb75f2b747",
+ "crate_license_path": null,
+ "declared_license": "MIT",
+ "license": "MIT",
+ "license_sha256": "cab8ff38785be68c4c914b6a01f871711b7c983e98c8f5c5f7057e31c46fe05c",
+ "license_source": "https://raw.githubusercontent.com/plotters-rs/plotters/cb7791f6814024d85aa6f9968e73051a4b295bf0/LICENSE",
+ "license_text": "MIT License\n\nCopyright (c) 2019-2021 Hao Hou \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
+ "name": "plotters",
+ "reason": "Original source license replaces generated cargo-about fallback; original report retained.",
+ "vcs": {
+ "git": {
+ "sha1": "cb7791f6814024d85aa6f9968e73051a4b295bf0"
+ },
+ "path_in_vcs": "plotters"
+ },
+ "version": "0.3.7"
+ },
+ {
+ "crate_checksum": "df42e13c12958a16b3f7f4386b9ab1f3e7933914ecea48da7139435263a4172a",
+ "crate_license_path": null,
+ "declared_license": "MIT",
+ "license": "MIT",
+ "license_sha256": "cab8ff38785be68c4c914b6a01f871711b7c983e98c8f5c5f7057e31c46fe05c",
+ "license_source": "https://raw.githubusercontent.com/plotters-rs/plotters/cb7791f6814024d85aa6f9968e73051a4b295bf0/LICENSE",
+ "license_text": "MIT License\n\nCopyright (c) 2019-2021 Hao Hou \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
+ "name": "plotters-backend",
+ "reason": "Original source license replaces generated cargo-about fallback; original report retained.",
+ "vcs": {
+ "git": {
+ "sha1": "cb7791f6814024d85aa6f9968e73051a4b295bf0"
+ },
+ "path_in_vcs": "plotters-backend"
+ },
+ "version": "0.3.7"
+ },
+ {
+ "crate_checksum": "51bae2ac328883f7acdfea3d66a7c35751187f870bc81f94563733a154d7a670",
+ "crate_license_path": null,
+ "declared_license": "MIT",
+ "license": "MIT",
+ "license_sha256": "cab8ff38785be68c4c914b6a01f871711b7c983e98c8f5c5f7057e31c46fe05c",
+ "license_source": "https://raw.githubusercontent.com/plotters-rs/plotters/cb7791f6814024d85aa6f9968e73051a4b295bf0/LICENSE",
+ "license_text": "MIT License\n\nCopyright (c) 2019-2021 Hao Hou \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
+ "name": "plotters-svg",
+ "reason": "Original source license replaces generated cargo-about fallback; original report retained.",
+ "vcs": {
+ "git": {
+ "sha1": "cb7791f6814024d85aa6f9968e73051a4b295bf0"
+ },
+ "path_in_vcs": "plotters-svg"
+ },
+ "version": "0.3.7"
+ },
+ {
+ "crate_checksum": "84fd902d4e0b9a4b27f2f440108dc034e1758628a9b702f8ec61ad66355422fa",
+ "crate_license_path": null,
+ "declared_license": "MIT OR Apache-2.0",
+ "license": "MIT",
+ "license_sha256": "b1eb2598599e2a78fdd20f4a6a1d95ce79928a1f9854c16d8305157397dcf265",
+ "license_source": "https://raw.githubusercontent.com/ebkalderon/tower-lsp/7b580128faa39b907db8f40bc53924181887acde/LICENSE-MIT",
+ "license_text": "Copyright (c) 2023 Eyal Kalderon\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n",
+ "name": "tower-lsp-macros",
+ "reason": "Original source license replaces generated cargo-about fallback; original report retained.",
+ "vcs": {
+ "git": {
+ "sha1": "7b580128faa39b907db8f40bc53924181887acde"
+ },
+ "path_in_vcs": "tower-lsp-macros"
+ },
+ "version": "0.9.0"
+ },
+ {
+ "crate_checksum": "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5",
+ "crate_license_path": "license-mit",
+ "declared_license": "MIT OR Apache-2.0",
+ "license": "MIT",
+ "license_sha256": "c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383",
+ "license_source": "https://static.crates.io/crates/windows-link/windows-link-0.2.1.crate",
+ "license_text": " MIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n",
+ "name": "windows-link",
+ "reason": "Original source license replaces generated cargo-about fallback; original report retained.",
+ "vcs": {
+ "git": {
+ "sha1": "d468916ac27a36fb8a12bafc1bf5c0ec2fe92238"
+ },
+ "path_in_vcs": "crates/libs/link"
+ },
+ "version": "0.2.1"
+ },
+ {
+ "crate_checksum": "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc",
+ "crate_license_path": "license-mit",
+ "declared_license": "MIT OR Apache-2.0",
+ "license": "MIT",
+ "license_sha256": "c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383",
+ "license_source": "https://static.crates.io/crates/windows-sys/windows-sys-0.61.2.crate",
+ "license_text": " MIT License\n\n Copyright (c) Microsoft Corporation.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE\n",
+ "name": "windows-sys",
+ "reason": "Original source license replaces generated cargo-about fallback; original report retained.",
+ "vcs": {
+ "git": {
+ "sha1": "32c3144490c016fe496a0aed769bce60987a2e9d"
+ },
+ "path_in_vcs": "crates/libs/sys"
+ },
+ "version": "0.61.2"
+ }
+ ],
+ "schema_version": 1
+}
\ No newline at end of file
diff --git a/ci/licenses/rust-compiler-originals/compiler-builtins-Cargo.toml.txt b/ci/licenses/rust-compiler-originals/compiler-builtins-Cargo.toml.txt
new file mode 100644
index 0000000..b2f1443
--- /dev/null
+++ b/ci/licenses/rust-compiler-originals/compiler-builtins-Cargo.toml.txt
@@ -0,0 +1,62 @@
+# NOTE: Must be kept in sync with `../builtins-shim/Cargo.toml`.
+#
+# This manifest is actually used in-tree by rust-lang/rust,
+# `../builtins-shim/Cargo.toml` is used by out-of-tree testing. See the other
+# manifest for further details.
+
+[package]
+name = "compiler_builtins"
+version = "0.1.160"
+authors = [
+ "Alex Crichton ",
+ "Amanieu d'Antras ",
+ "Jorge Aparicio ",
+ "Trevor Gross ",
+]
+description = "Compiler intrinsics used by the Rust compiler."
+repository = "https://github.com/rust-lang/compiler-builtins"
+license = "MIT AND Apache-2.0 WITH LLVM-exception AND (MIT OR Apache-2.0)"
+edition = "2024"
+publish = false
+links = "compiler-rt"
+
+[lib]
+bench = false
+doctest = false
+test = false
+# make sure this crate isn't included in public standard library docs
+doc = false
+
+[dependencies]
+core = { path = "../../core", optional = true }
+
+[build-dependencies]
+cc = { version = "1.2", optional = true }
+
+[features]
+default = ["arch"]
+
+# Enable architecture-specific features such as SIMD or assembly routines. If
+# disabled, the generic version can be tested on any platform.
+arch = []
+
+# Enable compilation of C code in compiler-rt, filling in some more optimized
+# implementations and also filling in unimplemented intrinsics
+c = ["dep:cc"]
+
+# Flag this library as the unstable compiler-builtins lib. This must be enabled
+# when using as `std`'s dependency.'
+compiler-builtins = ["dep:core", "unmangled-names"]
+
+# Enable `no_mangle` symbols for memory-related intrinsics like memcpy. The
+# mangled versions are always available.
+mem = []
+
+# Enable `no_mangle` symbols so this crate gets used as the runtime intrinsic
+# implementation. Leave this disabled for testing to avoid conflicting with
+# the system intrinsics.
+unmangled-names = []
+
+# This makes certain traits and function specializations public that
+# are not normally public but are required by the `builtins-test`
+unstable-public-internals = []
diff --git a/ci/licenses/rust-compiler-originals/compiler-builtins-LICENSE.txt b/ci/licenses/rust-compiler-originals/compiler-builtins-LICENSE.txt
new file mode 100644
index 0000000..00ae614
--- /dev/null
+++ b/ci/licenses/rust-compiler-originals/compiler-builtins-LICENSE.txt
@@ -0,0 +1,275 @@
+The compiler-builtins crate is available for use under both the MIT license
+and the Apache-2.0 license with the LLVM exception (MIT AND Apache-2.0 WITH
+LLVM-exception).
+
+The libm crate is available for use under the MIT license.
+
+As a contributor, you agree that your code may be used under any of the
+following: the MIT license, the Apache-2.0 license, or the Apache-2.0 license
+with the LLVM exception. In other words, original (non-derivative) work is
+licensed under MIT OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception. This is
+the default license for all other source in this repository.
+
+Text of the relevant licenses is provided below:
+
+------------------------------------------------------------------------------
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+------------------------------------------------------------------------------
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+---- LLVM Exceptions to the Apache 2.0 License ----
+
+As an exception, if, as a result of your compiling your source code, portions
+of this Software are embedded into an Object form of such source code, you
+may redistribute such embedded portions in such Object form without complying
+with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
+
+In addition, if you combine or link compiled forms of this Software with
+software that is licensed under the GPLv2 ("Combined Software") and if a
+court of competent jurisdiction determines that the patent provision (Section
+3), the indemnity provision (Section 9) or other Section of the License
+conflicts with the conditions of the GPLv2, you may retroactively and
+prospectively choose to deem waived or otherwise exclude such Section(s) of
+the License, but only in their entirety and only with respect to the Combined
+Software.
+------------------------------------------------------------------------------
+
+Portions of this software are derived from third-party works licensed under
+terms compatible with the above Apache-2.0 WITH LLVM-exception AND MIT
+license:
+
+* compiler-builtins is derived from LLVM's compiler-rt (https://llvm.org/).
+ Work derived from compiler-rt prior to 2019-01-19 is usable under the MIT
+ license, with the following copyright:
+
+ Copyright (c) 2009-2016 by the contributors listed in CREDITS.TXT
+
+ The relevant CREDITS.TXT is located at
+ https://github.com/llvm/llvm-project/blob/main/compiler-rt/CREDITS.TXT.
+
+* Work derived from compiler-rt after 2019-01-19 is usable under the
+ Apache-2.0 license with the LLVM exception.
+
+* The bundled `math` module is from the libm crate, usable under the MIT
+ license. For further details and copyrights, see see libm/LICENSE.txt at
+ https://github.com/rust-lang/compiler-builtins.
+
+Additionally, some source files may contain comments with specific copyrights
+or licenses.
diff --git a/ci/licenses/rust-compiler-originals/compiler-builtins-aarch64-outline-atomics.rs.txt b/ci/licenses/rust-compiler-originals/compiler-builtins-aarch64-outline-atomics.rs.txt
new file mode 100644
index 0000000..367768e
--- /dev/null
+++ b/ci/licenses/rust-compiler-originals/compiler-builtins-aarch64-outline-atomics.rs.txt
@@ -0,0 +1,467 @@
+//! Aarch64 targets have two possible implementations for atomics:
+//! 1. Load-Locked, Store-Conditional (LL/SC), older and slower.
+//! 2. Large System Extensions (LSE), newer and faster.
+//! To avoid breaking backwards compat, C toolchains introduced a concept of "outlined atomics",
+//! where atomic operations call into the compiler runtime to dispatch between two depending on
+//! which is supported on the current CPU.
+//! See for more discussion.
+//!
+//! Ported from `aarch64/lse.S` in LLVM's compiler-rt.
+//!
+//! Generate functions for each of the following symbols:
+//! __aarch64_casM_ORDER
+//! __aarch64_swpN_ORDER
+//! __aarch64_ldaddN_ORDER
+//! __aarch64_ldclrN_ORDER
+//! __aarch64_ldeorN_ORDER
+//! __aarch64_ldsetN_ORDER
+//! for N = {1, 2, 4, 8}, M = {1, 2, 4, 8, 16}, ORDER = { relax, acq, rel, acq_rel }
+//!
+//! The original `lse.S` has some truly horrifying code that expects to be compiled multiple times with different constants.
+//! We do something similar, but with macro arguments.
+#![cfg_attr(feature = "c", allow(unused_macros))] // avoid putting the macros into a submodule
+
+use core::sync::atomic::{AtomicU8, Ordering};
+
+/// non-zero if the host supports LSE atomics.
+static HAVE_LSE_ATOMICS: AtomicU8 = AtomicU8::new(0);
+
+intrinsics! {
+ /// Call to enable LSE in outline atomic operations. The caller must verify
+ /// LSE operations are supported.
+ pub extern "C" fn __rust_enable_lse() {
+ HAVE_LSE_ATOMICS.store(1, Ordering::Relaxed);
+ }
+}
+
+/// Function to enable/disable LSE. To be used only for testing purposes.
+#[cfg(feature = "unstable-public-internals")]
+pub unsafe fn set_have_lse_atomics(has_lse: bool) {
+ let lse_flag = if has_lse { 1 } else { 0 };
+ HAVE_LSE_ATOMICS.store(lse_flag, Ordering::Relaxed);
+}
+
+/// Function to obtain whether LSE is enabled or not. To be used only for testing purposes.
+#[cfg(feature = "unstable-public-internals")]
+pub fn get_have_lse_atomics() -> bool {
+ HAVE_LSE_ATOMICS.load(Ordering::Relaxed) != 0
+}
+
+/// Translate a byte size to a Rust type.
+#[rustfmt::skip]
+macro_rules! int_ty {
+ (1) => { u8 };
+ (2) => { u16 };
+ (4) => { u32 };
+ (8) => { u64 };
+ (16) => { u128 };
+}
+
+/// Given a byte size and a register number, return a register of the appropriate size.
+///
+/// See .
+#[rustfmt::skip]
+macro_rules! reg {
+ (1, $num:literal) => { concat!("w", $num) };
+ (2, $num:literal) => { concat!("w", $num) };
+ (4, $num:literal) => { concat!("w", $num) };
+ (8, $num:literal) => { concat!("x", $num) };
+ (16, $num:literal) => { concat!("x", $num) };
+}
+
+/// Given an atomic ordering, translate it to the acquire suffix for the lxdr aarch64 ASM instruction.
+#[rustfmt::skip]
+macro_rules! acquire {
+ (Relaxed) => { "" };
+ (Acquire) => { "a" };
+ (Release) => { "" };
+ (AcqRel) => { "a" };
+}
+
+/// Given an atomic ordering, translate it to the release suffix for the stxr aarch64 ASM instruction.
+#[rustfmt::skip]
+macro_rules! release {
+ (Relaxed) => { "" };
+ (Acquire) => { "" };
+ (Release) => { "l" };
+ (AcqRel) => { "l" };
+}
+
+/// Given a size in bytes, translate it to the byte suffix for an aarch64 ASM instruction.
+#[rustfmt::skip]
+macro_rules! size {
+ (1) => { "b" };
+ (2) => { "h" };
+ (4) => { "" };
+ (8) => { "" };
+ (16) => { "" };
+}
+
+/// Given a byte size, translate it to an Unsigned eXTend instruction
+/// with the correct semantics.
+///
+/// See
+#[rustfmt::skip]
+macro_rules! uxt {
+ (1) => { "uxtb" };
+ (2) => { "uxth" };
+ ($_:tt) => { "mov" };
+}
+
+/// Given an atomic ordering and byte size, translate it to a LoaD eXclusive Register instruction
+/// with the correct semantics.
+///
+/// See .
+macro_rules! ldxr {
+ ($ordering:ident, $bytes:tt) => {
+ concat!("ld", acquire!($ordering), "xr", size!($bytes))
+ };
+}
+
+/// Given an atomic ordering and byte size, translate it to a STore eXclusive Register instruction
+/// with the correct semantics.
+///
+/// See .
+macro_rules! stxr {
+ ($ordering:ident, $bytes:tt) => {
+ concat!("st", release!($ordering), "xr", size!($bytes))
+ };
+}
+
+/// Given an atomic ordering and byte size, translate it to a LoaD eXclusive Pair of registers instruction
+/// with the correct semantics.
+///
+/// See
+macro_rules! ldxp {
+ ($ordering:ident) => {
+ concat!("ld", acquire!($ordering), "xp")
+ };
+}
+
+/// Given an atomic ordering and byte size, translate it to a STore eXclusive Pair of registers instruction
+/// with the correct semantics.
+///
+/// See .
+macro_rules! stxp {
+ ($ordering:ident) => {
+ concat!("st", release!($ordering), "xp")
+ };
+}
+
+// The AArch64 assembly syntax for relocation specifiers
+// when accessing symbols changes depending on the target executable format.
+// In ELF (used in Linux), we have a prefix notation surrounded by colons (:specifier:sym),
+// while in Mach-O object files (used in MacOS), a postfix notation is used (sym@specifier).
+
+/// AArch64 ELF position-independent addressing:
+///
+/// adrp xN, symbol
+/// add xN, xN, :lo12:symbol
+///
+/// The :lo12: modifier selects the low 12 bits of the symbol address
+/// and emits an ELF relocation such as R_AARCH64_ADD_ABS_LO12_NC.
+///
+/// Defined by the AArch64 ELF psABI.
+/// See: .
+#[cfg(not(target_vendor = "apple"))]
+macro_rules! sym {
+ ($sym:literal) => {
+ $sym
+ };
+}
+
+#[cfg(not(target_vendor = "apple"))]
+macro_rules! sym_off {
+ ($sym:literal) => {
+ concat!(":lo12:", $sym)
+ };
+}
+
+/// Mach-O ARM64 relocation types:
+/// ARM64_RELOC_PAGE21
+/// ARM64_RELOC_PAGEOFF12
+///
+/// These relocations implement the @PAGE / @PAGEOFF split used by
+/// adrp + add sequences on Apple platforms.
+///
+/// adrp xN, symbol@PAGE -> ARM64_RELOC_PAGE21
+/// add xN, xN, symbol@PAGEOFF -> ARM64_RELOC_PAGEOFF12
+///
+/// Relocation types defined by Apple in XNU: .
+/// See: .
+#[cfg(target_vendor = "apple")]
+macro_rules! sym {
+ ($sym:literal) => {
+ concat!($sym, "@PAGE")
+ };
+}
+
+#[cfg(target_vendor = "apple")]
+macro_rules! sym_off {
+ ($sym:literal) => {
+ concat!($sym, "@PAGEOFF")
+ };
+}
+
+// If supported, perform the requested LSE op and return, or fallthrough.
+macro_rules! try_lse_op {
+ ($op: literal, $ordering:ident, $bytes:tt, $($reg:literal,)* [ $mem:ident ] ) => {
+ concat!(
+ ".arch_extension lse\n",
+ concat!("adrp x16, ", sym!("{have_lse}"), "\n"),
+ concat!("ldrb w16, [x16, ", sym_off!("{have_lse}"), "]\n"),
+ "cbz w16, 8f\n",
+ // LSE_OP s(reg),* [$mem]
+ concat!(lse!($op, $ordering, $bytes), $( " ", reg!($bytes, $reg), ", " ,)* "[", stringify!($mem), "]\n",),
+ "ret
+ 8:"
+ )
+ };
+}
+
+// Translate memory ordering to the LSE suffix
+#[rustfmt::skip]
+macro_rules! lse_mem_sfx {
+ (Relaxed) => { "" };
+ (Acquire) => { "a" };
+ (Release) => { "l" };
+ (AcqRel) => { "al" };
+}
+
+// Generate the aarch64 LSE operation for memory ordering and width
+macro_rules! lse {
+ ($op:literal, $order:ident, 16) => {
+ concat!($op, "p", lse_mem_sfx!($order))
+ };
+ ($op:literal, $order:ident, $bytes:tt) => {
+ concat!($op, lse_mem_sfx!($order), size!($bytes))
+ };
+}
+
+/// See .
+macro_rules! compare_and_swap {
+ ($ordering:ident, $bytes:tt, $name:ident) => {
+ intrinsics! {
+ #[maybe_use_optimized_c_shim]
+ #[unsafe(naked)]
+ pub unsafe extern "C" fn $name (
+ expected: int_ty!($bytes), desired: int_ty!($bytes), ptr: *mut int_ty!($bytes)
+ ) -> int_ty!($bytes) {
+ // We can't use `AtomicI8::compare_and_swap`; we *are* compare_and_swap.
+ core::arch::naked_asm! {
+ // CAS s(0), s(1), [x2]; if LSE supported.
+ try_lse_op!("cas", $ordering, $bytes, 0, 1, [x2]),
+ // UXT s(tmp0), s(0)
+ concat!(uxt!($bytes), " ", reg!($bytes, 16), ", ", reg!($bytes, 0)),
+ "0:",
+ // LDXR s(0), [x2]
+ concat!(ldxr!($ordering, $bytes), " ", reg!($bytes, 0), ", [x2]"),
+ // cmp s(0), s(tmp0)
+ concat!("cmp ", reg!($bytes, 0), ", ", reg!($bytes, 16)),
+ "bne 1f",
+ // STXR w(tmp1), s(1), [x2]
+ concat!(stxr!($ordering, $bytes), " w17, ", reg!($bytes, 1), ", [x2]"),
+ "cbnz w17, 0b",
+ "1:",
+ "ret",
+ have_lse = sym crate::aarch64_outline_atomics::HAVE_LSE_ATOMICS,
+ }
+ }
+ }
+ };
+}
+
+// u128 uses a completely different impl, so it has its own macro.
+macro_rules! compare_and_swap_u128 {
+ ($ordering:ident, $name:ident) => {
+ intrinsics! {
+ #[maybe_use_optimized_c_shim]
+ #[unsafe(naked)]
+ pub unsafe extern "C" fn $name (
+ expected: u128, desired: u128, ptr: *mut u128
+ ) -> u128 {
+ core::arch::naked_asm! {
+ // CASP x0, x1, x2, x3, [x4]; if LSE supported.
+ try_lse_op!("cas", $ordering, 16, 0, 1, 2, 3, [x4]),
+ "mov x16, x0",
+ "mov x17, x1",
+ "0:",
+ // LDXP x0, x1, [x4]
+ concat!(ldxp!($ordering), " x0, x1, [x4]"),
+ "cmp x0, x16",
+ "ccmp x1, x17, #0, eq",
+ "bne 1f",
+ // STXP w(tmp2), x2, x3, [x4]
+ concat!(stxp!($ordering), " w15, x2, x3, [x4]"),
+ "cbnz w15, 0b",
+ "1:",
+ "ret",
+ have_lse = sym crate::aarch64_outline_atomics::HAVE_LSE_ATOMICS,
+ }
+ }
+ }
+ };
+}
+
+/// See .
+macro_rules! swap {
+ ($ordering:ident, $bytes:tt, $name:ident) => {
+ intrinsics! {
+ #[maybe_use_optimized_c_shim]
+ #[unsafe(naked)]
+ pub unsafe extern "C" fn $name (
+ left: int_ty!($bytes), right_ptr: *mut int_ty!($bytes)
+ ) -> int_ty!($bytes) {
+ core::arch::naked_asm! {
+ // SWP s(0), s(0), [x1]; if LSE supported.
+ try_lse_op!("swp", $ordering, $bytes, 0, 0, [x1]),
+ // mov s(tmp0), s(0)
+ concat!("mov ", reg!($bytes, 16), ", ", reg!($bytes, 0)),
+ "0:",
+ // LDXR s(0), [x1]
+ concat!(ldxr!($ordering, $bytes), " ", reg!($bytes, 0), ", [x1]"),
+ // STXR w(tmp1), s(tmp0), [x1]
+ concat!(stxr!($ordering, $bytes), " w17, ", reg!($bytes, 16), ", [x1]"),
+ "cbnz w17, 0b",
+ "ret",
+ have_lse = sym crate::aarch64_outline_atomics::HAVE_LSE_ATOMICS,
+ }
+ }
+ }
+ };
+}
+
+/// See (e.g.) .
+macro_rules! fetch_op {
+ ($ordering:ident, $bytes:tt, $name:ident, $op:literal, $lse_op:literal) => {
+ intrinsics! {
+ #[maybe_use_optimized_c_shim]
+ #[unsafe(naked)]
+ pub unsafe extern "C" fn $name (
+ val: int_ty!($bytes), ptr: *mut int_ty!($bytes)
+ ) -> int_ty!($bytes) {
+ core::arch::naked_asm! {
+ // LSEOP s(0), s(0), [x1]; if LSE supported.
+ try_lse_op!($lse_op, $ordering, $bytes, 0, 0, [x1]),
+ // mov s(tmp0), s(0)
+ concat!("mov ", reg!($bytes, 16), ", ", reg!($bytes, 0)),
+ "0:",
+ // LDXR s(0), [x1]
+ concat!(ldxr!($ordering, $bytes), " ", reg!($bytes, 0), ", [x1]"),
+ // OP s(tmp1), s(0), s(tmp0)
+ concat!($op, " ", reg!($bytes, 17), ", ", reg!($bytes, 0), ", ", reg!($bytes, 16)),
+ // STXR w(tmp2), s(tmp1), [x1]
+ concat!(stxr!($ordering, $bytes), " w15, ", reg!($bytes, 17), ", [x1]"),
+ "cbnz w15, 0b",
+ "ret",
+ have_lse = sym crate::aarch64_outline_atomics::HAVE_LSE_ATOMICS,
+ }
+ }
+ }
+ }
+}
+
+// We need a single macro to pass to `foreach_ldadd`.
+macro_rules! add {
+ ($ordering:ident, $bytes:tt, $name:ident) => {
+ fetch_op! { $ordering, $bytes, $name, "add", "ldadd" }
+ };
+}
+
+macro_rules! and {
+ ($ordering:ident, $bytes:tt, $name:ident) => {
+ fetch_op! { $ordering, $bytes, $name, "bic", "ldclr" }
+ };
+}
+
+macro_rules! xor {
+ ($ordering:ident, $bytes:tt, $name:ident) => {
+ fetch_op! { $ordering, $bytes, $name, "eor", "ldeor" }
+ };
+}
+
+macro_rules! or {
+ ($ordering:ident, $bytes:tt, $name:ident) => {
+ fetch_op! { $ordering, $bytes, $name, "orr", "ldset" }
+ };
+}
+
+#[macro_export]
+macro_rules! foreach_ordering {
+ ($macro:path, $bytes:tt, $name:ident) => {
+ $macro!( Relaxed, $bytes, ${concat($name, _relax)} );
+ $macro!( Acquire, $bytes, ${concat($name, _acq)} );
+ $macro!( Release, $bytes, ${concat($name, _rel)} );
+ $macro!( AcqRel, $bytes, ${concat($name, _acq_rel)} );
+ };
+ ($macro:path, $name:ident) => {
+ $macro!( Relaxed, ${concat($name, _relax)} );
+ $macro!( Acquire, ${concat($name, _acq)} );
+ $macro!( Release, ${concat($name, _rel)} );
+ $macro!( AcqRel, ${concat($name, _acq_rel)} );
+ };
+}
+
+#[macro_export]
+macro_rules! foreach_bytes {
+ ($macro:path, $name:ident) => {
+ foreach_ordering!( $macro, 1, ${concat(__aarch64_, $name, "1")} );
+ foreach_ordering!( $macro, 2, ${concat(__aarch64_, $name, "2")} );
+ foreach_ordering!( $macro, 4, ${concat(__aarch64_, $name, "4")} );
+ foreach_ordering!( $macro, 8, ${concat(__aarch64_, $name, "8")} );
+ };
+}
+
+/// Generate different macros for cas/swp/add/clr/eor/set so that we can test them separately.
+#[macro_export]
+macro_rules! foreach_cas {
+ ($macro:path) => {
+ foreach_bytes!($macro, cas);
+ };
+}
+
+/// Only CAS supports 16 bytes, and it has a different implementation that uses a different macro.
+#[macro_export]
+macro_rules! foreach_cas16 {
+ ($macro:path) => {
+ foreach_ordering!($macro, __aarch64_cas16);
+ };
+}
+#[macro_export]
+macro_rules! foreach_swp {
+ ($macro:path) => {
+ foreach_bytes!($macro, swp);
+ };
+}
+#[macro_export]
+macro_rules! foreach_ldadd {
+ ($macro:path) => {
+ foreach_bytes!($macro, ldadd);
+ };
+}
+#[macro_export]
+macro_rules! foreach_ldclr {
+ ($macro:path) => {
+ foreach_bytes!($macro, ldclr);
+ };
+}
+#[macro_export]
+macro_rules! foreach_ldeor {
+ ($macro:path) => {
+ foreach_bytes!($macro, ldeor);
+ };
+}
+#[macro_export]
+macro_rules! foreach_ldset {
+ ($macro:path) => {
+ foreach_bytes!($macro, ldset);
+ };
+}
+
+foreach_cas!(compare_and_swap);
+foreach_cas16!(compare_and_swap_u128);
+foreach_swp!(swap);
+foreach_ldadd!(add);
+foreach_ldclr!(and);
+foreach_ldeor!(xor);
+foreach_ldset!(or);
diff --git a/ci/licenses/rust-compiler-originals/compiler-builtins-aarch64.rs.txt b/ci/licenses/rust-compiler-originals/compiler-builtins-aarch64.rs.txt
new file mode 100644
index 0000000..2c12cb7
--- /dev/null
+++ b/ci/licenses/rust-compiler-originals/compiler-builtins-aarch64.rs.txt
@@ -0,0 +1,17 @@
+intrinsics! {
+ #[unsafe(naked)]
+ #[cfg(any(all(windows, target_env = "gnu"), target_os = "uefi"))]
+ pub unsafe extern "custom" fn __chkstk() {
+ core::arch::naked_asm!(
+ ".p2align 2",
+ "lsl x16, x15, #4",
+ "mov x17, sp",
+ "1:",
+ "sub x17, x17, 4096",
+ "subs x16, x16, 4096",
+ "ldr xzr, [x17]",
+ "b.gt 1b",
+ "ret",
+ );
+ }
+}
diff --git a/ci/licenses/rust-compiler-originals/compiler-builtins-build.rs.txt b/ci/licenses/rust-compiler-originals/compiler-builtins-build.rs.txt
new file mode 100644
index 0000000..e86c784
--- /dev/null
+++ b/ci/licenses/rust-compiler-originals/compiler-builtins-build.rs.txt
@@ -0,0 +1,649 @@
+#[path = "../libm/configure.rs"]
+mod configure;
+
+use std::env;
+
+use configure::{Config, Library, set_cfg};
+
+fn main() {
+ let cfg = Config::from_env(Library::CompilerBuiltins);
+ let llvm_target = &cfg.target_triple_split;
+
+ // Work around building as part of `builtins-shim`: if only `build.rs` is used, Cargo always
+ // considers the build dirty because `builtins-shim/build.rs` does not exist. If only
+ // `../c-b/build.rs` is used, the same may happen if not built in the workspace.
+ // Note: this may be `None` if CARGO_MANIFEST_DIR doesn't end in a directory name (e.g. ".")
+ if let Some(dir) = cfg.manifest_dir.file_name()
+ && dir == "builtins-shim"
+ {
+ println!("cargo::rerun-if-changed=../compiler-builtins/build.rs");
+ } else {
+ println!("cargo::rerun-if-changed=build.rs");
+ }
+
+ println!("cargo::rerun-if-changed=../libm/configure.rs");
+
+ configure::emit(&cfg);
+ configure_check_cfg();
+
+ let cwd = env::current_dir().unwrap();
+ println!("cargo:compiler-rt={}", cwd.join("compiler-rt").display());
+
+ // Forcibly enable memory intrinsics on wasm & SGX as we don't have a libc to
+ // provide them.
+ if (cfg.target_triple.contains("wasm") && !cfg.target_triple.contains("wasi"))
+ || (cfg.target_triple.contains("sgx") && cfg.target_triple.contains("fortanix"))
+ || cfg.target_triple.contains("-none")
+ || cfg.target_triple.contains("nvptx")
+ || cfg.target_triple.contains("uefi")
+ || cfg.target_triple.contains("xous")
+ {
+ println!("cargo:rustc-cfg=feature=\"mem\"");
+ }
+
+ // These targets have hardware unaligned access support.
+ let mem_unaligned = cfg.target_arch.contains("x86_64")
+ || cfg.target_arch.contains("x86")
+ || cfg.target_arch.contains("aarch64")
+ || cfg.target_arch.contains("bpf");
+ set_cfg("mem_unaligned", mem_unaligned);
+
+ // Only emit the ARM Linux atomic emulation on pre-ARMv6 architectures. This
+ // includes the old androideabi. It is deprecated but it is available as a
+ // rustc target (arm-linux-androideabi).
+ let kernel_user_helpers = llvm_target[0] == "armv4t"
+ || llvm_target[0] == "armv5te"
+ || cfg.target_triple == "arm-linux-androideabi";
+ set_cfg("kernel_user_helpers", kernel_user_helpers);
+
+ let mut maybe_build_c = true;
+
+ // Emscripten's runtime includes all the builtins
+ if cfg.target_os == "emscripten" {
+ maybe_build_c = false;
+ }
+
+ // OpenBSD provides compiler_rt by default, use it instead of rebuilding it from source
+ if cfg.target_os == "openbsd" {
+ println!("cargo:rustc-link-search=native=/usr/lib");
+ println!("cargo:rustc-link-lib=compiler_rt");
+ maybe_build_c = false;
+ }
+
+ // Everything is LLVM bitcode, not compatible with mixed C/Rust
+ if cfg.target_arch.contains("nvptx") {
+ maybe_build_c = false;
+ }
+
+ // Build missing intrinsics from compiler-rt C source code. If we're
+ // mangling names though we assume that we're also in test mode so we don't
+ // build anything and we rely on the upstream implementation of compiler-rt
+ // functions
+ if cfg!(feature = "unmangled-names") && cfg!(feature = "c") && maybe_build_c {
+ #[cfg(feature = "c")]
+ c::compile(&cfg);
+ }
+}
+
+/// Emit directives for features we expect to support that aren't in `Cargo.toml`.
+///
+/// These are mostly cfg elements emitted by this `build.rs`.
+fn configure_check_cfg() {
+ // Functions where we can set the "optimized-c" flag
+ const HAS_OPTIMIZED_C: &[&str] = &[
+ "__ashldi3",
+ "__ashlsi3",
+ "__ashrdi3",
+ "__ashrsi3",
+ "__bswapsi2",
+ "__bswapdi2",
+ "__bswapti2",
+ "__divdi3",
+ "__divsi3",
+ "__divmoddi4",
+ "__divmodsi4",
+ "__divmodsi4",
+ "__divmodti4",
+ "__lshrdi3",
+ "__lshrsi3",
+ "__moddi3",
+ "__modsi3",
+ "__muldi3",
+ "__udivdi3",
+ "__udivmoddi4",
+ "__udivmodsi4",
+ "__udivsi3",
+ "__umoddi3",
+ "__umodsi3",
+ ];
+
+ // Build a list of all aarch64 atomic operation functions
+ let mut aarch_atomic = Vec::new();
+ for aarch_op in ["cas", "ldadd", "ldclr", "ldeor", "ldset", "swp"] {
+ let op_sizes = if aarch_op == "cas" {
+ [1, 2, 4, 8, 16].as_slice()
+ } else {
+ [1, 2, 4, 8].as_slice()
+ };
+
+ for op_size in op_sizes {
+ for ordering in ["relax", "acq", "rel", "acq_rel"] {
+ aarch_atomic.push(format!("__aarch64_{aarch_op}{op_size}_{ordering}"));
+ }
+ }
+ }
+
+ for fn_name in HAS_OPTIMIZED_C
+ .iter()
+ .copied()
+ .chain(aarch_atomic.iter().map(|s| s.as_str()))
+ {
+ println!("cargo::rustc-check-cfg=cfg({fn_name}, values(\"optimized-c\"))",);
+ }
+
+ // Rustc is unaware of sparc target features, but this does show up from
+ // `rustc --print target-features --target sparc64-unknown-linux-gnu`.
+ println!("cargo::rustc-check-cfg=cfg(target_feature, values(\"vis3\"))");
+}
+
+#[cfg(feature = "c")]
+mod c {
+ use std::collections::{BTreeMap, HashSet};
+ use std::env;
+ use std::fs::{self, File};
+ use std::io::Write;
+ use std::path::{Path, PathBuf};
+
+ use super::Config;
+
+ struct Sources {
+ // SYMBOL -> PATH TO SOURCE
+ map: BTreeMap<&'static str, &'static str>,
+ }
+
+ impl Sources {
+ fn new() -> Sources {
+ Sources {
+ map: BTreeMap::new(),
+ }
+ }
+
+ fn extend(&mut self, sources: &[(&'static str, &'static str)]) {
+ // NOTE Some intrinsics have both a generic implementation (e.g.
+ // `floatdidf.c`) and an arch optimized implementation
+ // (`x86_64/floatdidf.c`). In those cases, we keep the arch optimized
+ // implementation and discard the generic implementation. If we don't
+ // and keep both implementations, the linker will yell at us about
+ // duplicate symbols!
+ for (symbol, src) in sources {
+ if src.contains("/") {
+ // Arch-optimized implementation (preferred)
+ self.map.insert(symbol, src);
+ } else {
+ // Generic implementation
+ if !self.map.contains_key(symbol) {
+ self.map.insert(symbol, src);
+ }
+ }
+ }
+ }
+
+ fn remove(&mut self, symbols: &[&str]) {
+ for symbol in symbols {
+ self.map.remove(*symbol).unwrap();
+ }
+ }
+ }
+
+ /// Compile intrinsics from the compiler-rt C source code
+ pub fn compile(cfg: &Config) {
+ let llvm_target = &cfg.target_triple_split;
+ let mut consider_float_intrinsics = true;
+ let build = &mut cc::Build::new();
+
+ // AArch64 GCCs exit with an error condition when they encounter any kind of floating point
+ // code if the `nofp` and/or `nosimd` compiler flags have been set.
+ //
+ // Therefore, evaluate if those flags are present and set a boolean that causes any
+ // compiler-rt intrinsics that contain floating point source to be excluded for this target.
+ if cfg.target_arch == "aarch64" {
+ let cflags_key = String::from("CFLAGS_") + &(cfg.target_triple.replace("-", "_"));
+ if let Ok(cflags_value) = env::var(cflags_key) {
+ if cflags_value.contains("+nofp") || cflags_value.contains("+nosimd") {
+ consider_float_intrinsics = false;
+ }
+ }
+ }
+
+ // `compiler-rt` requires `COMPILER_RT_HAS_FLOAT16` to be defined to make it use the
+ // `_Float16` type for `f16` intrinsics. This shouldn't matter as all existing `f16`
+ // intrinsics have been ported to Rust in `compiler-builtins` as C compilers don't
+ // support `_Float16` on all targets (whereas Rust does). However, define the macro
+ // anyway to prevent issues like rust#118813 and rust#123885 silently reoccuring if more
+ // `f16` intrinsics get accidentally added here in the future.
+ build.define("COMPILER_RT_HAS_FLOAT16", None);
+
+ build.warnings(false);
+
+ if cfg.target_env == "msvc" {
+ // Don't pull in extra libraries on MSVC
+ build.flag("/Zl");
+
+ // Emulate C99 and C++11's __func__ for MSVC prior to 2013 CTP
+ build.define("__func__", Some("__FUNCTION__"));
+ } else {
+ // Turn off various features of gcc and such, mostly copying
+ // compiler-rt's build system already
+ build.flag("-fno-builtin");
+ build.flag("-fvisibility=hidden");
+ build.flag("-ffreestanding");
+ // Avoid the following warning appearing once **per file**:
+ // clang: warning: optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]
+ //
+ // Note that compiler-rt's build system also checks
+ //
+ // `check_cxx_compiler_flag(-fomit-frame-pointer COMPILER_RT_HAS_FOMIT_FRAME_POINTER_FLAG)`
+ //
+ // in https://github.com/rust-lang/compiler-rt/blob/c8fbcb3/cmake/config-ix.cmake#L19.
+ build.flag_if_supported("-fomit-frame-pointer");
+ build.define("VISIBILITY_HIDDEN", None);
+
+ if let "aarch64" | "arm64ec" = cfg.target_arch.as_str() {
+ // FIXME(llvm20): Older GCCs on A64 fail to build with
+ // -Werror=implicit-function-declaration due to a compiler-rt bug.
+ // With a newer LLVM we should be able to enable the flag everywhere.
+ // https://github.com/llvm/llvm-project/commit/8aa9d6206ce55bdaaf422839c351fbd63f033b89
+ } else {
+ // Avoid implicitly creating references to undefined functions
+ build.flag("-Werror=implicit-function-declaration");
+ }
+ }
+
+ // int_util.c tries to include stdlib.h if `_WIN32` is defined,
+ // which it is when compiling UEFI targets with clang. This is
+ // at odds with compiling with `-ffreestanding`, as the header
+ // may be incompatible or not present. Create a minimal stub
+ // header to use instead.
+ if cfg.target_os == "uefi" {
+ let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
+ let include_dir = out_dir.join("include");
+ if !include_dir.exists() {
+ fs::create_dir(&include_dir).unwrap();
+ }
+ fs::write(include_dir.join("stdlib.h"), "#include ").unwrap();
+ build.flag(&format!("-I{}", include_dir.to_str().unwrap()));
+ }
+
+ let mut sources = Sources::new();
+ sources.extend(&[
+ ("__absvdi2", "absvdi2.c"),
+ ("__absvsi2", "absvsi2.c"),
+ ("__addvdi3", "addvdi3.c"),
+ ("__addvsi3", "addvsi3.c"),
+ ("__cmpdi2", "cmpdi2.c"),
+ ("__int_util", "int_util.c"),
+ ("__mulvdi3", "mulvdi3.c"),
+ ("__mulvsi3", "mulvsi3.c"),
+ ("__negdi2", "negdi2.c"),
+ ("__negvdi2", "negvdi2.c"),
+ ("__negvsi2", "negvsi2.c"),
+ ("__paritydi2", "paritydi2.c"),
+ ("__paritysi2", "paritysi2.c"),
+ ("__popcountdi2", "popcountdi2.c"),
+ ("__popcountsi2", "popcountsi2.c"),
+ ("__subvdi3", "subvdi3.c"),
+ ("__subvsi3", "subvsi3.c"),
+ ("__ucmpdi2", "ucmpdi2.c"),
+ ]);
+
+ if consider_float_intrinsics {
+ sources.extend(&[
+ ("__divdc3", "divdc3.c"),
+ ("__divsc3", "divsc3.c"),
+ ("__muldc3", "muldc3.c"),
+ ("__mulsc3", "mulsc3.c"),
+ ("__negdf2", "negdf2.c"),
+ ("__negsf2", "negsf2.c"),
+ ]);
+ }
+
+ // On iOS and 32-bit OSX these are all just empty intrinsics, no need to
+ // include them.
+ if cfg.target_vendor != "apple" || cfg.target_arch != "x86" {
+ sources.extend(&[
+ ("__absvti2", "absvti2.c"),
+ ("__addvti3", "addvti3.c"),
+ ("__cmpti2", "cmpti2.c"),
+ ("__ffsti2", "ffsti2.c"),
+ ("__mulvti3", "mulvti3.c"),
+ ("__negti2", "negti2.c"),
+ ("__parityti2", "parityti2.c"),
+ ("__popcountti2", "popcountti2.c"),
+ ("__subvti3", "subvti3.c"),
+ ("__ucmpti2", "ucmpti2.c"),
+ ]);
+
+ if consider_float_intrinsics {
+ sources.extend(&[("__negvti2", "negvti2.c")]);
+ }
+ }
+
+ if cfg.target_vendor == "apple" {
+ sources.extend(&[
+ ("atomic_flag_clear", "atomic_flag_clear.c"),
+ ("atomic_flag_clear_explicit", "atomic_flag_clear_explicit.c"),
+ ("atomic_flag_test_and_set", "atomic_flag_test_and_set.c"),
+ (
+ "atomic_flag_test_and_set_explicit",
+ "atomic_flag_test_and_set_explicit.c",
+ ),
+ ("atomic_signal_fence", "atomic_signal_fence.c"),
+ ("atomic_thread_fence", "atomic_thread_fence.c"),
+ ]);
+ }
+
+ if cfg.target_env != "msvc" {
+ if cfg.target_arch == "x86" {
+ sources.extend(&[
+ ("__ashldi3", "i386/ashldi3.S"),
+ ("__ashrdi3", "i386/ashrdi3.S"),
+ ("__divdi3", "i386/divdi3.S"),
+ ("__lshrdi3", "i386/lshrdi3.S"),
+ ("__moddi3", "i386/moddi3.S"),
+ ("__muldi3", "i386/muldi3.S"),
+ ("__udivdi3", "i386/udivdi3.S"),
+ ("__umoddi3", "i386/umoddi3.S"),
+ ]);
+ }
+ }
+
+ if cfg.target_arch == "arm" && cfg.target_vendor != "apple" && cfg.target_env != "msvc" {
+ sources.extend(&[
+ ("__aeabi_div0", "arm/aeabi_div0.c"),
+ ("__aeabi_drsub", "arm/aeabi_drsub.c"),
+ ("__aeabi_frsub", "arm/aeabi_frsub.c"),
+ ("__bswapdi2", "arm/bswapdi2.S"),
+ ("__bswapsi2", "arm/bswapsi2.S"),
+ ("__divmodsi4", "arm/divmodsi4.S"),
+ ("__divsi3", "arm/divsi3.S"),
+ ("__modsi3", "arm/modsi3.S"),
+ ("__switch16", "arm/switch16.S"),
+ ("__switch32", "arm/switch32.S"),
+ ("__switch8", "arm/switch8.S"),
+ ("__switchu8", "arm/switchu8.S"),
+ ("__sync_synchronize", "arm/sync_synchronize.S"),
+ ("__udivmodsi4", "arm/udivmodsi4.S"),
+ ("__udivsi3", "arm/udivsi3.S"),
+ ("__umodsi3", "arm/umodsi3.S"),
+ ]);
+
+ if cfg.target_os == "freebsd" {
+ sources.extend(&[("__clear_cache", "clear_cache.c")]);
+ }
+
+ // First of all aeabi_cdcmp and aeabi_cfcmp are never called by LLVM.
+ // Second are little-endian only, so build fail on big-endian targets.
+ // Temporally workaround: exclude these files for big-endian targets.
+ if !llvm_target[0].starts_with("thumbeb") && !llvm_target[0].starts_with("armeb") {
+ sources.extend(&[
+ ("__aeabi_cdcmp", "arm/aeabi_cdcmp.S"),
+ ("__aeabi_cdcmpeq_check_nan", "arm/aeabi_cdcmpeq_check_nan.c"),
+ ("__aeabi_cfcmp", "arm/aeabi_cfcmp.S"),
+ ("__aeabi_cfcmpeq_check_nan", "arm/aeabi_cfcmpeq_check_nan.c"),
+ ]);
+ }
+ }
+
+ if llvm_target[0] == "armv7" {
+ sources.extend(&[
+ ("__sync_fetch_and_add_4", "arm/sync_fetch_and_add_4.S"),
+ ("__sync_fetch_and_add_8", "arm/sync_fetch_and_add_8.S"),
+ ("__sync_fetch_and_and_4", "arm/sync_fetch_and_and_4.S"),
+ ("__sync_fetch_and_and_8", "arm/sync_fetch_and_and_8.S"),
+ ("__sync_fetch_and_max_4", "arm/sync_fetch_and_max_4.S"),
+ ("__sync_fetch_and_max_8", "arm/sync_fetch_and_max_8.S"),
+ ("__sync_fetch_and_min_4", "arm/sync_fetch_and_min_4.S"),
+ ("__sync_fetch_and_min_8", "arm/sync_fetch_and_min_8.S"),
+ ("__sync_fetch_and_nand_4", "arm/sync_fetch_and_nand_4.S"),
+ ("__sync_fetch_and_nand_8", "arm/sync_fetch_and_nand_8.S"),
+ ("__sync_fetch_and_or_4", "arm/sync_fetch_and_or_4.S"),
+ ("__sync_fetch_and_or_8", "arm/sync_fetch_and_or_8.S"),
+ ("__sync_fetch_and_sub_4", "arm/sync_fetch_and_sub_4.S"),
+ ("__sync_fetch_and_sub_8", "arm/sync_fetch_and_sub_8.S"),
+ ("__sync_fetch_and_umax_4", "arm/sync_fetch_and_umax_4.S"),
+ ("__sync_fetch_and_umax_8", "arm/sync_fetch_and_umax_8.S"),
+ ("__sync_fetch_and_umin_4", "arm/sync_fetch_and_umin_4.S"),
+ ("__sync_fetch_and_umin_8", "arm/sync_fetch_and_umin_8.S"),
+ ("__sync_fetch_and_xor_4", "arm/sync_fetch_and_xor_4.S"),
+ ("__sync_fetch_and_xor_8", "arm/sync_fetch_and_xor_8.S"),
+ ]);
+ }
+
+ if llvm_target.last().unwrap().ends_with("eabihf") {
+ if !llvm_target[0].starts_with("thumbv7em")
+ && !llvm_target[0].starts_with("thumbv8m.main")
+ {
+ // The FPU option chosen for these architectures in cc-rs, ie:
+ // -mfpu=fpv4-sp-d16 for thumbv7em
+ // -mfpu=fpv5-sp-d16 for thumbv8m.main
+ // do not support double precision floating points conversions so the files
+ // that include such instructions are not included for these targets.
+ sources.extend(&[
+ ("__fixdfsivfp", "arm/fixdfsivfp.S"),
+ ("__fixunsdfsivfp", "arm/fixunsdfsivfp.S"),
+ ("__floatsidfvfp", "arm/floatsidfvfp.S"),
+ ("__floatunssidfvfp", "arm/floatunssidfvfp.S"),
+ ]);
+ }
+
+ sources.extend(&[
+ ("__fixsfsivfp", "arm/fixsfsivfp.S"),
+ ("__fixunssfsivfp", "arm/fixunssfsivfp.S"),
+ ("__floatsisfvfp", "arm/floatsisfvfp.S"),
+ ("__floatunssisfvfp", "arm/floatunssisfvfp.S"),
+ ("__floatunssisfvfp", "arm/floatunssisfvfp.S"),
+ ("__restore_vfp_d8_d15_regs", "arm/restore_vfp_d8_d15_regs.S"),
+ ("__save_vfp_d8_d15_regs", "arm/save_vfp_d8_d15_regs.S"),
+ ("__negdf2vfp", "arm/negdf2vfp.S"),
+ ("__negsf2vfp", "arm/negsf2vfp.S"),
+ ]);
+ }
+
+ if (cfg.target_arch == "aarch64" || cfg.target_arch == "arm64ec")
+ && consider_float_intrinsics
+ {
+ sources.extend(&[
+ ("__fe_getround", "fp_mode.c"),
+ ("__fe_raise_inexact", "fp_mode.c"),
+ ]);
+
+ if cfg.target_os != "windows" && cfg.target_os != "cygwin" {
+ sources.extend(&[("__multc3", "multc3.c")]);
+ }
+ }
+
+ if cfg.target_arch == "mips" || cfg.target_arch == "riscv32" || cfg.target_arch == "riscv64"
+ {
+ sources.extend(&[("__bswapsi2", "bswapsi2.c")]);
+ }
+
+ if cfg.target_arch == "mips64" {
+ sources.extend(&[("__fe_getround", "fp_mode.c")]);
+ }
+
+ if cfg.target_arch == "loongarch64" {
+ sources.extend(&[("__fe_getround", "fp_mode.c")]);
+ }
+
+ // Remove the assembly implementations that won't compile for the target
+ if llvm_target[0] == "thumbv6m"
+ || llvm_target[0] == "thumbv8m.base"
+ || cfg.target_os == "uefi"
+ {
+ let mut to_remove = Vec::new();
+ for (k, v) in sources.map.iter() {
+ if v.ends_with(".S") {
+ to_remove.push(*k);
+ }
+ }
+ sources.remove(&to_remove);
+ }
+
+ if llvm_target[0] == "thumbv7m" || llvm_target[0] == "thumbv7em" {
+ sources.remove(&["__aeabi_cdcmp", "__aeabi_cfcmp"]);
+ }
+
+ // Android and Cygwin uses emulated TLS so we need a runtime support function.
+ if cfg.target_os == "android" || cfg.target_os == "cygwin" {
+ sources.extend(&[("__emutls_get_address", "emutls.c")]);
+ }
+
+ // Work around a bug in the NDK headers (fixed in
+ // https://r.android.com/2038949 which will be released in a future
+ // NDK version) by providing a definition of LONG_BIT.
+ if cfg.target_os == "android" {
+ build.define("LONG_BIT", "(8 * sizeof(long))");
+ }
+
+ // OpenHarmony also uses emulated TLS.
+ if cfg.target_env == "ohos" {
+ sources.extend(&[("__emutls_get_address", "emutls.c")]);
+ }
+
+ // Optionally, link against a prebuilt llvm compiler-rt containing the builtins
+ // library. Only the builtins library is required. On many platforms, this is
+ // available as a library named libclang_rt.builtins.a.
+ let link_against_prebuilt_rt = env::var_os("LLVM_COMPILER_RT_LIB").is_some();
+
+ // When compiling the C code we require the user to tell us where the
+ // source code is, and this is largely done so when we're compiling as
+ // part of rust-lang/rust we can use the same llvm-project repository as
+ // rust-lang/rust.
+ let root = match env::var_os("RUST_COMPILER_RT_ROOT") {
+ Some(s) => PathBuf::from(s),
+ // If a prebuild libcompiler-rt is provided, set a valid
+ // path to simplify later logic. Nothing should be compiled.
+ None if link_against_prebuilt_rt => PathBuf::new(),
+ None => {
+ panic!(
+ "RUST_COMPILER_RT_ROOT is not set. You may need to run \
+ `ci/download-compiler-rt.sh`."
+ );
+ }
+ };
+ if !link_against_prebuilt_rt && !root.exists() {
+ panic!("RUST_COMPILER_RT_ROOT={} does not exist", root.display());
+ }
+
+ // Support deterministic builds by remapping the __FILE__ prefix if the
+ // compiler supports it. This fixes the nondeterminism caused by the
+ // use of that macro in lib/builtins/int_util.h in compiler-rt.
+ build.flag_if_supported(&format!("-ffile-prefix-map={}=.", root.display()));
+
+ // Include out-of-line atomics for aarch64, which are all generated by supplying different
+ // sets of flags to the same source file.
+ // Note: Out-of-line aarch64 atomics are not supported by the msvc toolchain (#430) and
+ // on uefi.
+ let src_dir = root.join("lib/builtins");
+ if cfg.target_arch == "aarch64" && cfg.target_env != "msvc" && cfg.target_os != "uefi" {
+ // See below for why we're building these as separate libraries.
+ build_aarch64_out_of_line_atomics_libraries(&src_dir, build, link_against_prebuilt_rt);
+
+ // Some run-time CPU feature detection is necessary, as well.
+ let cpu_model_src = if src_dir.join("cpu_model.c").exists() {
+ "cpu_model.c"
+ } else {
+ "cpu_model/aarch64.c"
+ };
+ sources.extend(&[("__aarch64_have_lse_atomics", cpu_model_src)]);
+ }
+
+ let mut added_sources = HashSet::new();
+ for (sym, src) in sources.map.iter() {
+ let src = src_dir.join(src);
+ if !link_against_prebuilt_rt && added_sources.insert(src.clone()) {
+ build.file(&src);
+ println!("cargo:rerun-if-changed={}", src.display());
+ }
+ println!("cargo:rustc-cfg={}=\"optimized-c\"", sym);
+ }
+
+ if link_against_prebuilt_rt {
+ let rt_builtins_ext = PathBuf::from(env::var_os("LLVM_COMPILER_RT_LIB").unwrap());
+ if !rt_builtins_ext.exists() {
+ panic!(
+ "LLVM_COMPILER_RT_LIB={} does not exist",
+ rt_builtins_ext.display()
+ );
+ }
+ if let Some(dir) = rt_builtins_ext.parent() {
+ println!("cargo::rustc-link-search=native={}", dir.display());
+ }
+ if let Some(lib) = rt_builtins_ext.file_name() {
+ println!(
+ "cargo::rustc-link-lib=static:+verbatim={}",
+ lib.to_str().unwrap()
+ );
+ }
+ } else {
+ build.compile("libcompiler-rt.a");
+ }
+ }
+
+ fn build_aarch64_out_of_line_atomics_libraries(
+ builtins_dir: &Path,
+ cfg: &mut cc::Build,
+ link_against_prebuilt_rt: bool,
+ ) {
+ let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
+ let outlined_atomics_file = builtins_dir.join("aarch64").join("lse.S");
+ if !link_against_prebuilt_rt {
+ println!("cargo:rerun-if-changed={}", outlined_atomics_file.display());
+ }
+
+ cfg.include(&builtins_dir);
+
+ for instruction_type in &["cas", "swp", "ldadd", "ldclr", "ldeor", "ldset"] {
+ for size in &[1, 2, 4, 8, 16] {
+ if *size == 16 && *instruction_type != "cas" {
+ continue;
+ }
+
+ for (model_number, model_name) in
+ &[(1, "relax"), (2, "acq"), (3, "rel"), (4, "acq_rel")]
+ {
+ let sym = format!("__aarch64_{}{}_{}", instruction_type, size, model_name);
+ println!("cargo:rustc-cfg={}=\"optimized-c\"", sym);
+
+ if link_against_prebuilt_rt {
+ continue;
+ }
+
+ // The original compiler-rt build system compiles the same
+ // source file multiple times with different compiler
+ // options. Here we do something slightly different: we
+ // create multiple .S files with the proper #defines and
+ // then include the original file.
+ //
+ // This is needed because the cc crate doesn't allow us to
+ // override the name of object files and libtool requires
+ // all objects in an archive to have unique names.
+ let path =
+ out_dir.join(format!("lse_{}{}_{}.S", instruction_type, size, model_name));
+ let mut file = File::create(&path).unwrap();
+ writeln!(file, "#define L_{}", instruction_type).unwrap();
+ writeln!(file, "#define SIZE {}", size).unwrap();
+ writeln!(file, "#define MODEL {}", model_number).unwrap();
+ writeln!(
+ file,
+ "#include \"{}\"",
+ outlined_atomics_file.canonicalize().unwrap().display()
+ )
+ .unwrap();
+ drop(file);
+ cfg.file(path);
+ }
+ }
+ }
+ }
+}
diff --git a/ci/licenses/rust-compiler-originals/compiler-builtins-float-conv.rs.txt b/ci/licenses/rust-compiler-originals/compiler-builtins-float-conv.rs.txt
new file mode 100644
index 0000000..6193aa4
--- /dev/null
+++ b/ci/licenses/rust-compiler-originals/compiler-builtins-float-conv.rs.txt
@@ -0,0 +1,508 @@
+use core::ops::Neg;
+
+use crate::support::{CastFrom, CastInto, Float, Int, MinInt};
+
+/// Conversions from integers to floats.
+///
+/// The algorithm is explained here: . It roughly does the following:
+/// - Calculate a base mantissa by shifting the integer into mantissa position. This gives us a
+/// mantissa _with the implicit bit set_!
+/// - Figure out if rounding needs to occur by classifying the bits that are to be truncated. Some
+/// patterns are used to simplify this. Adjust the mantissa with the result if needed.
+/// - Calculate the exponent based on the base-2 logarithm of `i` (leading zeros). Subtract one.
+/// - Shift the exponent and add the mantissa to create the final representation. Subtracting one
+/// from the exponent (above) accounts for the explicit bit being set in the mantissa.
+///
+/// # Terminology
+///
+/// - `i`: the original integer
+/// - `i_m`: the integer, shifted fully left (no leading zeros)
+/// - `n`: number of leading zeroes
+/// - `e`: the resulting exponent. Usually 1 is subtracted to offset the mantissa implicit bit.
+/// - `m_base`: the mantissa before adjusting for truncated bits. Implicit bit is usually set.
+/// - `adj`: the bits that will be truncated, possibly compressed in some way.
+/// - `m`: the resulting mantissa. Implicit bit is usually set.
+mod int_to_float {
+ use super::*;
+
+ /// Calculate the exponent from the number of leading zeros.
+ ///
+ /// Usually 1 is subtracted from this function's result, so that a mantissa with the implicit
+ /// bit set can be added back later.
+ fn exp>>(n: u32) -> F::Int {
+ F::Int::cast_from(F::EXP_BIAS - 1 + I::BITS - n)
+ }
+
+ /// Adjust a mantissa with dropped bits to perform correct rounding.
+ ///
+ /// The dropped bits should be exactly the bits that get truncated (left-aligned), but they
+ /// can be combined or compressed in some way that simplifies operations.
+ fn m_adj(m_base: F::Int, dropped_bits: F::Int) -> F::Int {
+ // Branchlessly extract a `1` if rounding up should happen, 0 otherwise
+ // This accounts for rounding to even.
+ let adj = (dropped_bits - ((dropped_bits >> (F::BITS - 1)) & !m_base)) >> (F::BITS - 1);
+
+ // Add one when we need to round up. Break ties to even.
+ m_base + adj
+ }
+
+ /// Shift the exponent to its position and add the mantissa.
+ ///
+ /// If the mantissa has the implicit bit set, the exponent should be one less than its actual
+ /// value to cancel it out.
+ fn repr(e: F::Int, m: F::Int) -> F::Int {
+ // + rather than | so the mantissa can overflow into the exponent
+ (e << F::SIG_BITS) + m
+ }
+
+ /// Shift distance from a left-aligned integer to a smaller float.
+ fn shift_f_lt_i() -> u32 {
+ (I::BITS - F::BITS) + F::EXP_BITS
+ }
+
+ /// Shift distance from an integer with `n` leading zeros to a smaller float.
+ fn shift_f_gt_i(n: u32) -> u32 {
+ F::SIG_BITS - I::BITS + 1 + n
+ }
+
+ /// Perform a signed operation as unsigned, then add the sign back.
+ pub fn signed(i: I, conv: Conv) -> F
+ where
+ F: Float,
+ I: Int,
+ F::Int: CastFrom,
+ Conv: Fn(I::Unsigned) -> F::Int,
+ {
+ let sign_bit = F::Int::cast_from_lossy(i >> (I::BITS - 1)) << (F::BITS - 1);
+ F::from_bits(conv(i.unsigned_abs()) | sign_bit)
+ }
+
+ pub fn u32_to_f32_bits(i: u32) -> u32 {
+ if i == 0 {
+ return 0;
+ }
+ let n = i.leading_zeros();
+ // Mantissa with implicit bit set (significant bits)
+ let m_base = (i << n) >> f32::EXP_BITS;
+ // Bits that will be dropped (insignificant bits)
+ let adj = (i << n) << (f32::SIG_BITS + 1);
+ let m = m_adj::(m_base, adj);
+ let e = exp::(n) - 1;
+ repr::(e, m)
+ }
+
+ pub fn u32_to_f64_bits(i: u32) -> u64 {
+ if i == 0 {
+ return 0;
+ }
+ let n = i.leading_zeros();
+ // Mantissa with implicit bit set
+ let m = (i as u64) << shift_f_gt_i::(n);
+ let e = exp::(n) - 1;
+ repr::(e, m)
+ }
+
+ #[cfg(f128_enabled)]
+ pub fn u32_to_f128_bits(i: u32) -> u128 {
+ if i == 0 {
+ return 0;
+ }
+ let n = i.leading_zeros();
+
+ // Shift into mantissa position that is correct for the type, but shifted into the lower
+ // 64 bits over so can can avoid 128-bit math.
+ let m = (i as u64) << (shift_f_gt_i::(n) - 64);
+ let e = exp::(n) as u64 - 1;
+ // High 64 bits of f128 representation.
+ let h = (e << (f128::SIG_BITS - 64)) + m;
+
+ // Shift back to the high bits, the rest of the mantissa will always be 0.
+ (h as u128) << 64
+ }
+
+ pub fn u64_to_f32_bits(i: u64) -> u32 {
+ let n = i.leading_zeros();
+ let i_m = i.wrapping_shl(n);
+ // Mantissa with implicit bit set
+ let m_base: u32 = (i_m >> shift_f_lt_i::()) as u32;
+ // The entire lower half of `i` will be truncated (masked portion), plus the
+ // next `EXP_BITS` bits.
+ let adj = ((i_m >> f32::EXP_BITS) | i_m & 0xFFFF) as u32;
+ let m = m_adj::(m_base, adj);
+ let e = if i == 0 { 0 } else { exp::(n) - 1 };
+ repr::(e, m)
+ }
+
+ pub fn u64_to_f64_bits(i: u64) -> u64 {
+ if i == 0 {
+ return 0;
+ }
+ let n = i.leading_zeros();
+ // Mantissa with implicit bit set
+ let m_base = (i << n) >> f64::EXP_BITS;
+ let adj = (i << n) << (f64::SIG_BITS + 1);
+ let m = m_adj::(m_base, adj);
+ let e = exp::(n) - 1;
+ repr::(e, m)
+ }
+
+ #[cfg(f128_enabled)]
+ pub fn u64_to_f128_bits(i: u64) -> u128 {
+ if i == 0 {
+ return 0;
+ }
+ let n = i.leading_zeros();
+ // Mantissa with implicit bit set
+ let m = (i as u128) << shift_f_gt_i::(n);
+ let e = exp::(n) - 1;
+ repr::(e, m)
+ }
+
+ pub fn u128_to_f32_bits(i: u128) -> u32 {
+ let n = i.leading_zeros();
+ let i_m = i.wrapping_shl(n); // Mantissa, shifted so the first bit is nonzero
+ let m_base: u32 = (i_m >> shift_f_lt_i::()) as u32;
+
+ // Within the upper `F::BITS`, everything except for the signifcand
+ // gets truncated
+ let d1: u32 = (i_m >> (u128::BITS - f32::BITS - f32::SIG_BITS - 1)).cast_lossy();
+
+ // The entire rest of `i_m` gets truncated. Zero the upper `F::BITS` then just
+ // check if it is nonzero.
+ let d2: u32 = (i_m << f32::BITS >> f32::BITS != 0).into();
+ let adj = d1 | d2;
+
+ // Mantissa with implicit bit set
+ let m = m_adj::(m_base, adj);
+ let e = if i == 0 { 0 } else { exp::(n) - 1 };
+ repr::(e, m)
+ }
+
+ pub fn u128_to_f64_bits(i: u128) -> u64 {
+ let n = i.leading_zeros();
+ let i_m = i.wrapping_shl(n);
+ // Mantissa with implicit bit set
+ let m_base: u64 = (i_m >> shift_f_lt_i::()) as u64;
+ // The entire lower half of `i` will be truncated (masked portion), plus the
+ // next `EXP_BITS` bits.
+ let adj = ((i_m >> f64::EXP_BITS) | i_m & 0xFFFF_FFFF) as u64;
+ let m = m_adj::(m_base, adj);
+ let e = if i == 0 { 0 } else { exp::(n) - 1 };
+ repr::(e, m)
+ }
+
+ #[cfg(f128_enabled)]
+ pub fn u128_to_f128_bits(i: u128) -> u128 {
+ if i == 0 {
+ return 0;
+ }
+ let n = i.leading_zeros();
+ // Mantissa with implicit bit set
+ let m_base = (i << n) >> f128::EXP_BITS;
+ let adj = (i << n) << (f128::SIG_BITS + 1);
+ let m = m_adj::(m_base, adj);
+ let e = exp::(n) - 1;
+ repr::(e, m)
+ }
+}
+
+// Conversions from unsigned integers to floats.
+intrinsics! {
+ #[arm_aeabi_alias = __aeabi_ui2f]
+ pub extern "C" fn __floatunsisf(i: u32) -> f32 {
+ f32::from_bits(int_to_float::u32_to_f32_bits(i))
+ }
+
+ #[arm_aeabi_alias = __aeabi_ui2d]
+ pub extern "C" fn __floatunsidf(i: u32) -> f64 {
+ f64::from_bits(int_to_float::u32_to_f64_bits(i))
+ }
+
+ #[arm_aeabi_alias = __aeabi_ul2f]
+ pub extern "C" fn __floatundisf(i: u64) -> f32 {
+ f32::from_bits(int_to_float::u64_to_f32_bits(i))
+ }
+
+ #[arm_aeabi_alias = __aeabi_ul2d]
+ pub extern "C" fn __floatundidf(i: u64) -> f64 {
+ f64::from_bits(int_to_float::u64_to_f64_bits(i))
+ }
+
+ #[cfg(not(all(target_os = "uefi", target_arch = "x86_64")))]
+ pub extern "C" fn __floatuntisf(i: u128) -> f32 {
+ f32::from_bits(int_to_float::u128_to_f32_bits(i))
+ }
+
+ #[cfg(all(target_os = "uefi", target_arch = "x86_64"))]
+ pub extern "C" fn __floatuntisf(lo: u64, hi: u64) -> f32 {
+ f32::from_bits(int_to_float::u128_to_f32_bits((u128::from(hi) << 64) | u128::from(lo)))
+ }
+
+ #[cfg(not(all(target_os = "uefi", target_arch = "x86_64")))]
+ pub extern "C" fn __floatuntidf(i: u128) -> f64 {
+ f64::from_bits(int_to_float::u128_to_f64_bits(i))
+ }
+
+ #[cfg(all(target_os = "uefi", target_arch = "x86_64"))]
+ pub extern "C" fn __floatuntidf(lo: u64, hi: u64) -> f64 {
+ f64::from_bits(int_to_float::u128_to_f64_bits((u128::from(hi) << 64) | u128::from(lo)))
+ }
+
+ #[ppc_alias = __floatunsikf]
+ #[cfg(f128_enabled)]
+ pub extern "C" fn __floatunsitf(i: u32) -> f128 {
+ f128::from_bits(int_to_float::u32_to_f128_bits(i))
+ }
+
+ #[ppc_alias = __floatundikf]
+ #[cfg(f128_enabled)]
+ pub extern "C" fn __floatunditf(i: u64) -> f128 {
+ f128::from_bits(int_to_float::u64_to_f128_bits(i))
+ }
+
+ #[ppc_alias = __floatuntikf]
+ #[cfg(f128_enabled)]
+ pub extern "C" fn __floatuntitf(i: u128) -> f128 {
+ f128::from_bits(int_to_float::u128_to_f128_bits(i))
+ }
+}
+
+// Conversions from signed integers to floats.
+intrinsics! {
+ #[arm_aeabi_alias = __aeabi_i2f]
+ pub extern "C" fn __floatsisf(i: i32) -> f32 {
+ int_to_float::signed(i, int_to_float::u32_to_f32_bits)
+ }
+
+ #[arm_aeabi_alias = __aeabi_i2d]
+ pub extern "C" fn __floatsidf(i: i32) -> f64 {
+ int_to_float::signed(i, int_to_float::u32_to_f64_bits)
+ }
+
+ #[arm_aeabi_alias = __aeabi_l2f]
+ pub extern "C" fn __floatdisf(i: i64) -> f32 {
+ int_to_float::signed(i, int_to_float::u64_to_f32_bits)
+ }
+
+ #[arm_aeabi_alias = __aeabi_l2d]
+ pub extern "C" fn __floatdidf(i: i64) -> f64 {
+ int_to_float::signed(i, int_to_float::u64_to_f64_bits)
+ }
+
+ #[cfg(not(all(target_os = "uefi", target_arch = "x86_64")))]
+ pub extern "C" fn __floattisf(i: i128) -> f32 {
+ int_to_float::signed(i, int_to_float::u128_to_f32_bits)
+ }
+
+ #[cfg(all(target_os = "uefi", target_arch = "x86_64"))]
+ pub extern "C" fn __floattisf(lo: u64, hi: u64) -> f32 {
+ int_to_float::signed((i128::from(hi) << 64) | i128::from(lo), int_to_float::u128_to_f32_bits)
+ }
+
+ #[cfg(not(all(target_os = "uefi", target_arch = "x86_64")))]
+ pub extern "C" fn __floattidf(i: i128) -> f64 {
+ int_to_float::signed(i, int_to_float::u128_to_f64_bits)
+ }
+
+ #[cfg(all(target_os = "uefi", target_arch = "x86_64"))]
+ pub extern "C" fn __floattidf(lo: u64, hi: u64) -> f64 {
+ int_to_float::signed((i128::from(hi) << 64) | i128::from(lo), int_to_float::u128_to_f64_bits)
+ }
+
+ #[ppc_alias = __floatsikf]
+ #[cfg(f128_enabled)]
+ pub extern "C" fn __floatsitf(i: i32) -> f128 {
+ int_to_float::signed(i, int_to_float::u32_to_f128_bits)
+ }
+
+ #[ppc_alias = __floatdikf]
+ #[cfg(f128_enabled)]
+ pub extern "C" fn __floatditf(i: i64) -> f128 {
+ int_to_float::signed(i, int_to_float::u64_to_f128_bits)
+ }
+
+ #[ppc_alias = __floattikf]
+ #[cfg(f128_enabled)]
+ pub extern "C" fn __floattitf(i: i128) -> f128 {
+ int_to_float::signed(i, int_to_float::u128_to_f128_bits)
+ }
+}
+
+/// Generic float to unsigned int conversions.
+fn float_to_unsigned_int(f: F) -> U
+where
+ F: Float,
+ U: Int,
+ F::Int: CastInto,
+ F::Int: CastFrom,
+ F::Int: CastInto,
+ u32: CastFrom,
+{
+ float_to_int_inner::(f.to_bits(), |i: U| i, || U::MAX)
+}
+
+/// Generic float to signed int conversions.
+fn float_to_signed_int(f: F) -> I
+where
+ F: Float,
+ I: Int + Neg
\n\n If you produce a product that includes or requires SAXON, please refer to it as\n "The SAXON XSLT Processor from Michael Kay", and include the URL of the\n home page, which is at\n http://saxon.sourceforge.net/.
\n\n There is no guarantee of technical support, though I am usually able to answer enquiries\n within a few days. Please subscribe to the mailing list available at\n \n http://lists.sourceforge.net/lists/listinfo/saxon-help and raise any enquiries there.\n Also check the Saxon project pages on sourceforge for details of known errors; all bugs are\n listed there as soon as I have sufficient evidence to describe the nature of the problem.
\n
\n\n Ælfred
\n\n Included in the Saxon distribution is a modified version of the Ælfred XML parser\n originally developed by David Megginson at Microstar (no longer in existence).\n I have taken the relevant part of\n David Brownell's\n Ælfred2 distribution, repackaged it,\n and fixed a few bugs. All changes are clearly documented in the source code.
\n\n This is distributed under the terms of Microstar's terms and conditions, which are as follows:
\n\n \n \n | \n \n AElfred, Version 1.2 \n Microstar's Java-Based XML Parser \n Copyright (c) 1997, 1998 by Microstar Software Ltd. \n Home Page: http://www.microstar.com/XML/ \n\n AElfred is free for both commercial and non-commercial use and\n redistribution, provided that Microstar's copyright and disclaimer are\n retained intact. You are free to modify AElfred for your own use and\n to redistribute AElfred with your modifications, provided that the\n modifications are clearly documented. \n\n\n DISCLAIMER \n\n\n This program is distributed in the hope that it will be useful, but\n WITHOUT ANY WARRANTY; without even the implied warranty of\n merchantability or fitness for a particular purpose. Please use it AT\n YOUR OWN RISK. \n\n\n | \n | \n
\n
\n\n David Brownell added the following statement:
\n \n\n/*\n * Copyright (c) 1999-2000 by David Brownell. All Rights Reserved.\n *\n * This program is open source software; you may use, copy, modify, and\n * redistribute it under the terms of the LICENSE with which it was\n * originally distributed.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * LICENSE for more details.\n */\n
\n \n\n The version included with Saxon is David Brownell's code of 26 Feb 2000,\n modified as follows:
\n\n \n - Changed the package name to com.icl.saxon.aelfred to prevent any accidental confusion with the\n original Microstar code or with David Brownell's version.\n
\n - Fixed several bugs: (1) a bug in namespace handling (where an attribute xxx:name precedes the xmlns:xxx\n declaration) (2) poor diagnostics when end of file occurs prematurely\n
\n - Subsetting the code to include only the XML non-validating parser and SAX driver, with appropriate\n changes to the setFeature() and getFeature() methods.\n
\n - Some further changes made by David Brownell up to June 2001 have been incorporated.
\n
\n\n
\n\n Michael H. Kay
\n Saxonica Limited
\n 22 June 2005
\n\n\n\n\n\n\n",
+ "1f36ff1342a581142c858f90064e20633d43529ac82adb85345bd902a14e18b2": "## OASIS PKCS #11 Cryptographic Token Interface v3.1\n\n### OASIS PKCS #11 Cryptographic Token Interface License\n\n\nCopyright © OASIS Open 2023. All Rights Reserved.\n\nAll capitalized terms in the following text have the meanings\nassigned to them in the OASIS Intellectual Property Rights Policy (the\n\"OASIS IPR Policy\"). The full Policy may be found at the OASIS website:\n[https://www.oasis-open.org/policies-guidelines/ipr/].\n\nThis document and translations of it may be copied and furnished to\nothers, and derivative works that comment on or otherwise explain it or\nassist in its implementation may be prepared, copied, published, and\ndistributed, in whole or in part, without restriction of any kind,\nprovided that the above copyright notice and this section are included\non all such copies and derivative works. However, this document itself\nmay not be modified in any way, including by removing the copyright\nnotice or references to OASIS, except as needed for the purpose of\ndeveloping any document or deliverable produced by an OASIS Technical\nCommittee (in which case the rules applicable to copyrights, as set\nforth in the OASIS IPR Policy, must be followed) or as required to\ntranslate it into languages other than English.\n\nThe limited permissions granted above are perpetual and will not be\nrevoked by OASIS or its successors or assigns.\n\nThis document and the information contained herein is provided on an\n\"AS IS\" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,\nINCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE\nINFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED\nWARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. OASIS\nAND ITS MEMBERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR\nCONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THIS DOCUMENT OR ANY\nPART THEREOF.\n\nAs stated in the OASIS IPR Policy, the following three paragraphs in\nbrackets apply to OASIS Standards Final Deliverable documents (Committee\nSpecifications, OASIS Standards, or Approved Errata).\n\n[OASIS requests that any OASIS Party or any other party that\nbelieves it has patent claims that would necessarily be infringed by\nimplementations of this OASIS Standards Final Deliverable, to notify\nOASIS TC Administrator and provide an indication of its willingness to\ngrant patent licenses to such patent claims in a manner consistent with\nthe IPR Mode of the OASIS Technical Committee that produced this\ndeliverable.]\n\n[OASIS invites any party to contact the OASIS TC Administrator if it\nis aware of a claim of ownership of any patent claims that would\nnecessarily be infringed by implementations of this OASIS Standards\nFinal Deliverable by a patent holder that is not willing to provide a\nlicense to such patent claims in a manner consistent with the IPR Mode\nof the OASIS Technical Committee that produced this OASIS Standards\nFinal Deliverable. OASIS may include such claims on its website, but\ndisclaims any obligation to do so.]\n\n[OASIS takes no position regarding the validity or scope of any\nintellectual property or other rights that might be claimed to pertain\nto the implementation or use of the technology described in this OASIS\nStandards Final Deliverable or the extent to which any license under\nsuch rights might or might not be available; neither does it represent\nthat it has made any effort to identify any such rights. Information on\nOASIS' procedures with respect to rights in any document or deliverable\nproduced by an OASIS Technical Committee can be found on the OASIS\nwebsite. Copies of claims of rights made available for publication and\nany assurances of licenses to be made available, or the result of an\nattempt made to obtain a general license or permission for the use of\nsuch proprietary rights by implementers or users of this OASIS Standards\nFinal Deliverable, can be obtained from the OASIS TC Administrator.\nOASIS makes no representation that any information or list of\nintellectual property rights will at any time be complete, or that any\nclaims in such list are, in fact, Essential Claims.]\n\n
\n",
+ "26429c1eb65db41cac81999bebd705a60a5dba1d837664e4cc94f54d5867d818": "## libpng v1.6.43\n\n### libpng License\n\n\nCOPYRIGHT NOTICE, DISCLAIMER, and LICENSE\n=========================================\n\nPNG Reference Library License version 2\n---------------------------------------\n\nCopyright (C) 1995-2024 The PNG Reference Library Authors.\nCopyright (C) 2018-2024 Cosmin Truta\nCopyright (C) 1998-2018 Glenn Randers-Pehrson\nCopyright (C) 1996-1997 Andreas Dilger\nCopyright (C) 1995-1996 Guy Eric Schalnat, Group 42, Inc.\n\nThe software is supplied \"as is\", without warranty of any kind,\nexpress or implied, including, without limitation, the warranties\nof merchantability, fitness for a particular purpose, title, and\nnon-infringement. In no event shall the Copyright owners, or\nanyone distributing the software, be liable for any damages or\nother liability, whether in contract, tort or otherwise, arising\nfrom, out of, or in connection with the software, or the use or\nother dealings in the software, even if advised of the possibility\nof such damage.\n\nPermission is hereby granted to use, copy, modify, and distribute\nthis software, or portions hereof, for any purpose, without fee,\nsubject to the following restrictions:\n\n 1. The origin of this software must not be misrepresented; you\n must not claim that you wrote the original software. If you\n use this software in a product, an acknowledgment in the product\n documentation would be appreciated, but is not required.\n\n 2. Altered source versions must be plainly marked as such, and must\n not be misrepresented as being the original software.\n\n 3. This Copyright notice may not be removed or altered from any\n source or altered source distribution.\n\n\nPNG Reference Library License version 1 (for libpng 0.5 through 1.6.35)\n-----------------------------------------------------------------------\n\nlibpng versions 1.0.7, July 1, 2000, through 1.6.35, July 15, 2018 are\nCopyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson, are\nderived from libpng-1.0.6, and are distributed according to the same\ndisclaimer and license as libpng-1.0.6 with the following individuals\nadded to the list of Contributing Authors:\n\n Simon-Pierre Cadieux\n Eric S. Raymond\n Mans Rullgard\n Cosmin Truta\n Gilles Vollant\n James Yu\n Mandar Sahastrabuddhe\n Google Inc.\n Vadim Barkov\n\nand with the following additions to the disclaimer:\n\n There is no warranty against interference with your enjoyment of\n the library or against infringement. There is no warranty that our\n efforts or the library will fulfill any of your particular purposes\n or needs. This library is provided with all faults, and the entire\n risk of satisfactory quality, performance, accuracy, and effort is\n with the user.\n\nSome files in the \"contrib\" directory and some configure-generated\nfiles that are distributed with libpng have other copyright owners, and\nare released under other open source licenses.\n\nlibpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are\nCopyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from\nlibpng-0.96, and are distributed according to the same disclaimer and\nlicense as libpng-0.96, with the following individuals added to the\nlist of Contributing Authors:\n\n Tom Lane\n Glenn Randers-Pehrson\n Willem van Schaik\n\nlibpng versions 0.89, June 1996, through 0.96, May 1997, are\nCopyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88,\nand are distributed according to the same disclaimer and license as\nlibpng-0.88, with the following individuals added to the list of\nContributing Authors:\n\n John Bowler\n Kevin Bracey\n Sam Bushell\n Magnus Holmgren\n Greg Roelofs\n Tom Tanner\n\nSome files in the \"scripts\" directory have other copyright owners,\nbut are released under this license.\n\nlibpng versions 0.5, May 1995, through 0.88, January 1996, are\nCopyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.\n\nFor the purposes of this copyright and license, \"Contributing Authors\"\nis defined as the following set of individuals:\n\n Andreas Dilger\n Dave Martindale\n Guy Eric Schalnat\n Paul Schmidt\n Tim Wegner\n\nThe PNG Reference Library is supplied \"AS IS\". The Contributing\nAuthors and Group 42, Inc. disclaim all warranties, expressed or\nimplied, including, without limitation, the warranties of\nmerchantability and of fitness for any purpose. The Contributing\nAuthors and Group 42, Inc. assume no liability for direct, indirect,\nincidental, special, exemplary, or consequential damages, which may\nresult from the use of the PNG Reference Library, even if advised of\nthe possibility of such damage.\n\nPermission is hereby granted to use, copy, modify, and distribute this\nsource code, or portions hereof, for any purpose, without fee, subject\nto the following restrictions:\n\n 1. The origin of this source code must not be misrepresented.\n\n 2. Altered versions must be plainly marked as such and must not\n be misrepresented as being the original source.\n\n 3. This Copyright notice may not be removed or altered from any\n source or altered source distribution.\n\nThe Contributing Authors and Group 42, Inc. specifically permit,\nwithout fee, and encourage the use of this source code as a component\nto supporting the PNG file format in commercial products. If you use\nthis source code in a product, acknowledgment is not required but would\nbe appreciated.\n\nTRADEMARK\n=========\n\nThe name \"libpng\" has not been registered by the Copyright owners\nas a trademark in any jurisdiction. However, because libpng has\nbeen distributed and maintained world-wide, continually since 1995,\nthe Copyright owners claim \"common-law trademark protection\" in any\njurisdiction where common-law trademark is recognized.\n\n
\n\n### AUTHORS File Information\n```\nPNG REFERENCE LIBRARY AUTHORS\n=============================\n\nThis is the list of PNG Reference Library (\"libpng\") Contributing\nAuthors, for copyright and licensing purposes.\n\n * Adam Richter\n * Andreas Dilger\n * Chris Blume\n * Cosmin Truta\n * Dave Martindale\n * Eric S. Raymond\n * Gilles Vollant\n * Glenn Randers-Pehrson\n * Greg Roelofs\n * Guy Eric Schalnat\n * James Yu\n * John Bowler\n * Kevin Bracey\n * Magnus Holmgren\n * Mandar Sahastrabuddhe\n * Mans Rullgard\n * Matt Sarett\n * Mike Klein\n * Pascal Massimino\n * Paul Schmidt\n * Philippe Antoine\n * Qiang Zhou\n * Sam Bushell\n * Samuel Williams\n * Simon-Pierre Cadieux\n * Tim Wegner\n * Tom Lane\n * Tom Tanner\n * Vadim Barkov\n * Willem van Schaik\n * Zhijie Liang\n * Apple Inc.\n - Zixu Wang (王子旭)\n * Arm Holdings\n - Richard Townsend\n * Google Inc.\n - Dan Field\n - Leon Scroggins III\n - Matt Sarett\n - Mike Klein\n - Sami Boukortt\n - Wan-Teh Chang\n * Loongson Technology Corporation Ltd.\n - GuXiWei (顾希伟)\n - JinBo (金波)\n - ZhangLixia (张利霞)\n\nThe build projects, the build scripts, the test scripts, and other\nfiles in the \"projects\", \"scripts\" and \"tests\" directories, have\nother copyright owners, but are released under the libpng license.\n\nSome files in the \"ci\" and \"contrib\" directories, as well as some\nof the tools-generated files that are distributed with libpng, have\nother copyright owners, and are released under other open source\nlicenses.\n```\n",
+ "371974b1fca3744a3892c7ee1fcc593b8b4281fc218f4cafd2f709e9df5fd81d": "## IAIK (Institute for Applied Information Processing and Communication) PKCS#11 wrapper files v1\n\n### IAIK License\n\n\nCopyright (c) 2002 Graz University of Technology. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n3. The end-user documentation included with the redistribution, if any, must\n include the following acknowledgment:\n\n \"This product includes software developed by IAIK of Graz University of\n Technology.\"\n\n Alternately, this acknowledgment may appear in the software itself, if and\n wherever such third-party acknowledgments normally appear.\n\n4. The names \"Graz University of Technology\" and \"IAIK of Graz University of\n Technology\" must not be used to endorse or promote products derived from this\n software without prior written permission.\n\n5. Products derived from this software may not be called \"IAIK PKCS Wrapper\",\n nor may \"IAIK\" appear in their name, without prior written permission of\n Graz University of Technology.\n\nTHIS SOFTWARE IS PROVIDED \"AS IS\" AND ANY EXPRESSED OR IMPLIED WARRANTIES,\nINCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\nLICENSOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,\nOR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGE.\n\n
\n",
+ "45c6d4da48325edfbff3dcf71c704e504c057904435ed23c6d57046d551eb69d": "## Cryptix AES v3.2.0\n\n### Cryptix General License\n\n\nCryptix General License\n\nCopyright (c) 1995-2005 The Cryptix Foundation Limited.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n 1. Redistributions of source code must retain the copyright notice,\n this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in\n the documentation and/or other materials provided with the\n distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE CRYPTIX FOUNDATION LIMITED AND\nCONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,\nINCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\nIN NO EVENT SHALL THE CRYPTIX FOUNDATION LIMITED OR CONTRIBUTORS BE\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\nBUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\nWHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\nOR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\nIF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n
\n",
+ "4a6bf6b367193ee68681cb2d9fed30ffc5d62dd2d477bd62e0271707d71b3244": "## Apache Xerces v2.12.2\n\n### Apache Xerces Notice\n\n =========================================================================\n == NOTICE file corresponding to section 4(d) of the Apache License, ==\n == Version 2.0, in this case for the Apache Xerces Java distribution. ==\n =========================================================================\n\n Apache Xerces Java\n Copyright 1999-2022 The Apache Software Foundation\n\n This product includes software developed at\n The Apache Software Foundation (http://www.apache.org/).\n\n Portions of this software were originally based on the following:\n - software copyright (c) 1999, IBM Corporation., http://www.ibm.com.\n - software copyright (c) 1999, Sun Microsystems., http://www.sun.com.\n - voluntary contributions made by Paul Eng on behalf of the\n Apache Software Foundation that were originally developed at iClick, Inc.,\n software copyright (c) 1999.\n
\n\n### Apache 2.0 License\n\n\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n
\n",
+ "4b9abebc4338048a7c2dc184e9f800deb349366bdf28eb23c2677a77b4c87726": "The GNU General Public License (GPL)\n\nVersion 2, June 1991\n\nCopyright (C) 1989, 1991 Free Software Foundation, Inc.\n51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n\nEveryone is permitted to copy and distribute verbatim copies of this license\ndocument, but changing it is not allowed.\n\nPreamble\n\nThe licenses for most software are designed to take away your freedom to share\nand change it. By contrast, the GNU General Public License is intended to\nguarantee your freedom to share and change free software--to make sure the\nsoftware is free for all its users. This General Public License applies to\nmost of the Free Software Foundation's software and to any other program whose\nauthors commit to using it. (Some other Free Software Foundation software is\ncovered by the GNU Library General Public License instead.) You can apply it to\nyour programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our\nGeneral Public Licenses are designed to make sure that you have the freedom to\ndistribute copies of free software (and charge for this service if you wish),\nthat you receive source code or can get it if you want it, that you can change\nthe software or use pieces of it in new free programs; and that you know you\ncan do these things.\n\nTo protect your rights, we need to make restrictions that forbid anyone to deny\nyou these rights or to ask you to surrender the rights. These restrictions\ntranslate to certain responsibilities for you if you distribute copies of the\nsoftware, or if you modify it.\n\nFor example, if you distribute copies of such a program, whether gratis or for\na fee, you must give the recipients all the rights that you have. You must\nmake sure that they, too, receive or can get the source code. And you must\nshow them these terms so they know their rights.\n\nWe protect your rights with two steps: (1) copyright the software, and (2)\noffer you this license which gives you legal permission to copy, distribute\nand/or modify the software.\n\nAlso, for each author's protection and ours, we want to make certain that\neveryone understands that there is no warranty for this free software. If the\nsoftware is modified by someone else and passed on, we want its recipients to\nknow that what they have is not the original, so that any problems introduced\nby others will not reflect on the original authors' reputations.\n\nFinally, any free program is threatened constantly by software patents. We\nwish to avoid the danger that redistributors of a free program will\nindividually obtain patent licenses, in effect making the program proprietary.\nTo prevent this, we have made it clear that any patent must be licensed for\neveryone's free use or not licensed at all.\n\nThe precise terms and conditions for copying, distribution and modification\nfollow.\n\nTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n0. This License applies to any program or other work which contains a notice\nplaced by the copyright holder saying it may be distributed under the terms of\nthis General Public License. The \"Program\", below, refers to any such program\nor work, and a \"work based on the Program\" means either the Program or any\nderivative work under copyright law: that is to say, a work containing the\nProgram or a portion of it, either verbatim or with modifications and/or\ntranslated into another language. (Hereinafter, translation is included\nwithout limitation in the term \"modification\".) Each licensee is addressed as\n\"you\".\n\nActivities other than copying, distribution and modification are not covered by\nthis License; they are outside its scope. The act of running the Program is\nnot restricted, and the output from the Program is covered only if its contents\nconstitute a work based on the Program (independent of having been made by\nrunning the Program). Whether that is true depends on what the Program does.\n\n1. You may copy and distribute verbatim copies of the Program's source code as\nyou receive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice and\ndisclaimer of warranty; keep intact all the notices that refer to this License\nand to the absence of any warranty; and give any other recipients of the\nProgram a copy of this License along with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and you may\nat your option offer warranty protection in exchange for a fee.\n\n2. You may modify your copy or copies of the Program or any portion of it, thus\nforming a work based on the Program, and copy and distribute such modifications\nor work under the terms of Section 1 above, provided that you also meet all of\nthese conditions:\n\n a) You must cause the modified files to carry prominent notices stating\n that you changed the files and the date of any change.\n\n b) You must cause any work that you distribute or publish, that in whole or\n in part contains or is derived from the Program or any part thereof, to be\n licensed as a whole at no charge to all third parties under the terms of\n this License.\n\n c) If the modified program normally reads commands interactively when run,\n you must cause it, when started running for such interactive use in the\n most ordinary way, to print or display an announcement including an\n appropriate copyright notice and a notice that there is no warranty (or\n else, saying that you provide a warranty) and that users may redistribute\n the program under these conditions, and telling the user how to view a copy\n of this License. (Exception: if the Program itself is interactive but does\n not normally print such an announcement, your work based on the Program is\n not required to print an announcement.)\n\nThese requirements apply to the modified work as a whole. If identifiable\nsections of that work are not derived from the Program, and can be reasonably\nconsidered independent and separate works in themselves, then this License, and\nits terms, do not apply to those sections when you distribute them as separate\nworks. But when you distribute the same sections as part of a whole which is a\nwork based on the Program, the distribution of the whole must be on the terms\nof this License, whose permissions for other licensees extend to the entire\nwhole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest your\nrights to work written entirely by you; rather, the intent is to exercise the\nright to control the distribution of derivative or collective works based on\nthe Program.\n\nIn addition, mere aggregation of another work not based on the Program with the\nProgram (or with a work based on the Program) on a volume of a storage or\ndistribution medium does not bring the other work under the scope of this\nLicense.\n\n3. You may copy and distribute the Program (or a work based on it, under\nSection 2) in object code or executable form under the terms of Sections 1 and\n2 above provided that you also do one of the following:\n\n a) Accompany it with the complete corresponding machine-readable source\n code, which must be distributed under the terms of Sections 1 and 2 above\n on a medium customarily used for software interchange; or,\n\n b) Accompany it with a written offer, valid for at least three years, to\n give any third party, for a charge no more than your cost of physically\n performing source distribution, a complete machine-readable copy of the\n corresponding source code, to be distributed under the terms of Sections 1\n and 2 above on a medium customarily used for software interchange; or,\n\n c) Accompany it with the information you received as to the offer to\n distribute corresponding source code. (This alternative is allowed only\n for noncommercial distribution and only if you received the program in\n object code or executable form with such an offer, in accord with\n Subsection b above.)\n\nThe source code for a work means the preferred form of the work for making\nmodifications to it. For an executable work, complete source code means all\nthe source code for all modules it contains, plus any associated interface\ndefinition files, plus the scripts used to control compilation and installation\nof the executable. However, as a special exception, the source code\ndistributed need not include anything that is normally distributed (in either\nsource or binary form) with the major components (compiler, kernel, and so on)\nof the operating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering access to copy\nfrom a designated place, then offering equivalent access to copy the source\ncode from the same place counts as distribution of the source code, even though\nthird parties are not compelled to copy the source along with the object code.\n\n4. You may not copy, modify, sublicense, or distribute the Program except as\nexpressly provided under this License. Any attempt otherwise to copy, modify,\nsublicense or distribute the Program is void, and will automatically terminate\nyour rights under this License. However, parties who have received copies, or\nrights, from you under this License will not have their licenses terminated so\nlong as such parties remain in full compliance.\n\n5. You are not required to accept this License, since you have not signed it.\nHowever, nothing else grants you permission to modify or distribute the Program\nor its derivative works. These actions are prohibited by law if you do not\naccept this License. Therefore, by modifying or distributing the Program (or\nany work based on the Program), you indicate your acceptance of this License to\ndo so, and all its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n6. Each time you redistribute the Program (or any work based on the Program),\nthe recipient automatically receives a license from the original licensor to\ncopy, distribute or modify the Program subject to these terms and conditions.\nYou may not impose any further restrictions on the recipients' exercise of the\nrights granted herein. You are not responsible for enforcing compliance by\nthird parties to this License.\n\n7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues), conditions\nare imposed on you (whether by court order, agreement or otherwise) that\ncontradict the conditions of this License, they do not excuse you from the\nconditions of this License. If you cannot distribute so as to satisfy\nsimultaneously your obligations under this License and any other pertinent\nobligations, then as a consequence you may not distribute the Program at all.\nFor example, if a patent license would not permit royalty-free redistribution\nof the Program by all those who receive copies directly or indirectly through\nyou, then the only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under any\nparticular circumstance, the balance of the section is intended to apply and\nthe section as a whole is intended to apply in other circumstances.\n\nIt is not the purpose of this section to induce you to infringe any patents or\nother property right claims or to contest validity of any such claims; this\nsection has the sole purpose of protecting the integrity of the free software\ndistribution system, which is implemented by public license practices. Many\npeople have made generous contributions to the wide range of software\ndistributed through that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing to\ndistribute software through any other system and a licensee cannot impose that\nchoice.\n\nThis section is intended to make thoroughly clear what is believed to be a\nconsequence of the rest of this License.\n\n8. If the distribution and/or use of the Program is restricted in certain\ncountries either by patents or by copyrighted interfaces, the original\ncopyright holder who places the Program under this License may add an explicit\ngeographical distribution limitation excluding those countries, so that\ndistribution is permitted only in or among countries not thus excluded. In\nsuch case, this License incorporates the limitation as if written in the body\nof this License.\n\n9. The Free Software Foundation may publish revised and/or new versions of the\nGeneral Public License from time to time. Such new versions will be similar in\nspirit to the present version, but may differ in detail to address new problems\nor concerns.\n\nEach version is given a distinguishing version number. If the Program\nspecifies a version number of this License which applies to it and \"any later\nversion\", you have the option of following the terms and conditions either of\nthat version or of any later version published by the Free Software Foundation.\nIf the Program does not specify a version number of this License, you may\nchoose any version ever published by the Free Software Foundation.\n\n10. If you wish to incorporate parts of the Program into other free programs\nwhose distribution conditions are different, write to the author to ask for\npermission. For software which is copyrighted by the Free Software Foundation,\nwrite to the Free Software Foundation; we sometimes make exceptions for this.\nOur decision will be guided by the two goals of preserving the free status of\nall derivatives of our free software and of promoting the sharing and reuse of\nsoftware generally.\n\nNO WARRANTY\n\n11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR\nTHE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE\nSTATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE\nPROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,\nINCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND\nPERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE,\nYOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL\nANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE\nPROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR\nINABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA\nBEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A\nFAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER\nOR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible\nuse to the public, the best way to achieve this is to make it free software\nwhich everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach\nthem to the start of each source file to most effectively convey the exclusion\nof warranty; and each file should have at least the \"copyright\" line and a\npointer to where the full notice is found.\n\n One line to give the program's name and a brief idea of what it does.\n\n Copyright (C) \n\n This program is free software; you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by the Free\n Software Foundation; either version 2 of the License, or (at your option)\n any later version.\n\n This program is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\n more details.\n\n You should have received a copy of the GNU General Public License along\n with this program; if not, write to the Free Software Foundation, Inc.,\n 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program is interactive, make it output a short notice like this when it\nstarts in an interactive mode:\n\n Gnomovision version 69, Copyright (C) year name of author Gnomovision comes\n with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free\n software, and you are welcome to redistribute it under certain conditions;\n type 'show c' for details.\n\nThe hypothetical commands 'show w' and 'show c' should show the appropriate\nparts of the General Public License. Of course, the commands you use may be\ncalled something other than 'show w' and 'show c'; they could even be\nmouse-clicks or menu items--whatever suits your program.\n\nYou should also get your employer (if you work as a programmer) or your school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary. Here\nis a sample; alter the names:\n\n Yoyodyne, Inc., hereby disclaims all copyright interest in the program\n 'Gnomovision' (which makes passes at compilers) written by James Hacker.\n\n signature of Ty Coon, 1 April 1989\n\n Ty Coon, President of Vice\n\nThis General Public License does not permit incorporating your program into\nproprietary programs. If your program is a subroutine library, you may\nconsider it more useful to permit linking proprietary applications with the\nlibrary. If this is what you want to do, use the GNU Library General Public\nLicense instead of this License.\n\n\n\"CLASSPATH\" EXCEPTION TO THE GPL\n\nCertain source files distributed by Oracle America and/or its affiliates are\nsubject to the following clarification and special exception to the GPL, but\nonly where Oracle has expressly included in the particular source file's header\nthe words \"Oracle designates this particular file as subject to the \"Classpath\"\nexception as provided by Oracle in the LICENSE file that accompanied this code.\"\n\n Linking this library statically or dynamically with other modules is making\n a combined work based on this library. Thus, the terms and conditions of\n the GNU General Public License cover the whole combination.\n\n As a special exception, the copyright holders of this library give you\n permission to link this library with independent modules to produce an\n executable, regardless of the license terms of these independent modules,\n and to copy and distribute the resulting executable under terms of your\n choice, provided that you also meet, for each linked independent module,\n the terms and conditions of the license of that module. An independent\n module is a module which is not derived from or based on this library. If\n you modify this library, you may extend this exception to your version of\n the library, but you are not obligated to do so. If you do not wish to do\n so, delete this exception statement from your version.\n",
+ "5670a5a860905c44061c5546029d6e32fcd9e4c9311029c57a935ae36c25bc51": "The following files can be redistributed under the license below:\n\nyjpagent.dll\nlibyjpagent.so\nlibyjpagent.dylib\nyjp-controller-api-redist.jar\nyjp-probe-api-redist.jar\n\n-------------------------------------------------------------------\n\nCopyright (c) 2003-2022, YourKit\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n* Neither the name of YourKit nor the\n names of its contributors may be used to endorse or promote products\n derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY YOURKIT \"AS IS\" AND ANY\nEXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL YOURKIT BE LIABLE FOR ANY\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
+ "5a792b5a74ad2a5f3d6a7ad8b7a841116e58a772c18bc6e392320a365b222c76": "## SipHash v1.0-68c8a7c\n\n### Notice\nSipHash reference C implementation\n\n```\n Copyright (c) 2016 Jean-Philippe Aumasson \n\n To the extent possible under law, the author(s) have dedicated all copyright\n and related and neighboring rights to this software to the public domain\n worldwide. This software is distributed without any warranty.\n\n You should have received a copy of the CC0 Public Domain Dedication along\n with\n this software. If not, see\n .\n```\n\n### Licenses\nThe code is dual-licensed CCO and MIT\n\n#### MIT License\n```\nCopyright 2012-2024 JP Aumasson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n\n#### CC0 1.0 Universal\n```\nStatement of Purpose\n\nThe laws of most jurisdictions throughout the world automatically confer\nexclusive Copyright and Related Rights (defined below) upon the creator and\nsubsequent owner(s) (each and all, an \"owner\") of an original work of\nauthorship and/or a database (each, a \"Work\").\n\nCertain owners wish to permanently relinquish those rights to a Work for the\npurpose of contributing to a commons of creative, cultural and scientific\nworks (\"Commons\") that the public can reliably and without fear of later\nclaims of infringement build upon, modify, incorporate in other works, reuse\nand redistribute as freely as possible in any form whatsoever and for any\npurposes, including without limitation commercial purposes. These owners may\ncontribute to the Commons to promote the ideal of a free culture and the\nfurther production of creative, cultural and scientific works, or to gain\nreputation or greater distribution for their Work in part through the use and\nefforts of others.\n\nFor these and/or other purposes and motivations, and without any expectation\nof additional consideration or compensation, the person associating CC0 with a\nWork (the \"Affirmer\"), to the extent that he or she is an owner of Copyright\nand Related Rights in the Work, voluntarily elects to apply CC0 to the Work\nand publicly distribute the Work under its terms, with knowledge of his or her\nCopyright and Related Rights in the Work and the meaning and intended legal\neffect of CC0 on those rights.\n\n1. Copyright and Related Rights. A Work made available under CC0 may be\nprotected by copyright and related or neighboring rights (\"Copyright and\nRelated Rights\"). Copyright and Related Rights include, but are not limited\nto, the following:\n\n i. the right to reproduce, adapt, distribute, perform, display, communicate,\n and translate a Work;\n\n ii. moral rights retained by the original author(s) and/or performer(s);\n\n iii. publicity and privacy rights pertaining to a person's image or likeness\n depicted in a Work;\n\n iv. rights protecting against unfair competition in regards to a Work,\n subject to the limitations in paragraph 4(a), below;\n\n v. rights protecting the extraction, dissemination, use and reuse of data in\n a Work;\n\n vi. database rights (such as those arising under Directive 96/9/EC of the\n European Parliament and of the Council of 11 March 1996 on the legal\n protection of databases, and under any national implementation thereof,\n including any amended or successor version of such directive); and\n\n vii. other similar, equivalent or corresponding rights throughout the world\n based on applicable law or treaty, and any national implementations thereof.\n\n2. Waiver. To the greatest extent permitted by, but not in contravention of,\napplicable law, Affirmer hereby overtly, fully, permanently, irrevocably and\nunconditionally waives, abandons, and surrenders all of Affirmer's Copyright\nand Related Rights and associated claims and causes of action, whether now\nknown or unknown (including existing as well as future claims and causes of\naction), in the Work (i) in all territories worldwide, (ii) for the maximum\nduration provided by applicable law or treaty (including future time\nextensions), (iii) in any current or future medium and for any number of\ncopies, and (iv) for any purpose whatsoever, including without limitation\ncommercial, advertising or promotional purposes (the \"Waiver\"). Affirmer makes\nthe Waiver for the benefit of each member of the public at large and to the\ndetriment of Affirmer's heirs and successors, fully intending that such Waiver\nshall not be subject to revocation, rescission, cancellation, termination, or\nany other legal or equitable action to disrupt the quiet enjoyment of the Work\nby the public as contemplated by Affirmer's express Statement of Purpose.\n\n3. Public License Fallback. Should any part of the Waiver for any reason be\njudged legally invalid or ineffective under applicable law, then the Waiver\nshall be preserved to the maximum extent permitted taking into account\nAffirmer's express Statement of Purpose. In addition, to the extent the Waiver\nis so judged Affirmer hereby grants to each affected person a royalty-free,\nnon transferable, non sublicensable, non exclusive, irrevocable and\nunconditional license to exercise Affirmer's Copyright and Related Rights in\nthe Work (i) in all territories worldwide, (ii) for the maximum duration\nprovided by applicable law or treaty (including future time extensions), (iii)\nin any current or future medium and for any number of copies, and (iv) for any\npurpose whatsoever, including without limitation commercial, advertising or\npromotional purposes (the \"License\"). The License shall be deemed effective as\nof the date CC0 was applied by Affirmer to the Work. Should any part of the\nLicense for any reason be judged legally invalid or ineffective under\napplicable law, such partial invalidity or ineffectiveness shall not\ninvalidate the remainder of the License, and in such case Affirmer hereby\naffirms that he or she will not (i) exercise any of his or her remaining\nCopyright and Related Rights in the Work or (ii) assert any associated claims\nand causes of action with respect to the Work, in either case contrary to\nAffirmer's express Statement of Purpose.\n\n4. Limitations and Disclaimers.\n\n a. No trademark or patent rights held by Affirmer are waived, abandoned,\n surrendered, licensed or otherwise affected by this document.\n\n b. Affirmer offers the Work as-is and makes no representations or warranties\n of any kind concerning the Work, express, implied, statutory or otherwise,\n including without limitation warranties of title, merchantability, fitness\n for a particular purpose, non infringement, or the absence of latent or\n other defects, accuracy, or the present or absence of errors, whether or not\n discoverable, all to the greatest extent permissible under applicable law.\n\n c. Affirmer disclaims responsibility for clearing rights of other persons\n that may apply to the Work or any use thereof, including without limitation\n any person's Copyright and Related Rights in the Work. Further, Affirmer\n disclaims responsibility for obtaining any necessary consents, permissions\n or other rights required for any use of the Work.\n\n d. Affirmer understands and acknowledges that Creative Commons is not a\n party to this document and has no duty or obligation with respect to this\n CC0 or use of the Work.\n\nFor more information, please see\n\n\n```\n",
+ "63f4e6f75caebbccb95d903fb43e46ac7111b3624d0a34f146b276d7d9e7b152": "## Mesa 3-D Graphics Library v21.0.3\n\n### Mesa License\n\n```\nCopyright (C) 1999-2007 Brian Paul All Rights Reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nAttention, Contributors\n\nWhen contributing to the Mesa project you must agree to the licensing terms\nof the component to which you're contributing.\nThe following section lists the primary components of the Mesa distribution\nand their respective licenses.\nMesa Component Licenses\n\n\n\nComponent Location License\n------------------------------------------------------------------\nMain Mesa code src/mesa/ MIT\nDevice drivers src/mesa/drivers/* MIT, generally\n\nGallium code src/gallium/ MIT\n\nExt headers GL/glext.h Khronos\n GL/glxext.h Khronos\n GL/wglext.h Khronos\n KHR/khrplatform.h Khronos\n\n*****************************************************************************\n\n----\ninclude/GL/gl.h :\n\n\n Mesa 3-D graphics library\n\n Copyright (C) 1999-2006 Brian Paul All Rights Reserved.\n Copyright (C) 2009 VMware, Inc. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a\n copy of this software and associated documentation files (the \"Software\"),\n to deal in the Software without restriction, including without limitation\n the rights to use, copy, modify, merge, publish, distribute, sublicense,\n and/or sell copies of the Software, and to permit persons to whom the\n Software is furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included\n in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR\n OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\n ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n OTHER DEALINGS IN THE SOFTWARE.\n\n *****************************************************************************\n\n----\ninclude/GL/glext.h\ninclude/GL/glxext.h\ninclude/GL/wglxext.h :\n\n\n Copyright (c) 2013 - 2018 The Khronos Group Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a\n copy of this software and/or associated documentation files (the\n \"Materials\"), to deal in the Materials without restriction, including\n without limitation the rights to use, copy, modify, merge, publish,\n distribute, sublicense, and/or sell copies of the Materials, and to\n permit persons to whom the Materials are furnished to do so, subject to\n the following conditions:\n\n The above copyright notice and this permission notice shall be included\n in all copies or substantial portions of the Materials.\n\n THE MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.\n\n *****************************************************************************\n\n----\ninclude/KHR/khrplatform.h :\n\n Copyright (c) 2008 - 2018 The Khronos Group Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a\n copy of this software and/or associated documentation files (the\n \"Materials\"), to deal in the Materials without restriction, including\n without limitation the rights to use, copy, modify, merge, publish,\n distribute, sublicense, and/or sell copies of the Materials, and to\n permit persons to whom the Materials are furnished to do so, subject to\n the following conditions:\n\n The above copyright notice and this permission notice shall be included\n in all copies or substantial portions of the Materials.\n\n THE MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\n IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\n CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\n TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\n MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.\n\n *****************************************************************************\n\n```\n",
+ "6686e8877667584a3a7c07344baadca1a03e29f677162d87c3c0811e990d1148": "## DOM Level 3 Core Specification v1.0\n\n### W3C Software Notice\n\nCopyright © 2004 World Wide Web Consortium, (Massachusetts Institute of Technology,\nEuropean Research Consortium for Informatics and Mathematics, Keio University).\nAll Rights Reserved.\n\nThe DOM bindings are published under the W3C Software Copyright Notice and License.\nThe software license requires \"Notice of any changes or modifications to the W3C\nfiles, including the date changes were made.\" Consequently, modified versions of\nthe DOM bindings must document that they do not conform to the W3C standard; in the\ncase of the IDL definitions, the pragma prefix can no longer be 'w3c.org'; in the\ncase of the Java language binding, the package names can no longer be in the\n'org.w3c' package.\n
\n\n### W3C License\n\n\nW3C SOFTWARE NOTICE AND LICENSE\n\nhttp://www.w3.org/Consortium/Legal/2002/copyright-software-20021231\n\nThis work (and included software, documentation such as READMEs, or other\nrelated items) is being provided by the copyright holders under the following\nlicense. By obtaining, using and/or copying this work, you (the licensee)\nagree that you have read, understood, and will comply with the following terms\nand conditions.\n\nPermission to copy, modify, and distribute this software and its\ndocumentation, with or without modification, for any purpose and without fee\nor royalty is hereby granted, provided that you include the following on ALL\ncopies of the software and documentation or portions thereof, including\nmodifications:\n\n 1.The full text of this NOTICE in a location viewable to users of the\n redistributed or derivative work.\n\n 2.Any pre-existing intellectual property disclaimers, notices, or terms and\n conditions. If none exist, the W3C Software Short Notice should be included\n (hypertext is preferred, text is permitted) within the body of any\n redistributed or derivative code.\n\n 3.Notice of any changes or modifications to the files, including the date\n changes were made. (We recommend you provide URIs to the location from\n which the code is derived.)\n\nTHIS SOFTWARE AND DOCUMENTATION IS PROVIDED \"AS IS,\" AND COPYRIGHT HOLDERS\nMAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR\nPURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY\nTHIRD PARTY PATENTS,COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.\n\nCOPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL\nOR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR\nDOCUMENTATION. The name and trademarks of copyright holders may NOT be used\nin advertising or publicity pertaining to the software without specific,\nwritten prior permission. Title to copyright in this software and any\nassociated documentation will at all times remain with copyright holders.\n\n____________________________________\n\nThis formulation of W3C's notice and license became active on December 31\n2002. This version removes the copyright ownership notice such that this\nlicense can be used with materials other than those owned by the W3C, reflects\nthat ERCIM is now a host of the W3C, includes references to this specific\ndated version of the license, and removes the ambiguous grant of \"use\".\nOtherwise, this version is the same as the previous version and is written so\nas to preserve the Free Software Foundation's assessment of GPL compatibility\nand OSI's certification under the Open Source Definition. Please see our\nCopyright FAQ for common questions about using materials from our site,\nincluding specific terms and conditions for packages like libwww, Amaya, and\nJigsaw. Other questions about this notice can be directed to\nsite-policy@w3.org.\n\n
\n",
+ "683be15695bd248272d60f5b7fbe5e126a935ea6bf231a624a9aa164733e1d1d": "## ASM Bytecode Manipulation Framework v9.3\n\n### ASM License\n\n\nCopyright (c) 2000-2011 France Télécom\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holders nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\nARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\nLIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\nCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\nSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\nCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\nARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF\nTHE POSSIBILITY OF SUCH DAMAGE.\n\n
\n",
+ "6cd971730d3047ea57f6865b7bdca2509a9876ae24d5c0ed0c4e32def5f9107e": "## GIFLIB v5.2.2\n\n### GIFLIB License\n```\n\nThe GIFLIB distribution is Copyright (c) 1997 Eric S. Raymond\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\ntree/README\n\n== Authors ==\n\nGershon Elber \noriginal giflib code\n\nToshio Kuratomi \nuncompressed gif writing code\nformer maintainer\n\nEric Raymond \ncurrent as well as long time former maintainer of giflib code\n\nThere have been many other contributors; see the attributions in the\nversion-control history to learn more.\n\n\ntree/openbsd-reallocarray.c\n\nCopyright (C) 2008 Otto Moerbeek \nSPDX-License-Identifier: MIT\n\n```\n",
+ "6f72f10d166b2c2e8a395e03e734c5afc852b59aeca73ced124f6b9c96268d53": "## The Unicode Standard, Unicode Character Database, Version 15.0.0\n\n### Unicode Character Database\n```\n\nUNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE\n\nSee Terms of Use for definitions of Unicode Inc.'s\nData Files and Software.\n\nNOTICE TO USER: Carefully read the following legal agreement.\nBY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S\nDATA FILES (\"DATA FILES\"), AND/OR SOFTWARE (\"SOFTWARE\"),\nYOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE\nTERMS AND CONDITIONS OF THIS AGREEMENT.\nIF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE\nTHE DATA FILES OR SOFTWARE.\n\nCOPYRIGHT AND PERMISSION NOTICE\n\nCopyright © 1991-2022 Unicode, Inc. All rights reserved.\nDistributed under the Terms of Use in https://www.unicode.org/copyright.html.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Unicode data files and any associated documentation\n(the \"Data Files\") or Unicode software and any associated documentation\n(the \"Software\") to deal in the Data Files or Software\nwithout restriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, and/or sell copies of\nthe Data Files or Software, and to permit persons to whom the Data Files\nor Software are furnished to do so, provided that either\n(a) this copyright and permission notice appear with all copies\nof the Data Files or Software, or\n(b) this copyright and permission notice appear in associated\nDocumentation.\n\nTHE DATA FILES AND SOFTWARE ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\nWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT OF THIRD PARTY RIGHTS.\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS\nNOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL\nDAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,\nDATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\nTORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THE DATA FILES OR SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder\nshall not be used in advertising or otherwise to promote the sale,\nuse or other dealings in these Data Files or Software without prior\nwritten authorization of the copyright holder.\n\n=== http://www.unicode.org/copyright.html content ===\nUnicode (R) Copyright and Terms of Use\nFor the general privacy policy governing access to this site, see the Unicode Privacy Policy.\n\nUnicode Copyright\nCopyright (C) 1991-2022 Unicode, Inc. All rights reserved.\nDefinitions\nUnicode Data Files (\"DATA FILES\") include all data files under the directories:\nhttps://www.unicode.org/Public/\nhttps://www.unicode.org/reports/\nhttps://www.unicode.org/ivd/data/\n\nUnicode Data Files do not include PDF online code charts under the directory:\nhttps://www.unicode.org/Public/\n\nUnicode Software (\"SOFTWARE\") includes any source code published in the Unicode Standard\nor any source code or compiled code under the directories:\nhttps://www.unicode.org/Public/PROGRAMS/\nhttps://www.unicode.org/Public/cldr/\nhttp://site.icu-project.org/download/\nTerms of Use\nCertain documents and files on this website contain a legend indicating that \"Modification is permitted.\" Any person is hereby authorized, without fee, to modify such documents and files to create derivative works conforming to the Unicode® Standard, subject to Terms and Conditions herein.\nAny person is hereby authorized, without fee, to view, use, reproduce, and distribute all documents and files, subject to the Terms and Conditions herein.\nFurther specifications of rights and restrictions pertaining to the use of the Unicode DATA FILES and SOFTWARE can be found in the Unicode Data Files and Software License.\nEach version of the Unicode Standard has further specifications of rights and restrictions of use. For the book editions (Unicode 5.0 and earlier), these are found on the back of the title page.\nThe Unicode PDF online code charts carry specific restrictions. Those restrictions are incorporated as the first page of each PDF code chart.\nAll other files, including online documentation of the core specification for Unicode 6.0 and later, are covered under these general Terms of Use.\nNo license is granted to \"mirror\" the Unicode website where a fee is charged for access to the \"mirror\" site.\nModification is not permitted with respect to this document. All copies of this document must be verbatim.\nRestricted Rights Legend\nAny technical data or software which is licensed to the United States of America, its agencies and/or instrumentalities under this Agreement is commercial technical data or commercial computer software developed exclusively at private expense as defined in FAR 2.101, or DFARS 252.227-7014 (June 1995), as applicable. For technical data, use, duplication, or disclosure by the Government is subject to restrictions as set forth in DFARS 202.227-7015 Technical Data, Commercial and Items (Nov 1995) and this Agreement. For Software, in accordance with FAR 12-212 or DFARS 227-7202, as applicable, use, duplication or disclosure by the Government is subject to the restrictions set forth in this Agreement.\nWarranties and Disclaimers\nThis publication and/or website may include technical or typographical errors or other inaccuracies. Changes are periodically added to the information herein; these changes will be incorporated in new editions of the publication and/or website. Unicode, Inc. may make improvements and/or changes in the product(s) and/or program(s) described in this publication and/or website at any time.\nIf this file has been purchased on magnetic or optical media from Unicode, Inc. the sole and exclusive remedy for any claim will be exchange of the defective media within ninety (90) days of original purchase.\nEXCEPT AS PROVIDED IN SECTION E.2, THIS PUBLICATION AND/OR SOFTWARE IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. UNICODE, INC. AND ITS LICENSORS ASSUME NO RESPONSIBILITY FOR ERRORS OR OMISSIONS IN THIS PUBLICATION AND/OR SOFTWARE OR OTHER DOCUMENTS WHICH ARE REFERENCED BY OR LINKED TO THIS PUBLICATION OR THE UNICODE WEBSITE.\nWaiver of Damages\nIn no event shall Unicode, Inc. or its licensors be liable for any special, incidental, indirect or consequential damages of any kind, or any damages whatsoever, whether or not Unicode, Inc. was advised of the possibility of the damage, including, without limitation, those resulting from the following: loss of use, data or profits, in connection with the use, modification or distribution of this information or its derivatives.\nTrademarks & Logos\nThe Unicode Word Mark and the Unicode Logo are trademarks of Unicode, Inc. “The Unicode Consortium” and “Unicode, Inc.” are trade names of Unicode, Inc. Use of the information and materials found on this website indicates your acknowledgement of Unicode, Inc.’s exclusive worldwide rights in the Unicode Word Mark, the Unicode Logo, and the Unicode trade names.\nThe Unicode Consortium Name and Trademark Usage Policy (“Trademark Policy”) are incorporated herein by reference and you agree to abide by the provisions of the Trademark Policy, which may be changed from time to time in the sole discretion of Unicode, Inc.\nAll third party trademarks referenced herein are the property of their respective owners.\nMiscellaneous\nJurisdiction and Venue. This website is operated from a location in the State of California, United States of America. Unicode, Inc. makes no representation that the materials are appropriate for use in other locations. If you access this website from other locations, you are responsible for compliance with local laws. This Agreement, all use of this website and any claims and damages resulting from use of this website are governed solely by the laws of the State of California without regard to any principles which would apply the laws of a different jurisdiction. The user agrees that any disputes regarding this website shall be resolved solely in the courts located in Santa Clara County, California. The user agrees said courts have personal jurisdiction and agree to waive any right to transfer the dispute to any other forum.\nModification by Unicode, Inc. Unicode, Inc. shall have the right to modify this Agreement at any time by posting it to this website. The user may not assign any part of this Agreement without Unicode, Inc.’s prior written consent.\nTaxes. The user agrees to pay any taxes arising from access to this website or use of the information herein, except for those based on Unicode’s net income.\nSeverability. If any provision of this Agreement is declared invalid or unenforceable, the remaining provisions of this Agreement shall remain in effect.\nEntire Agreement. This Agreement constitutes the entire agreement between the parties.\n\n\n```\n\n",
+ "721d7c5a24bd0c0a59fe5ee1fde1c17541a745c038e3883d4b184a21779f4e48": "## Harfbuzz v8.2.2\n\n### Harfbuzz License\n\n\n\nHarfBuzz is licensed under the so-called \"Old MIT\" license. Details follow.\nFor parts of HarfBuzz that are licensed under different licenses see individual\nfiles names COPYING in subdirectories where applicable.\n\nCopyright © 2010-2023 Google, Inc.\nCopyright © 2018-2020 Ebrahim Byagowi\nCopyright © 2004-2013 Red Hat, Inc.\nCopyright © 2019 Facebook, Inc.\nCopyright (C) 2012 Zilong Tan (eric.zltan@gmail.com)\nCopyright © 2007 Chris Wilson\nCopyright © 2018-2019 Adobe Inc.\nCopyright © 2006-2023 Behdad Esfahbod\nCopyright © 1998-2004 David Turner and Werner Lemberg\nCopyright © 2009 Keith Stribley\nCopyright © 2018 Khaled Hosny\nCopyright © 2016 Elie Roux \nCopyright © 2016 Igalia S.L.\nCopyright © 2015 Mozilla Foundation.\nCopyright © 1999 David Turner\nCopyright © 2005 Werner Lemberg\nCopyright © 2013-2015 Alexei Podtelezhnikov\nCopyright © 2022 Matthias Clasen\nCopyright © 2011 Codethink Limited\n\nFor full copyright notices consult the individual files in the package.\n\n\nPermission is hereby granted, without written agreement and without\nlicense or royalty fees, to use, copy, modify, and distribute this\nsoftware and its documentation for any purpose, provided that the\nabove copyright notice and the following two paragraphs appear in\nall copies of this software.\n\nIN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR\nDIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES\nARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN\nIF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH\nDAMAGE.\n\nTHE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,\nBUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS\nON AN \"AS IS\" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO\nPROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.\n\nAll source code, except for one section, is licensed as above. The one\nexception is licensed with a slightly different MIT variant:\nThe contents of this directory are licensed under the following terms:\n\n---------------------------------\nThe below license applies to the following files:\nlibharfbuzz/hb-ucd.cc\n\nCopyright (C) 2012 Grigori Goronzy \n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n\n---------------------------------\nThe below license applies to the following files:\nlibharfbuzz/hb-unicode-emoji-table.hh\n\n© 2023 Unicode®, Inc.\nUnicode and the Unicode Logo are registered trademarks of Unicode, Inc.\nin the U.S. and other countries.\nFor terms of use, see https://www.unicode.org/terms_of_use.html\n\n
\n\n### AUTHORS File Information\n```\n\nBehdad Esfahbod\nDavid Corbett\nDavid Turner\nEbrahim Byagowi\nGarret Rieger\nJonathan Kew\nKhaled Hosny\nLars Knoll\nMartin Hosken\nOwen Taylor\nRoderick Sheeter\nRoozbeh Pournader\nSimon Hausmann\nWerner Lemberg\n\n```\n",
+ "75292f03bf23d3db7c985aecc191029b93883200721ed23ed34a2e601463df33": "\nOPENJDK ASSEMBLY EXCEPTION\n\nThe OpenJDK source code made available by Oracle America, Inc. (Oracle) at\nopenjdk.org (\"OpenJDK Code\") is distributed under the terms of the GNU\nGeneral Public License version 2\nonly (\"GPL2\"), with the following clarification and special exception.\n\n Linking this OpenJDK Code statically or dynamically with other code\n is making a combined work based on this library. Thus, the terms\n and conditions of GPL2 cover the whole combination.\n\n As a special exception, Oracle gives you permission to link this\n OpenJDK Code with certain code licensed by Oracle as indicated at\n https://openjdk.org/legal/exception-modules-2007-05-08.html\n (\"Designated Exception Modules\") to produce an executable,\n regardless of the license terms of the Designated Exception Modules,\n and to copy and distribute the resulting executable under GPL2,\n provided that the Designated Exception Modules continue to be\n governed by the licenses under which they were offered by Oracle.\n\nAs such, it allows licensees and sublicensees of Oracle's GPL2 OpenJDK Code\nto build an executable that includes those portions of necessary code that\nOracle could not provide under GPL2 (or that Oracle has provided under GPL2\nwith the Classpath exception). If you modify or add to the OpenJDK code,\nthat new GPL2 code may still be combined with Designated Exception Modules\nif the new code is made subject to this exception by its copyright holder.\n",
+ "7c0494d35e85e5f33bb1a6b061a84b7b745904764c3b7bac7d7d8b817a6ca2d6": "## PipeWire 0.3.68\n\n### PipeWire license:\n\nAll PipeWire header files are licensed under the MIT License:\n\n\n\nCopyright © 2018-2023 Wim Taymans\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice (including the next\nparagraph) shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n
\n\nThe below copyright applies to the following files:\n\nspa/include/spa/monitor/type-info.h\n```\nCopyright © 2021 Collabora Ltd.\n```\n\nspa/include/spa/utils/string.h\n```\nCopyright © 2021 Red Hat, Inc.\n```\n",
+ "83903abdebe3b3dda1a178fb3f03ac71ef31c4503b79226b66ef27f1aa9d3993": "This software includes code from IntelliJ IDEA Community Edition\nCopyright (C) JetBrains s.r.o.\nhttps://www.jetbrains.com/idea/\n",
+ "853a1e7ce397bb10de0e2b3bde0844bcc651f17d983decd07d2d003c0304c311": "## Apache Commons Byte Code Engineering Library (BCEL) Version 6.7.0\n\n### Apache Commons BCEL Notice\n\n\n Apache Commons BCEL\n Copyright 2004-2022 The Apache Software Foundation\n\n This product includes software developed at\n The Apache Software Foundation (https://www.apache.org/).\n\n
\n\n### Apache 2.0 License\n\n\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n
\n",
+ "8d5dcfdf50455a3c34c753a98f21e953248af200415a9084e3f102cb6c43b8bf": "## CUP Parser Generator for Java v 0.11b\n\n### CUP Parser Generator License\n\n```\nCopyright 1996-2015 by Scott Hudson, Frank Flannery, C. Scott Ananian, Michael Petter\n\nPermission to use, copy, modify, and distribute this software and its\ndocumentation for any purpose and without fee is hereby granted, provided\nthat the above copyright notice appear in all copies and that both\nthe copyright notice and this permission notice and warranty disclaimer\nappear in supporting documentation, and that the names of the authors or\ntheir employers not be used in advertising or publicity pertaining to\ndistribution of the software without specific, written prior permission.\n\nThe authors and their employers disclaim all warranties with regard to\nthis software, including all implied warranties of merchantability and\nfitness. In no event shall the authors or their employers be liable for\nany special, indirect or consequential damages or any damages whatsoever\nresulting from loss of use, data or profits, whether in an action of\ncontract, negligence or other tortious action, arising out of or in\nconnection with the use or performance of this software.\n```\n---\n```\nThis is an open source license. It is also GPL-Compatible (see entry for\n\"Standard ML of New Jersey\"). The portions of CUP output which are hard-coded\ninto the CUP source code are (naturally) covered by this same license, as is\nthe CUP runtime code linked with the generated parser.\n```\n\n",
+ "99bc67f93cf57d6d20e6047731c93fbb267d70fbdd4115d119e0f85c6efe5c05": "## jopt-simple v5.0.4\n\n### MIT License\n\n\nCopyright (c) 2004-2015 Paul R. Holser, Jr.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\nTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n
\n",
+ "a69bce275ba7a3570af6579cb0f55682cd75fedfcd49e0e8e9022270c447c916": " ADDITIONAL INFORMATION ABOUT LICENSING\n\nCertain files distributed by Oracle America, Inc. and/or its affiliates are \nsubject to the following clarification and special exception to the GPLv2, \nbased on the GNU Project exception for its Classpath libraries, known as the \nGNU Classpath Exception.\n\nNote that Oracle includes multiple, independent programs in this software \npackage. Some of those programs are provided under licenses deemed \nincompatible with the GPLv2 by the Free Software Foundation and others. \nFor example, the package includes programs licensed under the Apache \nLicense, Version 2.0 and may include FreeType. Such programs are licensed \nto you under their original licenses. \n\nOracle facilitates your further distribution of this package by adding the \nClasspath Exception to the necessary parts of its GPLv2 code, which permits \nyou to use that code in combination with other independent modules not \nlicensed under the GPLv2. However, note that this would not permit you to \ncommingle code under an incompatible license with Oracle's GPLv2 licensed \ncode by, for example, cutting and pasting such code into a file also \ncontaining Oracle's GPLv2 licensed code and then distributing the result. \n\nAdditionally, if you were to remove the Classpath Exception from any of the \nfiles to which it applies and distribute the result, you would likely be \nrequired to license some or all of the other code in that distribution under \nthe GPLv2 as well, and since the GPLv2 is incompatible with the license terms \nof some items included in the distribution by Oracle, removing the Classpath \nException could therefore effectively compromise your ability to further \ndistribute the package. \n\nFailing to distribute notices associated with some files may also create \nunexpected legal consequences.\n \nProceed with caution and we recommend that you obtain the advice of a lawyer \nskilled in open source matters before removing the Classpath Exception or \nmaking modifications to this package which may subsequently be redistributed \nand/or involve the use of third party software.\n",
+ "aeb64d60a80564e8118799fb00b94d6686c1fe04da2f7399f970f968d32bcf84": "## JLine v3.26.1\n\n### JLine License\n\n\nCopyright (c) 2002-2023, the original author or authors.\nAll rights reserved.\n\nhttps://opensource.org/licenses/BSD-3-Clause\n\nRedistribution and use in source and binary forms, with or\nwithout modification, are permitted provided that the following\nconditions are met:\n\nRedistributions of source code must retain the above copyright\nnotice, this list of conditions and the following disclaimer.\n\nRedistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer\nin the documentation and/or other materials provided with\nthe distribution.\n\nNeither the name of JLine nor the names of its contributors\nmay be used to endorse or promote products derived from this\nsoftware without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,\nBUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO\nEVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,\nOR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED\nAND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\nLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING\nIN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\nOF THE POSSIBILITY OF SUCH DAMAGE.\n\n
\n",
+ "b2e5fd3f9f112371832475cee984862685e2ed920b63f1559db83dba9456eb1c": "\n\n\n \n\n\n\n \n \n
Third Party Licenses
\n
This page lists the licenses of the projects used in xplat-launcher.
\n
\n \n Overview of licenses:
\n \n\n All license text:
\n \n - \n
Apache License 2.0
\n Used by:
\n \n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n "License" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n "Licensor" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n "Legal Entity" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n "control" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n "You" (or "Your") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n "Source" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n "Object" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n "Work" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n "Derivative Works" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n "Contribution" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, "submitted"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as "Not a Contribution."\n\n "Contributor" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a "NOTICE" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets "[]"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same "printed page" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright (c) Microsoft Corporation.\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n
\n \n - \n
Apache License 2.0
\n Used by:
\n \n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n "License" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n "Licensor" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n "Legal Entity" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n "control" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n "You" (or "Your") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n "Source" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n "Object" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n "Work" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n "Derivative Works" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n "Contribution" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, "submitted"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as "Not a Contribution."\n\n "Contributor" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a "NOTICE" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets "{}"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same "printed page" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n \n - \n
Apache License 2.0
\n Used by:
\n \n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n "License" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n "Licensor" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n "Legal Entity" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n "control" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n "You" (or "Your") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n "Source" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n "Object" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n "Work" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n "Derivative Works" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n "Contribution" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, "submitted"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as "Not a Contribution."\n\n "Contributor" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a "NOTICE" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets "{}"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same "printed page" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright {yyyy} {name of copyright owner}\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\n \n - \n
Apache License 2.0
\n Used by:
\n \n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n "License" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n "Licensor" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n "Legal Entity" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n "control" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n "You" (or "Your") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n "Source" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n "Object" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n "Work" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n "Derivative Works" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n "Contribution" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, "submitted"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as "Not a Contribution."\n\n "Contributor" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a "NOTICE" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets "[]"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same "printed page" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n
\n \n - \n
Apache License 2.0
\n Used by:
\n \n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n "License" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n "Licensor" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n "Legal Entity" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n "control" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n "You" (or "Your") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n "Source" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n "Object" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n "Work" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n "Derivative Works" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n "Contribution" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, "submitted"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as "Not a Contribution."\n\n "Contributor" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a "NOTICE" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets "[]"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same "printed page" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n
\n \n - \n
Apache License 2.0
\n Used by:
\n \n Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/LICENSE-2.0\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n "License" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n "Licensor" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n "Legal Entity" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n "control" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n "You" (or "Your") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n "Source" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n "Object" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n "Work" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n "Derivative Works" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n "Contribution" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, "submitted"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as "Not a Contribution."\n\n "Contributor" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a "NOTICE" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets "[]"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same "printed page" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\thttps://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n
\n \n - \n
Apache License 2.0
\n Used by:
\n \n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n "License" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n "Licensor" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n "Legal Entity" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n "control" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n "You" (or "Your") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n "Source" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n "Object" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n "Work" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n "Derivative Works" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n "Contribution" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, "submitted"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as "Not a Contribution."\n\n "Contributor" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a "NOTICE" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets "{}"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same "printed page" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the "License");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n \n - \n
Apache License 2.0
\n Used by:
\n \n Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."\n\n"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n\n (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n
\n \n - \n
ISC License
\n Used by:
\n \n Copyright © 2015, Simonas Kazlauskas\n\nPermission to use, copy, modify, and/or distribute this software for any purpose with or without\nfee is hereby granted, provided that the above copyright notice and this permission notice appear\nin all copies.\n\nTHE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS\nSOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE\nAUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,\nNEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\nTHIS SOFTWARE.\n
\n \n - \n
MIT License
\n Used by:
\n \n Copyright (c) 2014-2019 Geoffroy Couprie\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n"Software"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n
\n \n - \n
MIT License
\n Used by:
\n \n Copyright (c) 2015 fangyuanziti\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n
\n \n - \n
MIT License
\n Used by:
\n \n Copyright (c) 2018 Carl Lerche\n\nPermission is hereby granted, free of charge, to any\nperson obtaining a copy of this software and associated\ndocumentation files (the "Software"), to deal in the\nSoftware without restriction, including without\nlimitation the rights to use, copy, modify, merge,\npublish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice\nshall be included in all copies or substantial portions\nof the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF\nANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED\nTO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\nSHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n
\n \n - \n
MIT License
\n Used by:
\n \n Copyright (c) 2019 Ben Wallis\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of\r\nthis software and associated documentation files (the "Software"), to deal in\r\nthe Software without restriction, including without limitation the rights to use,\r\ncopy, modify, merge, publish, distribute, sublicense, and/or sell copies of the\r\nSoftware, and to permit persons to whom the Software is furnished to do so,\r\nsubject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\r\nINCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\r\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\r\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF\r\nCONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE\r\nOR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\n \n - \n
MIT License
\n Used by:
\n \n MIT License\n\nCopyright (c) 2020 Balthild\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n
\n \n - \n
MIT License
\n Used by:
\n \n MIT License\n\nCopyright (c) 2021 Colin Woodbury\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n
\n \n - \n
MIT License
\n Used by:
\n \n MIT License\n\nCopyright (c) <year> <copyright holders>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n
\n \n - \n
MIT License
\n Used by:
\n \n MIT License\n\nCopyright (c) Steven Sheldon\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n
\n \n - \n
MIT License
\n Used by:
\n \n The MIT License (MIT)\n\nCopyright (c) 2015 Andrew Gallant\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n
\n \n - \n
MIT License
\n Used by:
\n \n The MIT License (MIT)\n\nCopyright (c) 2015 Markus Westerlind\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n
\n \n - \n
Unicode License Agreement - Data Files and Software (2016)
\n Used by:
\n \n UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE\n\nUnicode Data Files include all data files under the directories http://www.unicode.org/Public/, http://www.unicode.org/reports/, http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/, and http://www.unicode.org/utility/trac/browser/.\n\nUnicode Data Files do not include PDF online code charts under the directory http://www.unicode.org/Public/.\n\nSoftware includes any source code published in the Unicode Standard or under the directories http://www.unicode.org/Public/, http://www.unicode.org/reports/, http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/, and http://www.unicode.org/utility/trac/browser/.\n\nNOTICE TO USER: Carefully read the following legal agreement. BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S DATA FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"), YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.\n\nCOPYRIGHT AND PERMISSION NOTICE\n\nCopyright © 1991-2016 Unicode, Inc. All rights reserved. Distributed under the Terms of Use in http://www.unicode.org/copyright.html.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of the Unicode data files and any associated documentation (the "Data Files") or Unicode software and any associated documentation (the "Software") to deal in the Data Files or Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Data Files or Software, and to permit persons to whom the Data Files or Software are furnished to do so, provided that either\n\n (a) this copyright and permission notice appear with all copies of the Data Files or Software, or\n (b) this copyright and permission notice appear in associated Documentation.\n\nTHE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR SOFTWARE.\n\nExcept as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in these Data Files or Software without prior written authorization of the copyright holder.\n\n \n
\n \n\n\n\n",
+ "b39ce363c281ed36e937f9e6c03311d7dbf0b20d3614dde084130c2a10909692": "## PC/SC Lite v1.9.9\n\n### PC/SC Lite Notice\n```\nMUSCLE SmartCard Development ( https://pcsclite.apdu.fr/ )\n\nOnly 3 header files are included in this distribution: winscard.h, wintypes.h, pcsclite.h\n\nCopyright for winscard.h:\n * Copyright (C) 1999-2003\n * David Corcoran \n * Copyright (C) 2002-2009\n * Ludovic Rousseau \n\nCopyright for wintypes.h:\n * Copyright (C) 1999\n * David Corcoran \n * Copyright (C) 2002-2011\n * Ludovic Rousseau \n\nCopyright for pcsclite.h:\n * Copyright (C) 1999-2004\n * David Corcoran \n * Copyright (C) 2002-2011\n * Ludovic Rousseau \n * Copyright (C) 2005\n * Martin Paljak \n\n```\n\n### PC/SC Lite License\n```\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n3. The name of the author may not be used to endorse or promote products\n derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\nIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\nOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\nIN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\nINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\nNOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\nTHIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n```\n",
+ "b68f454c2bd58959c862d94bf0f16c3f78a2d537388ca060d354344db80ee695": "## jQuery v3.7.1\n\n### jQuery License\n```\njQuery v 3.7.1\nCopyright OpenJS Foundation and other contributors, https://openjsf.org/\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n",
+ "b7764b61731d4ee9567b090f34d02237afcfb0377e5d1136c7ad3ef345cc4937": "## Apache Santuario v3.0.3\n\n### Apache 2.0 License\n```\n\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n```\n\n### Apache Santuario Notice\n```\n\nApache Santuario - XML Security for Java\nCopyright 1999-2023 The Apache Software Foundation\n\nThis product includes software developed at\nThe Apache Software Foundation (http://www.apache.org/).\n\nIt was originally based on software copyright (c) 2001, Institute for\nData Communications Systems, .\n\nThe development of this software was partly funded by the European\nCommission in the project in the ISIS Programme.\n\nThis product contains software that is\ncopyright (c) 2021, Oracle and/or its affiliates.\n```\n",
+ "bb0a0e89ebd824df714516bf64b9101c62081e4b376f00f929a58c09555bf111": "## jQuery UI v1.13.2\n\n### jQuery UI License\n```\nCopyright jQuery Foundation and other contributors, https://jquery.org/\n\nThis software consists of voluntary contributions made by many\nindividuals. For exact contribution history, see the revision history\navailable at https://github.com/jquery/jquery-ui\n\nThe following license applies to all parts of this software except as\ndocumented below:\n\n====\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n====\n\nCopyright and related rights for sample code are waived via CC0. Sample\ncode is defined as all source code contained within the demos directory.\n\nCC0: http://creativecommons.org/publicdomain/zero/1.0/\n\n====\n\nAll files located in the node_modules and external directories are\nexternally maintained libraries used by this software which have their\nown licenses; we recommend you read them, as their terms may differ from\nthe terms above.\n\n```\n",
+ "bef40679922d6fdfb7e4ddb223ad6722300f6054ba737bbf6188d60fcec517f9": "## c-libutl 20160225\n\n### c-libutl License\n```\n\nThis software is distributed under the terms of the BSD license.\n\n== BSD LICENSE ===============================================================\n\n (C) 2009 by Remo Dentato (rdentato@gmail.com)\n\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nhttp://opensource.org/licenses/bsd-license.php\n\n```\n",
+ "c1dfb9719a71ad9f861f8728550542d681e25c8ef40e6393606e6e2a0c1d653a": "## Independent JPEG Group: JPEG release 6b\n\n### JPEG License\n\n```\n****************************************************************************\n\nCopyright (C) 1991-1998, Thomas G. Lane.\n\nThis software is the work of Tom Lane, Philip Gladstone, Jim Boucher,\nLee Crocker, Julian Minguillon, Luis Ortiz, George Phillips, Davide Rossi,\nGuido Vollbeding, Ge' Weijers, and other members of the Independent JPEG\nGroup.\n\nIJG is not affiliated with the official ISO JPEG standards committee.\n\nThe authors make NO WARRANTY or representation, either express or implied,\nwith respect to this software, its quality, accuracy, merchantability, or\nfitness for a particular purpose. This software is provided \"AS IS\",\nand you, its user, assume the entire risk as to its quality and accuracy.\n\nThis software is copyright (C) 1991-1998, Thomas G. Lane.\nAll Rights Reserved except as specified below.\n\nPermission is hereby granted to use, copy, modify, and distribute\nthis software (or portions thereof) for any purpose, without fee,\nsubject to these conditions:\n\n(1) If any part of the source code for this software is distributed,\nthen this README file must be included, with this copyright and no-warranty\nnotice unaltered; and any additions, deletions, or changes to the original\nfiles must be clearly indicated in accompanying documentation.\n\n(2) If only executable code is distributed, then the accompanying documentation\nmust state that \"this software is based in part on the work of the\nIndependent JPEG Group\".\n\n(3) Permission for use of this software is granted only if the user accepts\nfull responsibility for any undesirable consequences; the authors accept\nNO LIABILITY for damages of any kind.\n\nThese conditions apply to any software derived from or based on the IJG code,\nnot just to the unmodified library. If you use our work, you ought to\nacknowledge us.\n\nPermission is NOT granted for the use of any IJG author's name or company name\nin advertising or publicity relating to this software or products derived\nfrom it. This software may be referred to only as \"the Independent JPEG\nGroup's software\".\n\nWe specifically permit and encourage the use of this software as the basis\nof commercial products, provided that all warranty or liability claims are\nassumed by the product vendor.\n\nIt appears that the arithmetic coding option of the JPEG spec is covered\nby patents owned by IBM, AT&T, and Mitsubishi. Hence arithmetic coding\ncannot legally be used without obtaining one or more licenses. For this\nreason, support for arithmetic coding has been removed from the free\nJPEG software. (Since arithmetic coding provides only a marginal gain\nover the unpatented Huffman mode, it is unlikely that very many\nimplementations will support it.) So far as we are aware, there are\nno patent restrictions on the remaining code.\n\nThe IJG distribution formerly included code to read and write GIF files.\nTo avoid entanglement with the Unisys LZW patent, GIF reading support\nhas been removed altogether, and the GIF writer has been simplified to\nproduce \"uncompressed GIFs\". This technique does not use the LZW algorithm;\nthe resulting GIF files are larger than usual, but are readable by all\nstandard GIF decoders.\n\nWe are required to state that \"The Graphics Interchange Format(c) is\nthe Copyright property of CompuServe Incorporated. GIF(sm) is a\nService Mark property of CompuServe Incorporated.\"\n\n****************************************************************************\n```\n\n",
+ "c27eb875da4be683d4d7422be986e5e30f636ede31958ff1d39f9cd6109e7a00": "## Apache Xalan v2.7.2\n\n### Apache Xalan Notice\n\n\n ======================================================================================\n == NOTICE file corresponding to the section 4d of the Apache License, Version 2.0, ==\n == in this case for the Apache Xalan distribution. ==\n ======================================================================================\n\n This product includes software developed by\n The Apache Software Foundation (http://www.apache.org/).\n\n Specifically, we only include the XSLTC portion of the source from the Xalan distribution.\n The Xalan project has two processors: an interpretive one (Xalan Interpretive) and a\n compiled one (The XSLT Compiler (XSLTC)). We *only* use the XSLTC part of Xalan; We use\n the source from the packages that are part of the XSLTC sources.\n\n Portions of this software was originally based on the following:\n\n - software copyright (c) 1999-2002, Lotus Development Corporation., http://www.lotus.com.\n - software copyright (c) 2001-2002, Sun Microsystems., http://www.sun.com.\n - software copyright (c) 2003, IBM Corporation., http://www.ibm.com.\n - voluntary contributions made by Ovidiu Predescu (ovidiu@cup.hp.com) on behalf of the\n Apache Software Foundation and was originally developed at Hewlett Packard Company.\n\n
\n\n### Apache 2.0 License\n\n\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n\nJLEX COPYRIGHT NOTICE, LICENSE AND DISCLAIMER.\nCopyright 1996-2003 by Elliot Joel Berk and C. Scott Ananian\nPermission to use, copy, modify, and distribute this software and\nits documentation for any purpose and without fee is hereby granted,\nprovided that the above copyright notice appear in all copies and that\nboth the copyright notice and this permission notice and warranty\ndisclaimer appear in supporting documentation, and that the name of\nthe authors or their employers not be used in advertising or publicity\npertaining to distribution of the software without specific, written\nprior permission.\nThe authors and their employers disclaim all warranties with regard to\nthis software, including all implied warranties of merchantability and\nfitness. In no event shall the authors or their employers be liable for\nany special, indirect or consequential damages or any damages whatsoever\nresulting from loss of use, data or profits, whether in an action of\ncontract, negligence or other tortious action, arising out of or in\nconnection with the use or performance of this software.The portions of\nJLex output which are hard-coded into the JLex source code are (naturally)\ncovered by this same license.\n\n
\n",
+ "c326144a2351c9608fa708b5d7d3c5a3da03e82b66479b128e9db4969539824a": "## Thai Dictionary\n\n### Thai Dictionary License\n\n\nCopyright (C) 1982 The Royal Institute, Thai Royal Government.\n\nCopyright (C) 1998 National Electronics and Computer Technology Center,\nNational Science and Technology Development Agency,\nMinistry of Science Technology and Environment,\nThai Royal Government.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n
\n",
+ "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30": "\n Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n",
+ "d7818e02ebfc4e5cd82613e003e7ba6be2e9d5949ea4aa0ba88d4d2f7ca69999": "## Mozilla Public Suffix List\n\n### Public Suffix Notice\n```\nYou are receiving a copy of the Mozilla Public Suffix List in the following\nfile: /lib/security/public_suffix_list.dat. The terms of the\nOracle license do NOT apply to this file; it is licensed under the\nMozilla Public License 2.0, separately from the Oracle programs you receive.\nIf you do not wish to use the Public Suffix List, you may remove the\n/lib/security/public_suffix_list.dat file.\n\nThe Source Code of this file is available under the\nMozilla Public License, v. 2.0 and is located at\nhttps://raw.githubusercontent.com/publicsuffix/list/1cbd6e71a9b83620b1d0b11e49d3d9ff48c27e22/public_suffix_list.dat.\nIf a copy of the MPL was not distributed with this file, you can obtain one\nat https://mozilla.org/MPL/2.0/.\n\nSoftware distributed under the License is distributed on an \"AS IS\" basis,\nWITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\nfor the specific language governing rights and limitations under the License.\n```\n\n### MPL v2.0\n```\nMozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n means each individual or legal entity that creates, contributes to\n the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n means the combination of the Contributions of others (if any) used\n by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n means Source Code Form to which the initial Contributor has attached\n the notice in Exhibit A, the Executable Form of such Source Code\n Form, and Modifications of such Source Code Form, in each case\n including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n means\n\n (a) that the initial Contributor has attached the notice described\n in Exhibit B to the Covered Software; or\n\n (b) that the Covered Software was made available under the terms of\n version 1.1 or earlier of the License, but not also under the\n terms of a Secondary License.\n\n1.6. \"Executable Form\"\n means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n means a work that combines Covered Software with other material, in\n a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n means this document.\n\n1.9. \"Licensable\"\n means having the right to grant, to the maximum extent possible,\n whether at the time of the initial grant or subsequently, any and\n all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n means any of the following:\n\n (a) any file in Source Code Form that results from an addition to,\n deletion from, or modification of the contents of Covered\n Software; or\n\n (b) any new file in Source Code Form that contains any Covered\n Software.\n\n1.11. \"Patent Claims\" of a Contributor\n means any patent claim(s), including without limitation, method,\n process, and apparatus claims, in any patent Licensable by such\n Contributor that would be infringed, but for the grant of the\n License, by the making, using, selling, offering for sale, having\n made, import, or transfer of either its Contributions or its\n Contributor Version.\n\n1.12. \"Secondary License\"\n means either the GNU General Public License, Version 2.0, the GNU\n Lesser General Public License, Version 2.1, the GNU Affero General\n Public License, Version 3.0, or any later versions of those\n licenses.\n\n1.13. \"Source Code Form\"\n means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n means an individual or a legal entity exercising rights under this\n License. For legal entities, \"You\" includes any entity that\n controls, is controlled by, or is under common control with You. For\n purposes of this definition, \"control\" means (a) the power, direct\n or indirect, to cause the direction or management of such entity,\n whether by contract or otherwise, or (b) ownership of more than\n fifty percent (50%) of the outstanding shares or beneficial\n ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n Licensable by such Contributor to use, reproduce, make available,\n modify, display, perform, distribute, and otherwise exploit its\n Contributions, either on an unmodified basis, with Modifications, or\n as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n for sale, have made, import, and otherwise transfer either its\n Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n or\n\n(b) for infringements caused by: (i) Your and any other third party's\n modifications of Covered Software, or (ii) the combination of its\n Contributions with other software (except as part of its Contributor\n Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n Form, as described in Section 3.1, and You must inform recipients of\n the Executable Form how they can obtain a copy of such Source Code\n Form by reasonable means in a timely manner, at a charge no more\n than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n License, or sublicense it under different terms, provided that the\n license for the Executable Form does not attempt to limit or alter\n the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n* *\n* 6. Disclaimer of Warranty *\n* ------------------------- *\n* *\n* Covered Software is provided under this License on an \"as is\" *\n* basis, without warranty of any kind, either expressed, implied, or *\n* statutory, including, without limitation, warranties that the *\n* Covered Software is free of defects, merchantable, fit for a *\n* particular purpose or non-infringing. The entire risk as to the *\n* quality and performance of the Covered Software is with You. *\n* Should any Covered Software prove defective in any respect, You *\n* (not any Contributor) assume the cost of any necessary servicing, *\n* repair, or correction. This disclaimer of warranty constitutes an *\n* essential part of this License. No use of any Covered Software is *\n* authorized under this License except under this disclaimer. *\n* *\n************************************************************************\n\n************************************************************************\n* *\n* 7. Limitation of Liability *\n* -------------------------- *\n* *\n* Under no circumstances and under no legal theory, whether tort *\n* (including negligence), contract, or otherwise, shall any *\n* Contributor, or anyone who distributes Covered Software as *\n* permitted above, be liable to You for any direct, indirect, *\n* special, incidental, or consequential damages of any character *\n* including, without limitation, damages for lost profits, loss of *\n* goodwill, work stoppage, computer failure or malfunction, or any *\n* and all other commercial damages or losses, even if such party *\n* shall have been informed of the possibility of such damages. This *\n* limitation of liability shall not apply to liability for death or *\n* personal injury resulting from such party's negligence to the *\n* extent applicable law prohibits such limitation. Some *\n* jurisdictions do not allow the exclusion or limitation of *\n* incidental or consequential damages, so this exclusion and *\n* limitation may not apply to You. *\n* *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n This Source Code Form is subject to the terms of the Mozilla Public\n License, v. 2.0. If a copy of the MPL was not distributed with this\n file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n This Source Code Form is \"Incompatible With Secondary Licenses\", as\n defined by the Mozilla Public License, v. 2.0.\n\n```\n",
+ "dc14eeb2f62b841e624a81d6a54276dab3b0473bcdc91612e74d5bb0a580e935": "/*\n * Javolution - Java(tm) Solution for Real-Time and Embedded Systems\n * Copyright (c) 2012, Javolution (http://javolution.org/)\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n",
+ "e272bb516f9899d2e3ea5bea00cd39962e1bbc1d95e713a16814f89b3a91e083": "\n",
+ "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855": "",
+ "e9f5f374cb4116acbd82ec39b0a1f93ab1f5adfd8c208488ba8f97de65e86446": "## Little Color Management System (LCMS) v2.16\n\n### LCMS License\n\n\nMIT License\n\nCopyright (C) 1998-2023 Marti Maria Saguer\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without limitation\nthe rights to use, copy, modify, merge, publish, distribute, sublicense,\nand/or sell copies of the Software, and to permit persons to whom the Software\nis furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO\nTHE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n---------------------------------\nThe below license applies to the following files:\nliblcms/cmssm.c\n\nCopyright 2001, softSurfer (www.softsurfer.com)\n\nThis code may be freely used and modified for any purpose\nproviding that this copyright notice is included with it.\nSoftSurfer makes no warranty for this code, and cannot be held\nliable for any real or imagined damage resulting from its use.\nUsers of this code must verify correctness for their application.\n\n
\n\n### AUTHORS File Information\n```\n\nMain Author\n------------\nMarti Maria\n\n\nContributors\n------------\nBob Friesenhahn\nKai-Uwe Behrmann\nStuart Nixon\nJordi Vilar\nRichard Hughes\nAuke Nauta\nChris Evans (Google)\nLorenzo Ridolfi\nRobin Watts (Artifex)\nShawn Pedersen\nAndrew Brygin\nSamuli Suominen\nFlorian Hˆch\nAurelien Jarno\nClaudiu Cebuc\nMichael Vhrel (Artifex)\nMichal Cihar\nDaniel Kaneider\nMateusz Jurczyk (Google)\nPaul Miller\nSÈbastien LÈon\nChristian Schmitz\nXhmikosR\nStanislav Brabec (SuSe)\nLeonhard Gruenschloss (Google)\nPatrick Noffke\nChristopher James Halse Rogers\nJohn Hein\nThomas Weber (Debian)\nMark Allen\nNoel Carboni\nSergei Trofimovic\nPhilipp Knechtges\nAmyspark\nLovell Fuller\nEli Schwartz\nDiogo Teles Sant'Anna\n\nSpecial Thanks\n--------------\nArtifex software\nAlienSkin software\nlibVIPS\nJan Morovic\nJos Vernon (WebSupergoo)\nHarald Schneider (Maxon)\nChristian Albrecht\nDimitrios Anastassakis\nLemke Software\nTim Zaman\n\n```\n"
+ },
+ "module_name": "idea:ideaIC",
+ "module_version": "2025.2",
+ "notice_files": [
+ {
+ "path": "LICENSE.txt",
+ "sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
+ },
+ {
+ "path": "NOTICE.txt",
+ "sha256": "83903abdebe3b3dda1a178fb3f03ac71ef31c4503b79226b66ef27f1aa9d3993"
+ },
+ {
+ "path": "jbr/legal/java.base/ADDITIONAL_LICENSE_INFO",
+ "sha256": "a69bce275ba7a3570af6579cb0f55682cd75fedfcd49e0e8e9022270c447c916"
+ },
+ {
+ "path": "jbr/legal/java.base/ASSEMBLY_EXCEPTION",
+ "sha256": "75292f03bf23d3db7c985aecc191029b93883200721ed23ed34a2e601463df33"
+ },
+ {
+ "path": "jbr/legal/java.base/LICENSE",
+ "sha256": "4b9abebc4338048a7c2dc184e9f800deb349366bdf28eb23c2677a77b4c87726"
+ },
+ {
+ "path": "jbr/legal/java.base/aes.md",
+ "sha256": "45c6d4da48325edfbff3dcf71c704e504c057904435ed23c6d57046d551eb69d"
+ },
+ {
+ "path": "jbr/legal/java.base/asm.md",
+ "sha256": "683be15695bd248272d60f5b7fbe5e126a935ea6bf231a624a9aa164733e1d1d"
+ },
+ {
+ "path": "jbr/legal/java.base/c-libutl.md",
+ "sha256": "bef40679922d6fdfb7e4ddb223ad6722300f6054ba737bbf6188d60fcec517f9"
+ },
+ {
+ "path": "jbr/legal/java.base/cldr.md",
+ "sha256": "19515e14a240e022640e95b61b5095127fa9690755950b4a2b0a02e783e08163"
+ },
+ {
+ "path": "jbr/legal/java.base/icu.md",
+ "sha256": "1bf28459c6e0af9f3429f4f8becd1668d6544055f8df240277456bc4b3d8a752"
+ },
+ {
+ "path": "jbr/legal/java.base/public_suffix.md",
+ "sha256": "d7818e02ebfc4e5cd82613e003e7ba6be2e9d5949ea4aa0ba88d4d2f7ca69999"
+ },
+ {
+ "path": "jbr/legal/java.base/siphash.md",
+ "sha256": "5a792b5a74ad2a5f3d6a7ad8b7a841116e58a772c18bc6e392320a365b222c76"
+ },
+ {
+ "path": "jbr/legal/java.base/unicode.md",
+ "sha256": "6f72f10d166b2c2e8a395e03e734c5afc852b59aeca73ced124f6b9c96268d53"
+ },
+ {
+ "path": "jbr/legal/java.compiler/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.compiler/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.compiler/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.datatransfer/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.datatransfer/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.datatransfer/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.desktop/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.desktop/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.desktop/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.desktop/colorimaging.md",
+ "sha256": "04d61e3e8e71dd452ebe52008af5378d9f6640d14578aeb515dc5375973b0189"
+ },
+ {
+ "path": "jbr/legal/java.desktop/giflib.md",
+ "sha256": "6cd971730d3047ea57f6865b7bdca2509a9876ae24d5c0ed0c4e32def5f9107e"
+ },
+ {
+ "path": "jbr/legal/java.desktop/harfbuzz.md",
+ "sha256": "721d7c5a24bd0c0a59fe5ee1fde1c17541a745c038e3883d4b184a21779f4e48"
+ },
+ {
+ "path": "jbr/legal/java.desktop/jpeg.md",
+ "sha256": "c1dfb9719a71ad9f861f8728550542d681e25c8ef40e6393606e6e2a0c1d653a"
+ },
+ {
+ "path": "jbr/legal/java.desktop/lcms.md",
+ "sha256": "e9f5f374cb4116acbd82ec39b0a1f93ab1f5adfd8c208488ba8f97de65e86446"
+ },
+ {
+ "path": "jbr/legal/java.desktop/libpng.md",
+ "sha256": "26429c1eb65db41cac81999bebd705a60a5dba1d837664e4cc94f54d5867d818"
+ },
+ {
+ "path": "jbr/legal/java.desktop/mesa3d.md",
+ "sha256": "63f4e6f75caebbccb95d903fb43e46ac7111b3624d0a34f146b276d7d9e7b152"
+ },
+ {
+ "path": "jbr/legal/java.desktop/pipewire.md",
+ "sha256": "7c0494d35e85e5f33bb1a6b061a84b7b745904764c3b7bac7d7d8b817a6ca2d6"
+ },
+ {
+ "path": "jbr/legal/java.desktop/xwd.md",
+ "sha256": "1d4ffa93c87f35084b02a7aa90a21084b4019db4fe1003c2e5ce775b4a384f59"
+ },
+ {
+ "path": "jbr/legal/java.instrument/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.instrument/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.instrument/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.logging/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.logging/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.logging/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.management.rmi/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.management.rmi/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.management.rmi/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.management/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.management/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.management/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.naming/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.naming/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.naming/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.net.http/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.net.http/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.net.http/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.prefs/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.prefs/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.prefs/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.rmi/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.rmi/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.rmi/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.scripting/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.scripting/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.scripting/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.se/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.se/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.se/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.security.jgss/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.security.jgss/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.security.jgss/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.security.sasl/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.security.sasl/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.security.sasl/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.smartcardio/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.smartcardio/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.smartcardio/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.smartcardio/pcsclite.md",
+ "sha256": "b39ce363c281ed36e937f9e6c03311d7dbf0b20d3614dde084130c2a10909692"
+ },
+ {
+ "path": "jbr/legal/java.sql.rowset/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.sql.rowset/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.sql.rowset/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.sql/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.sql/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.sql/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.transaction.xa/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.transaction.xa/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.transaction.xa/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.xml.crypto/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.xml.crypto/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.xml.crypto/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.xml.crypto/santuario.md",
+ "sha256": "b7764b61731d4ee9567b090f34d02237afcfb0377e5d1136c7ad3ef345cc4937"
+ },
+ {
+ "path": "jbr/legal/java.xml/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.xml/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.xml/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/java.xml/bcel.md",
+ "sha256": "853a1e7ce397bb10de0e2b3bde0844bcc651f17d983decd07d2d003c0304c311"
+ },
+ {
+ "path": "jbr/legal/java.xml/dom.md",
+ "sha256": "6686e8877667584a3a7c07344baadca1a03e29f677162d87c3c0811e990d1148"
+ },
+ {
+ "path": "jbr/legal/java.xml/jcup.md",
+ "sha256": "8d5dcfdf50455a3c34c753a98f21e953248af200415a9084e3f102cb6c43b8bf"
+ },
+ {
+ "path": "jbr/legal/java.xml/xalan.md",
+ "sha256": "c27eb875da4be683d4d7422be986e5e30f636ede31958ff1d39f9cd6109e7a00"
+ },
+ {
+ "path": "jbr/legal/java.xml/xerces.md",
+ "sha256": "4a6bf6b367193ee68681cb2d9fed30ffc5d62dd2d477bd62e0271707d71b3244"
+ },
+ {
+ "path": "jbr/legal/jdk.accessibility/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.accessibility/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.accessibility/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.attach/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.attach/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.attach/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.charsets/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.charsets/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.charsets/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.compiler/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.compiler/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.compiler/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.crypto.cryptoki/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.crypto.cryptoki/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.crypto.cryptoki/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.crypto.cryptoki/pkcs11cryptotoken.md",
+ "sha256": "1f36ff1342a581142c858f90064e20633d43529ac82adb85345bd902a14e18b2"
+ },
+ {
+ "path": "jbr/legal/jdk.crypto.cryptoki/pkcs11wrapper.md",
+ "sha256": "371974b1fca3744a3892c7ee1fcc593b8b4281fc218f4cafd2f709e9df5fd81d"
+ },
+ {
+ "path": "jbr/legal/jdk.crypto.ec/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.crypto.ec/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.crypto.ec/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.dynalink/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.dynalink/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.dynalink/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.dynalink/dynalink.md",
+ "sha256": "17312591cabee3ef6c34ed8897d92e4e361ba9cea41ec00dcd61a322a8fc2cdb"
+ },
+ {
+ "path": "jbr/legal/jdk.hotspot.agent/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.hotspot.agent/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.hotspot.agent/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.httpserver/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.httpserver/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.httpserver/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.ed/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.ed/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.ed/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.jvmstat/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.jvmstat/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.jvmstat/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.le/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.le/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.le/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.le/jline.md",
+ "sha256": "aeb64d60a80564e8118799fb00b94d6686c1fe04da2f7399f970f968d32bcf84"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.opt/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.opt/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.opt/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.opt/jopt-simple.md",
+ "sha256": "99bc67f93cf57d6d20e6047731c93fbb267d70fbdd4115d119e0f85c6efe5c05"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.vm.ci/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.vm.ci/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.internal.vm.ci/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.javadoc/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.javadoc/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.javadoc/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.javadoc/jquery.md",
+ "sha256": "b68f454c2bd58959c862d94bf0f16c3f78a2d537388ca060d354344db80ee695"
+ },
+ {
+ "path": "jbr/legal/jdk.javadoc/jqueryUI.md",
+ "sha256": "bb0a0e89ebd824df714516bf64b9101c62081e4b376f00f929a58c09555bf111"
+ },
+ {
+ "path": "jbr/legal/jdk.jcmd/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jcmd/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jcmd/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jdi/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jdi/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jdi/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jdwp.agent/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jdwp.agent/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jdwp.agent/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jfr/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jfr/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jfr/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jsobject/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jsobject/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.jsobject/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.localedata/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.localedata/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.localedata/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.localedata/cldr.md",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.localedata/thaidict.md",
+ "sha256": "c326144a2351c9608fa708b5d7d3c5a3da03e82b66479b128e9db4969539824a"
+ },
+ {
+ "path": "jbr/legal/jdk.management.agent/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.management.agent/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.management.agent/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.management.jfr/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.management.jfr/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.management.jfr/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.management/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.management/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.management/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.naming.dns/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.naming.dns/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.naming.dns/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.naming.rmi/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.naming.rmi/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.naming.rmi/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.net/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.net/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.net/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.sctp/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.sctp/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.sctp/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.security.auth/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.security.auth/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.security.auth/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.security.jgss/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.security.jgss/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.security.jgss/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.unsupported.desktop/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.unsupported.desktop/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.unsupported.desktop/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.unsupported/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.unsupported/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.unsupported/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.xml.dom/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.xml.dom/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.xml.dom/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.zipfs/ADDITIONAL_LICENSE_INFO",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.zipfs/ASSEMBLY_EXCEPTION",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "jbr/legal/jdk.zipfs/LICENSE",
+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
+ },
+ {
+ "path": "license/javahelp_license.txt",
+ "sha256": "1b087ad282cb3cd0a11e4e160318eab4ff0995aae7d22e6ac0d30367e196c6e3"
+ },
+ {
+ "path": "license/javolution_license.txt",
+ "sha256": "dc14eeb2f62b841e624a81d6a54276dab3b0473bcdc91612e74d5bb0a580e935"
+ },
+ {
+ "path": "license/launcher-third-party-libraries.html",
+ "sha256": "b2e5fd3f9f112371832475cee984862685e2ed920b63f1559db83dba9456eb1c"
+ },
+ {
+ "path": "license/saxon-conditions.html",
+ "sha256": "1eedf0324f95e659c78eac815e211b187fb024dafb45bb2d9ccac088ecbe71e6"
+ },
+ {
+ "path": "license/third-party-libraries.html",
+ "sha256": "e272bb516f9899d2e3ea5bea00cd39962e1bbc1d95e713a16814f89b3a91e083"
+ },
+ {
+ "path": "license/yourkit-license-redist.txt",
+ "sha256": "5670a5a860905c44061c5546029d6e32fcd9e4c9311029c57a935ae36c25bc51"
+ }
+ ]
+ }
+ ],
+ "schema_version": 1,
+ "scope": "Exact build/test/verifier tooling, not unrestricted runtime dependency or SDK redistribution approval."
+}
\ No newline at end of file
diff --git a/ci/rust-compiler-notices.json b/ci/rust-compiler-notices.json
new file mode 100644
index 0000000..7cdc2d0
--- /dev/null
+++ b/ci/rust-compiler-notices.json
@@ -0,0 +1,163 @@
+{
+ "coverage": "Complete original Rust compiler-builtins, LLVM compiler-rt and libm grants and a conservative source witness collection for the pinned compiler. Not a retained-code inventory, all-target input proof or change to the first-party MIT OR Apache-2.0 license.",
+ "llvm_revision": "1b9c0d5ff9bbe7634aead059efe6b11a7eeba145",
+ "materials": [
+ {
+ "bytes": 15078,
+ "git_blob": "00ae6140bd54e1b538d833f60438e11ed8be12cf",
+ "legal_document": true,
+ "path": "ci/licenses/rust-compiler-originals/compiler-builtins-LICENSE.txt",
+ "repository": "rust-lang/rust",
+ "revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "role": "compiler-builtins-LICENSE.txt",
+ "sha256": "ab6eec6caf0fa5775e411c7a8bc6a45c4ef2956b0980b157ab74fc5cd62a928b",
+ "upstream_path": "library/compiler-builtins/LICENSE.txt"
+ },
+ {
+ "bytes": 2005,
+ "git_blob": "b2f1443f2eb09d297b62c7b44fce9e31d71b10a2",
+ "legal_document": false,
+ "path": "ci/licenses/rust-compiler-originals/compiler-builtins-Cargo.toml.txt",
+ "repository": "rust-lang/rust",
+ "revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "role": "compiler-builtins-Cargo.toml.txt",
+ "sha256": "d89e31fed70f2cad9c6e91b787bf4c0fb680c631196b2a7215c81745aaf7fb7e",
+ "upstream_path": "library/compiler-builtins/compiler-builtins/Cargo.toml"
+ },
+ {
+ "bytes": 27313,
+ "git_blob": "e86c784b5c6317a53e9ff89104b15e60ba7ac4bf",
+ "legal_document": false,
+ "path": "ci/licenses/rust-compiler-originals/compiler-builtins-build.rs.txt",
+ "repository": "rust-lang/rust",
+ "revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "role": "compiler-builtins-build.rs.txt",
+ "sha256": "dd1d07d0852fd6a654c69d6dafd8ae66744853cb5678610008dbf6ae6baec11e",
+ "upstream_path": "library/compiler-builtins/compiler-builtins/build.rs"
+ },
+ {
+ "bytes": 463,
+ "git_blob": "2c12cb7f3095b2ace3938a666ebd1b607b8a269c",
+ "legal_document": false,
+ "path": "ci/licenses/rust-compiler-originals/compiler-builtins-aarch64.rs.txt",
+ "repository": "rust-lang/rust",
+ "revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "role": "compiler-builtins-aarch64.rs.txt",
+ "sha256": "5acb367779a8e6e6e06e188e715d6d2ff76b9c3208acd899e139957bd1d3c877",
+ "upstream_path": "library/compiler-builtins/compiler-builtins/src/aarch64.rs"
+ },
+ {
+ "bytes": 16463,
+ "git_blob": "367768ecb60d65069679b3c84a9ef932c5ab6962",
+ "legal_document": false,
+ "path": "ci/licenses/rust-compiler-originals/compiler-builtins-aarch64-outline-atomics.rs.txt",
+ "repository": "rust-lang/rust",
+ "revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "role": "compiler-builtins-aarch64-outline-atomics.rs.txt",
+ "sha256": "d2e6ed0066ac36db55dfaa245bdc814353456dda92437aba539cc828d2011ae9",
+ "upstream_path": "library/compiler-builtins/compiler-builtins/src/aarch64_outline_atomics.rs"
+ },
+ {
+ "bytes": 5851,
+ "git_blob": "a444d82892c36f8c1e3ba5f1977638d56fb929f8",
+ "legal_document": false,
+ "path": "ci/licenses/rust-compiler-originals/compiler-rt-aarch64-lse.S.txt",
+ "repository": "rust-lang/llvm-project",
+ "revision": "1b9c0d5ff9bbe7634aead059efe6b11a7eeba145",
+ "role": "compiler-rt-aarch64-lse.S.txt",
+ "sha256": "dcd05cb984ef8d777642eb960e3ef61b1140f268c3e4744f8f738aa46fd8ed66",
+ "upstream_path": "compiler-rt/lib/builtins/aarch64/lse.S"
+ },
+ {
+ "bytes": 3026,
+ "git_blob": "347bb4e121c97c98aa6e7440b1c952978bfedc9b",
+ "legal_document": false,
+ "path": "ci/licenses/rust-compiler-originals/compiler-rt-aarch64-cpu-model.c.txt",
+ "repository": "rust-lang/llvm-project",
+ "revision": "1b9c0d5ff9bbe7634aead059efe6b11a7eeba145",
+ "role": "compiler-rt-aarch64-cpu-model.c.txt",
+ "sha256": "405b2ad2520db341af1338be2e58cce9d28a9f63006486d1c9572f4fe10ae032",
+ "upstream_path": "compiler-rt/lib/builtins/cpu_model/aarch64.c"
+ },
+ {
+ "bytes": 16708,
+ "git_blob": "5a79a1b9d5cb0af9a779751f07033e44ca3b14d8",
+ "legal_document": true,
+ "path": "ci/licenses/rust-compiler-originals/compiler-rt-LICENSE.TXT",
+ "repository": "rust-lang/llvm-project",
+ "revision": "1b9c0d5ff9bbe7634aead059efe6b11a7eeba145",
+ "role": "compiler-rt-LICENSE.TXT",
+ "sha256": "1a8f1058753f1ba890de984e48f0242a3a5c29a6a8f2ed9fd813f36985387e8d",
+ "upstream_path": "compiler-rt/LICENSE.TXT"
+ },
+ {
+ "bytes": 1049,
+ "git_blob": "6964eba020b8aa7a08629b249e3b9aea3ce3e448",
+ "legal_document": true,
+ "path": "ci/licenses/rust-compiler-originals/compiler-rt-CREDITS.TXT",
+ "repository": "rust-lang/llvm-project",
+ "revision": "1b9c0d5ff9bbe7634aead059efe6b11a7eeba145",
+ "role": "compiler-rt-CREDITS.TXT",
+ "sha256": "a9901f47a089da41e4690682d00ce4cedaa2baf41fedbe79beee366d43ac2461",
+ "upstream_path": "compiler-rt/CREDITS.TXT"
+ },
+ {
+ "bytes": 7270,
+ "git_blob": "3dfa3863bb77007fbec01b7c931bf1c349953d11",
+ "legal_document": false,
+ "path": "ci/licenses/rust-compiler-originals/compiler-builtins-math-mod.rs.txt",
+ "repository": "rust-lang/rust",
+ "revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "role": "compiler-builtins-math-mod.rs.txt",
+ "sha256": "a3ff615e04d9ae9a0bb36cfbfd9a0aaf183ab6e32ddfe836cdf4f243f97a401e",
+ "upstream_path": "library/compiler-builtins/compiler-builtins/src/math/mod.rs"
+ },
+ {
+ "bytes": 4407,
+ "git_blob": "9eb902ea578f87588d8236619a67ab7db72c8ba8",
+ "legal_document": false,
+ "path": "ci/licenses/rust-compiler-originals/libm-trunc.rs.txt",
+ "repository": "rust-lang/rust",
+ "revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "role": "libm-trunc.rs.txt",
+ "sha256": "ef59952a1a80ec93be27eb78c977189084ff7fcae0e8f782d60b5947e1de141c",
+ "upstream_path": "library/compiler-builtins/libm/src/math/trunc.rs"
+ },
+ {
+ "bytes": 14088,
+ "git_blob": "2f8e41f147472510b05e0adeadf350df6f5a6b96",
+ "legal_document": true,
+ "path": "ci/licenses/rust-compiler-originals/libm-LICENSE.txt",
+ "repository": "rust-lang/rust",
+ "revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "role": "libm-LICENSE.txt",
+ "sha256": "3823dda7cf046602f4b4e77ec8e227863dc4736037cc85bb33d9f19febe16bb7",
+ "upstream_path": "library/compiler-builtins/libm/LICENSE.txt"
+ },
+ {
+ "bytes": 1152,
+ "git_blob": "0b252fab94ae1d54aac4df8d5ab6f7a2e919bd32",
+ "legal_document": false,
+ "path": "ci/licenses/rust-compiler-originals/libm-generic-trunc.rs.txt",
+ "repository": "rust-lang/rust",
+ "revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "role": "libm-generic-trunc.rs.txt",
+ "sha256": "3a3ca091cd1d750276601dc2dfeb2a8ff058636ea2b66a748c55a1804bc8f00a",
+ "upstream_path": "library/compiler-builtins/libm/src/math/generic/trunc.rs"
+ },
+ {
+ "bytes": 16862,
+ "git_blob": "6193aa416e22249ed25e856aa03dda2f5a585b62",
+ "legal_document": false,
+ "path": "ci/licenses/rust-compiler-originals/compiler-builtins-float-conv.rs.txt",
+ "repository": "rust-lang/rust",
+ "revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "role": "compiler-builtins-float-conv.rs.txt",
+ "sha256": "740286ec154ddd78a9a8e5e6b8fad2c564585d1a76051cd6ee429c313d660070",
+ "upstream_path": "library/compiler-builtins/compiler-builtins/src/float/conv.rs"
+ }
+ ],
+ "rust_revision": "58cf8f9c35b355199727627d07ae34a4e2846d67",
+ "rust_version": "1.99.1",
+ "schema_version": 1
+}
diff --git a/ci/test_embedded_notices.py b/ci/test_embedded_notices.py
new file mode 100644
index 0000000..f72ab37
--- /dev/null
+++ b/ci/test_embedded_notices.py
@@ -0,0 +1,61 @@
+"""Проверить compact notice resource без загрузки native кода."""
+
+from __future__ import annotations
+
+import gzip
+import importlib.util
+import unittest
+from pathlib import Path
+
+SCRIPT = Path(__file__).resolve().parents[1] / "scripts" / "check_embedded_notices.py"
+spec = importlib.util.spec_from_file_location("embedded_notices", SCRIPT)
+assert spec is not None
+assert spec.loader is not None
+module = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(module)
+
+
+def _resource(data: bytes) -> bytes:
+ compressed = gzip.compress(data, mtime=0)
+ return module.MARKER + len(compressed).to_bytes(8, "little") + compressed
+
+
+class EmbeddedNoticesTest(unittest.TestCase):
+ def test_roundtrip_preserves_utf8_notice(self) -> None:
+ expected = '{"copyright": "© contributors", "license": "MIT"}'.encode()
+ resource = _resource(expected)
+ actual, size = module._extract(b"native-prefix" + resource + b"native-suffix")
+ self.assertEqual(actual, expected)
+ self.assertEqual(size, len(resource) - len(module.MARKER) - 8)
+
+ def test_missing_resource_is_rejected(self) -> None:
+ with self.assertRaisesRegex(ValueError, "missing or duplicate"):
+ module._extract(b"native without notices")
+
+ def test_duplicate_resource_is_rejected(self) -> None:
+ resource = _resource(b"notice")
+ with self.assertRaisesRegex(ValueError, "missing or duplicate"):
+ module._extract(resource + resource)
+
+ def test_truncated_length_is_rejected(self) -> None:
+ with self.assertRaisesRegex(ValueError, "truncated embedded notice length"):
+ module._extract(module.MARKER + b"short")
+
+ def test_truncated_payload_is_rejected(self) -> None:
+ with self.assertRaisesRegex(ValueError, "invalid embedded notice size"):
+ module._extract(module.MARKER + (100).to_bytes(8, "little") + b"short")
+
+ def test_oversized_claim_is_rejected_without_large_allocation(self) -> None:
+ length = module.MAX_GZIP + 1
+ with self.assertRaisesRegex(ValueError, "invalid embedded notice size"):
+ module._extract(module.MARKER + length.to_bytes(8, "little"))
+
+ def test_corrupt_gzip_is_rejected(self) -> None:
+ resource = bytearray(_resource(b"notice"))
+ resource[-1] ^= 1
+ with self.assertRaises((OSError, EOFError)):
+ module._extract(bytes(resource))
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/ci/test_intellij_distribution.py b/ci/test_intellij_distribution.py
new file mode 100644
index 0000000..1738af3
--- /dev/null
+++ b/ci/test_intellij_distribution.py
@@ -0,0 +1,122 @@
+"""Проверить actual ZIP inventory guards без исполнения plugin code."""
+
+import importlib.util
+import io
+from pathlib import Path
+import stat
+import tempfile
+import unittest
+import warnings
+import zipfile
+
+spec = importlib.util.spec_from_file_location('intellij_distribution', Path(__file__).with_name('check-intellij-distribution.py'))
+checker = importlib.util.module_from_spec(spec)
+spec.loader.exec_module(checker)
+
+
+class IntelliJDistributionTest(unittest.TestCase):
+ def setUp(self):
+ self.directory = tempfile.TemporaryDirectory()
+ self.addCleanup(self.directory.cleanup)
+ self.root = Path(self.directory.name)
+ self.licenses = {'LICENSE-MIT': b'MIT terms', 'LICENSE-APACHE': b'Apache terms'}
+ for name, value in self.licenses.items():
+ (self.root / name).write_bytes(value)
+
+ def jar(self, extra=(), descriptor=True, classes=True, missing=False, changed=False):
+ stream = io.BytesIO()
+ with zipfile.ZipFile(stream, 'w') as archive:
+ for name, value in self.licenses.items():
+ if missing and name == 'LICENSE-MIT':
+ continue
+ archive.writestr('META-INF/' + name, b'changed' if changed else value)
+ if descriptor:
+ archive.writestr('META-INF/plugin.xml', b'')
+ if classes:
+ archive.writestr('lang/ktav/Example.class', b'\xca\xfe\xba\xbe')
+ for name, value in extra:
+ archive.writestr(name, value)
+ return stream.getvalue()
+
+ def package(self, jar=None, extra=()):
+ path = self.root / 'plugin.zip'
+ with zipfile.ZipFile(path, 'w') as archive:
+ archive.writestr('ktav-intellij/lib/ktav.jar', self.jar() if jar is None else jar)
+ for name, value in extra:
+ archive.writestr(name, value)
+ return path
+
+ def test_own_license_bytes_and_namespace(self):
+ result = checker.verify(self.package(), self.root)
+ self.assertEqual(len(result['jars']), 1)
+ self.assertEqual(result['jars'][0]['classes'], 1)
+ self.assertEqual(result['native_lsp_payloads'], [])
+
+ def test_searchable_options_jar_keeps_licenses(self):
+ extra = [('ktav-intellij/lib/searchableOptions.jar', self.jar(descriptor=False, classes=False))]
+ result = checker.verify(self.package(extra=extra), self.root)
+ self.assertEqual(len(result['jars']), 2)
+
+ def test_sdk_class_rejected(self):
+ jar = self.jar([('com/intellij/SDK.class', b'\xca\xfe\xba\xbe')])
+ with self.assertRaisesRegex(ValueError, 'non-Ktav class'):
+ checker.verify(self.package(jar), self.root)
+
+ def test_trove_class_rejected(self):
+ jar = self.jar([('gnu/trove/THash.class', b'\xca\xfe\xba\xbe')])
+ with self.assertRaisesRegex(ValueError, 'non-Ktav class'):
+ checker.verify(self.package(jar), self.root)
+
+ def test_missing_license_rejected(self):
+ with self.assertRaisesRegex(ValueError, 'license missing'):
+ checker.verify(self.package(self.jar(missing=True)), self.root)
+
+ def test_modified_license_rejected(self):
+ with self.assertRaisesRegex(ValueError, 'differs from source'):
+ checker.verify(self.package(self.jar(changed=True)), self.root)
+
+ def test_hidden_native_resource_rejected(self):
+ with self.assertRaisesRegex(ValueError, 'hidden executable'):
+ checker.verify(self.package(self.jar([('resource.bin', b'\x7fELF')])), self.root)
+
+ def test_hidden_archive_rejected(self):
+ with self.assertRaisesRegex(ValueError, 'hidden archive'):
+ checker.verify(self.package(extra=[('ktav-intellij/resource.bin', b'PK\x03\x04')]), self.root)
+
+ def test_traversal_rejected(self):
+ with self.assertRaisesRegex(ValueError, 'unsafe archive path'):
+ checker.verify(self.package(extra=[('../outside', b'data')]), self.root)
+
+ def test_symlink_rejected(self):
+ link = zipfile.ZipInfo('ktav-intellij/link')
+ link.create_system = 3
+ link.external_attr = (stat.S_IFLNK | 0o777) << 16
+ with self.assertRaisesRegex(ValueError, 'symlink'):
+ checker.verify(self.package(extra=[(link, b'outside')]), self.root)
+
+ def test_duplicate_jar_rejected(self):
+ with warnings.catch_warnings():
+ warnings.simplefilter('ignore', UserWarning)
+ path = self.package(extra=[('ktav-intellij/lib/ktav.jar', self.jar())])
+ with self.assertRaisesRegex(ValueError, 'duplicate'):
+ checker.verify(path, self.root)
+
+ def test_declared_lsp_is_inventoried_not_claimed_audited(self):
+ path = self.package(extra=[('ktav-intellij/lib/bin/linux-x64/ktav-lsp', b'\x7fELF')])
+ result = checker.verify(path, self.root)
+ self.assertEqual(len(result['native_lsp_payloads']), 1)
+ self.assertIn('separate evidence', result['coverage'])
+
+ def test_sdk_native_name_rejected(self):
+ path = self.package(extra=[('ktav-intellij/lib/bin/linux-x64/libjvm.so', b'\x7fELF')])
+ with self.assertRaisesRegex(ValueError, 'payload name'):
+ checker.verify(path, self.root)
+
+ def test_java_class_cannot_hide_as_lsp(self):
+ path = self.package(extra=[('ktav-intellij/lib/bin/linux-x64/ktav-lsp', b'\xca\xfe\xba\xbe')])
+ with self.assertRaisesRegex(ValueError, 'native LSP format'):
+ checker.verify(path, self.root)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/ci/test_lsp_distribution.py b/ci/test_lsp_distribution.py
new file mode 100644
index 0000000..0c3b570
--- /dev/null
+++ b/ci/test_lsp_distribution.py
@@ -0,0 +1,195 @@
+"""Проверить обязательные legal/source роли и byte binding distribution payload."""
+
+import gzip
+import hashlib
+import json
+from pathlib import Path
+import sys
+import tempfile
+import unittest
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
+from check_embedded_notices import MARKER
+from lsp_distribution import CORE_CHECKSUM, TARGETS, cpu, file_info, name, stage, verify
+
+
+def digest(data):
+ return hashlib.sha256(data).hexdigest()
+
+
+def document(data):
+ return {'text': data.decode('utf-8'), 'sha256': digest(data)}
+
+
+class LspDistribution(unittest.TestCase):
+ def fixture(self, root, target='aarch64-apple-darwin'):
+ evidence = root / 'evidence'
+ evidence.mkdir()
+ sources = root / 'source'
+ sources.mkdir()
+ lock = ('version = 4\n[[package]]\nname = "ktav"\nversion = "0.8.1"\nsource = "registry+https://github.com/rust-lang/crates.io-index"\nchecksum = "' + CORE_CHECKSUM + '"\n').encode()
+ stdlib = b'Original Rust standard-library copyright.\n'
+ bundle = {'schema_version': 1, 'cargo_lock_sha256': digest(lock), 'packages': [{'name': 'ktav-lsp', 'version': '0.8.1', 'source': None}], 'licenses': [document(b'Original package permission and copyright.\n')], 'notices': [document(b'Additional original NOTICE.\n')], 'rust_standard_library': document(stdlib)}
+ source_ref = 'a' * 40
+ if 'linux' in target:
+ arm = target.startswith('aarch64-')
+ runtime = {'startup_terms': {'corresponding_source_required': arm, 'compiled_linking_exception': not arm}}
+ if arm:
+ runtime['corresponding_source'] = {'source_ref': source_ref, 'archive': 'ktav-lsp-source-' + target + '.tar.gz'}
+ bundle['non_cargo_runtimes'] = [runtime]
+ notice = (json.dumps(bundle, sort_keys=True) + '\n').encode()
+ payload = gzip.compress(notice, mtime=0)
+ binary = bytearray(128)
+ if 'apple' in target:
+ binary[:4] = b'\xcf\xfa\xed\xfe'
+ binary[4:8] = (0x0100000C if target.startswith('aarch64-') else 0x01000007).to_bytes(4, 'little')
+ binary[12:16] = (2).to_bytes(4, 'little')
+ elif 'linux' in target:
+ binary[:6] = b'\x7fELF\x02\x01'
+ binary[16:18] = (3).to_bytes(2, 'little')
+ binary[18:20] = (183 if target.startswith('aarch64-') else 62).to_bytes(2, 'little')
+ binary[24:32] = (128).to_bytes(8, 'little')
+ else:
+ binary[:2] = b'MZ'
+ binary[60:64] = (64).to_bytes(4, 'little')
+ binary[64:68] = b'PE\0\0'
+ binary[68:70] = (0xAA64 if target.startswith('aarch64-') else 0x8664).to_bytes(2, 'little')
+ binary[86:88] = (2).to_bytes(2, 'little')
+ binary = bytes(binary) + MARKER + len(payload).to_bytes(8, 'little') + payload
+ executable = root / 'binary'
+ executable.write_bytes(binary)
+ for filename, data in [('Cargo.lock', lock), ('COPYRIGHT-library.html', stdlib), ('NOTICE.json', notice), ('NOTICE.json.gz', payload)]:
+ (evidence / filename).write_bytes(data)
+ (evidence / 'source-provenance.json').write_bytes(json.dumps({'source_ref': source_ref}).encode())
+ report = {'binary_sha256': digest(binary), 'notice_sha256': digest(notice), 'target': target}
+ if 'apple' in target:
+ report.update({'dynamic_libraries': ['/usr/lib/libSystem.B.dylib'], 'iconv_symbol_imports': False})
+ else:
+ runtime_name = 'NOTICE.gnu-startup.txt' if 'linux' in target else 'NOTICE.windows-runtime.txt'
+ plain = b'Original runtime copyright and full licence.\n'
+ (evidence / runtime_name).write_bytes(plain)
+ report['plain_notice_sha256'] = digest(plain)
+ filename = 'native-macos-verification.json' if 'apple' in target else 'native-resource-verification.json' if 'linux' in target else 'native-windows-verification.json'
+ (evidence / filename).write_bytes(json.dumps(report).encode())
+ if target == 'aarch64-unknown-linux-gnu':
+ archive = 'ktav-lsp-source-' + target + '.tar.gz'
+ archive_data = gzip.compress(b'source binding unit fixture', mtime=0)
+ (sources / archive).write_bytes(archive_data)
+ binding = {'schema_version': 1, 'target': target, 'source_ref': source_ref, 'binary': {'file': 'ktav-lsp', 'sha256': digest(binary)}, 'notice': {'file': 'NOTICE.json', 'sha256': digest(notice)}, 'corresponding_source': {'file': archive, 'sha256': digest(archive_data)}}
+ (evidence / 'native-source-binding.json').write_bytes(json.dumps(binding).encode())
+ return evidence, executable, sources
+
+ def test_stage_preserves_each_old_raw_asset_name(self):
+ for target, (_, asset) in TARGETS.items():
+ with self.subTest(target=target), tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ evidence, binary, sources = self.fixture(root, target)
+ output = root / 'payload'
+ result = stage(evidence, binary, target, sources, output)
+ self.assertEqual(result['binary'], asset)
+ self.assertEqual((output / asset).read_bytes(), binary.read_bytes())
+ self.assertIn(b'Original package permission and copyright.', (output / result['cargo_plain_notice']).read_bytes())
+ self.assertEqual(verify(output)['target'], target)
+
+ def test_missing_own_licence_is_rejected_even_if_manifest_is_rewritten(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ evidence, binary, sources = self.fixture(root)
+ output = root / 'payload'
+ manifest = stage(evidence, binary, 'aarch64-apple-darwin', sources, output)
+ dropped = manifest['first_party_licenses'].pop()
+ (output / dropped).unlink()
+ del manifest['files'][dropped]
+ (output / (manifest['asset'] + '.distribution.json')).write_bytes(json.dumps(manifest).encode())
+ with self.assertRaisesRegex(ValueError, 'legal/source role'):
+ verify(output)
+
+ def test_arm_requires_matching_complete_source_asset(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ evidence, binary, sources = self.fixture(root, 'aarch64-unknown-linux-gnu')
+ archive = next(sources.iterdir())
+ archive.write_bytes(b'wrong corresponding-source bytes')
+ with self.assertRaisesRegex(ValueError, 'not bound to distribution binary'):
+ stage(evidence, binary, 'aarch64-unknown-linux-gnu', sources, root / 'payload')
+ self.assertFalse((root / 'payload').exists())
+
+ def test_source_obligation_cannot_be_removed_from_manifest(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ evidence, binary, sources = self.fixture(root, 'aarch64-unknown-linux-gnu')
+ output = root / 'payload'
+ manifest = stage(evidence, binary, 'aarch64-unknown-linux-gnu', sources, output)
+ manifest['corresponding_source'] = None
+ (output / (manifest['asset'] + '.distribution.json')).write_bytes(json.dumps(manifest).encode())
+ with self.assertRaisesRegex(ValueError, 'legal/source role'):
+ verify(output)
+
+ def test_changed_binary_or_notice_is_rejected(self):
+ for changed in ['binary', 'notice']:
+ with self.subTest(changed=changed), tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ evidence, binary, sources = self.fixture(root)
+ output = root / 'payload'
+ manifest = stage(evidence, binary, 'aarch64-apple-darwin', sources, output)
+ (output / manifest[changed]).write_bytes(b'changed')
+ with self.assertRaisesRegex(ValueError, 'file identity mismatch'):
+ verify(output)
+
+ def test_exact_compressed_resource_not_only_decoded_json_is_required(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ evidence, binary, sources = self.fixture(root)
+ (evidence / 'NOTICE.json.gz').write_bytes(gzip.compress((evidence / 'NOTICE.json').read_bytes(), compresslevel=1, mtime=123))
+ with self.assertRaisesRegex(ValueError, 'resource differs'):
+ stage(evidence, binary, 'aarch64-apple-darwin', sources, root / 'payload')
+
+ def test_runtime_plain_notice_cannot_be_substituted(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ evidence, binary, sources = self.fixture(root, 'x86_64-pc-windows-gnullvm')
+ (evidence / 'NOTICE.windows-runtime.txt').write_bytes(b'incomplete notice')
+ with self.assertRaisesRegex(ValueError, 'not bound to target verification'):
+ stage(evidence, binary, 'x86_64-pc-windows-gnullvm', sources, root / 'payload')
+
+ def test_nonempty_output_is_never_deleted_or_overwritten(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ evidence, binary, sources = self.fixture(root)
+ output = root / 'payload'
+ output.mkdir()
+ sentinel = output / 'user-file'
+ sentinel.write_bytes(b'keep')
+ with self.assertRaisesRegex(ValueError, 'new empty directory'):
+ stage(evidence, binary, 'aarch64-apple-darwin', sources, output)
+ self.assertEqual(sentinel.read_bytes(), b'keep')
+
+ def test_safe_names_and_real_size_bounds(self):
+ for unsafe in ['../source.tar.gz', '/source.tar.gz', 'nested/source.tar.gz', 'C:source', '.hidden']:
+ with self.subTest(name=unsafe), self.assertRaisesRegex(ValueError, 'unsafe distribution'):
+ name(unsafe)
+ with tempfile.TemporaryDirectory() as directory:
+ path = Path(directory) / 'source'
+ path.write_bytes(b'1234')
+ with self.assertRaisesRegex(ValueError, 'exceeds size bound'):
+ file_info(path, 3)
+
+ def test_shared_library_cannot_be_mislabeled_as_lsp_executable(self):
+ for target in ['aarch64-unknown-linux-gnu', 'x86_64-pc-windows-gnullvm']:
+ with self.subTest(target=target), tempfile.TemporaryDirectory() as directory:
+ _, path, _ = self.fixture(Path(directory), target)
+ binary = bytearray(path.read_bytes())
+ if 'linux' in target:
+ binary[24:32] = bytes(8)
+ else:
+ binary[86:88] = (0x2002).to_bytes(2, 'little')
+ with self.assertRaisesRegex(ValueError, 'CPU/format mismatch'):
+ cpu(bytes(binary), target)
+
+ def test_cpu_header_is_not_inferred_from_filename(self):
+ with self.assertRaisesRegex(ValueError, 'CPU/format mismatch'):
+ cpu(b'not an executable', 'aarch64-apple-darwin')
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/ci/test_lsp_distribution_organizer.py b/ci/test_lsp_distribution_organizer.py
new file mode 100644
index 0000000..1781215
--- /dev/null
+++ b/ci/test_lsp_distribution_organizer.py
@@ -0,0 +1,115 @@
+"""Проверить перенос complete payloads без потери legal/source материалов."""
+
+import json
+from pathlib import Path
+import shutil
+import subprocess
+import sys
+import tempfile
+import unittest
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
+import test_lsp_distribution as fixtures
+from lsp_distribution import TARGETS, stage, verify
+from organize_lsp_distribution import organize
+
+
+class PluginDistributionOrganization(unittest.TestCase):
+ def inputs(self, root, omit=None):
+ incoming = root / 'downloads'
+ incoming.mkdir()
+ for index, target in enumerate(TARGETS):
+ if target == omit:
+ continue
+ temporary = root / ('producer-' + str(index))
+ temporary.mkdir()
+ evidence, binary, source = fixtures.LspDistribution().fixture(temporary, target)
+ stage(evidence, binary, target, source, incoming / target)
+ return incoming
+
+ def test_all_platforms_keep_exact_binary_notice_and_source_bytes(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ incoming = self.inputs(root)
+ output = root / 'plugin-bin'
+ result = organize(incoming, output)
+ self.assertEqual(len(result['platforms']), 6)
+ for target, (platform, _) in TARGETS.items():
+ original = verify(incoming / target)
+ copied = verify(output / platform)
+ expected_binary = 'ktav-lsp.exe' if 'windows' in target else 'ktav-lsp'
+ self.assertEqual(copied['binary'], expected_binary)
+ self.assertEqual((output / platform / expected_binary).read_bytes(), (incoming / target / original['binary']).read_bytes())
+ for role in ['notice', 'notice_gzip', 'stdlib_report', 'cargo_plain_notice', 'cargo_lock']:
+ self.assertEqual((output / platform / copied[role]).read_bytes(), (incoming / target / original[role]).read_bytes())
+ if copied['corresponding_source']:
+ source_name = copied['corresponding_source']
+ self.assertEqual((output / platform / source_name).read_bytes(), (incoming / target / source_name).read_bytes())
+ binding = json.loads((output / platform / copied['source_binding']).read_bytes())
+ self.assertEqual(binding['binary']['file'], expected_binary)
+ self.assertEqual(binding['binary']['sha256'], original['files'][original['binary']]['sha256'])
+
+ def test_isolated_cli_works_outside_project_without_loading_cwd_modules(self):
+ script = Path(__file__).resolve().parents[1] / 'scripts/organize_lsp_distribution.py'
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ incoming = self.inputs(root)
+ output = root / 'plugin-bin'
+ cwd = root / 'caller'
+ cwd.mkdir()
+ (cwd / 'json.py').write_text('raise RuntimeError("untrusted cwd module loaded")\n', encoding='utf-8')
+ result = subprocess.run([sys.executable, '-I', str(script), str(incoming), str(output)], cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True)
+ report = json.loads(result.stdout)
+ self.assertEqual(len(report['platforms']), 6)
+ for target, (platform, _) in TARGETS.items():
+ self.assertEqual(verify(output / platform)['target'], target)
+
+ def test_missing_platform_fails_before_output_is_created(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ incoming = self.inputs(root, omit='aarch64-pc-windows-gnullvm')
+ output = root / 'plugin-bin'
+ with self.assertRaisesRegex(ValueError, 'six matching-source'):
+ organize(incoming, output)
+ self.assertFalse(output.exists())
+
+ def test_duplicate_platform_is_not_silently_overwritten(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ incoming = self.inputs(root)
+ shutil.copytree(incoming / 'x86_64-apple-darwin', incoming / 'duplicate')
+ output = root / 'plugin-bin'
+ with self.assertRaisesRegex(ValueError, 'duplicate plugin target'):
+ organize(incoming, output)
+ self.assertFalse(output.exists())
+
+ def test_different_source_refs_cannot_be_mixed(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ incoming = self.inputs(root)
+ payload = incoming / 'x86_64-apple-darwin'
+ manifest_path = next(payload.glob('*.distribution.json'))
+ manifest = json.loads(manifest_path.read_bytes())
+ manifest['source_ref'] = 'b' * 40
+ manifest_path.write_bytes(json.dumps(manifest).encode('utf-8'))
+ output = root / 'plugin-bin'
+ with self.assertRaisesRegex(ValueError, 'six matching-source'):
+ organize(incoming, output)
+ self.assertFalse(output.exists())
+
+ def test_existing_plugin_files_are_preserved_on_failure(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ incoming = root / 'downloads'
+ incoming.mkdir()
+ output = root / 'plugin-bin'
+ output.mkdir()
+ sentinel = output / 'user-file'
+ sentinel.write_bytes(b'keep')
+ with self.assertRaisesRegex(ValueError, 'new and empty'):
+ organize(incoming, output)
+ self.assertEqual(sentinel.read_bytes(), b'keep')
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/ci/test_lsp_distribution_release.py b/ci/test_lsp_distribution_release.py
new file mode 100644
index 0000000..e6c2338
--- /dev/null
+++ b/ci/test_lsp_distribution_release.py
@@ -0,0 +1,65 @@
+"""Проверить полную доставку raw binaries, notices и matching source."""
+
+from pathlib import Path
+import sys
+import tempfile
+import unittest
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
+import test_lsp_distribution_organizer as fixtures
+from lsp_distribution import verify
+from stage_lsp_release_assets import stage
+
+
+class ReleasePayloadStaging(unittest.TestCase):
+ def test_every_producer_file_is_preserved_byte_for_byte(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ incoming = fixtures.PluginDistributionOrganization().inputs(root)
+ source_ref = verify(next(incoming.iterdir()))['source_ref']
+ output = root / 'release-assets'
+ result = stage(incoming, output, source_ref)
+ expected = set()
+ for producer in incoming.iterdir():
+ for path in producer.iterdir():
+ expected.add(path.name)
+ self.assertEqual((output / path.name).read_bytes(), path.read_bytes())
+ self.assertEqual(set(result['files']), expected)
+ self.assertEqual({path.name for path in output.iterdir()}, expected)
+ self.assertIn('ktav-lsp-source-aarch64-unknown-linux-gnu.tar.gz', expected)
+
+ def test_wrong_source_ref_fails_before_output(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ incoming = fixtures.PluginDistributionOrganization().inputs(root)
+ output = root / 'release-assets'
+ with self.assertRaisesRegex(ValueError, 'matching-source'):
+ stage(incoming, output, 'f' * 40)
+ self.assertFalse(output.exists())
+
+ def test_missing_platform_fails_before_output(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ incoming = fixtures.PluginDistributionOrganization().inputs(root, omit='aarch64-apple-darwin')
+ source_ref = verify(next(incoming.iterdir()))['source_ref']
+ output = root / 'release-assets'
+ with self.assertRaisesRegex(ValueError, 'all six'):
+ stage(incoming, output, source_ref)
+ self.assertFalse(output.exists())
+
+ def test_existing_output_is_never_overwritten(self):
+ with tempfile.TemporaryDirectory() as directory:
+ root = Path(directory)
+ incoming = root / 'incoming'
+ incoming.mkdir()
+ output = root / 'release-assets'
+ output.mkdir()
+ sentinel = output / 'existing'
+ sentinel.write_bytes(b'keep')
+ with self.assertRaisesRegex(ValueError, 'new and empty'):
+ stage(incoming, output, 'a' * 40)
+ self.assertEqual(sentinel.read_bytes(), b'keep')
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/ci/test_lsp_distribution_zip.py b/ci/test_lsp_distribution_zip.py
new file mode 100644
index 0000000..beec848
--- /dev/null
+++ b/ci/test_lsp_distribution_zip.py
@@ -0,0 +1,131 @@
+"""Проверить те же обязательные payload roles внутри обоих plugin containers."""
+
+import io
+import json
+from pathlib import Path
+import stat
+import sys
+import tempfile
+import unittest
+from unittest.mock import patch
+import warnings
+import zipfile
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
+import test_lsp_distribution_organizer as fixtures
+from check_lsp_plugin_zip import PREFIXES, SOURCE, inventory, verify
+from organize_lsp_distribution import organize
+
+
+class PluginZipDistribution(unittest.TestCase):
+ def build(self, root, kind, change=None, extra=None):
+ incoming = fixtures.PluginDistributionOrganization().inputs(root)
+ output = root / 'plugin-bin'
+ organize(incoming, output)
+ if change:
+ change(output)
+ archive = root / ('plugin.' + ('vsix' if kind == 'vsix' else 'zip'))
+ with zipfile.ZipFile(archive, 'w', zipfile.ZIP_DEFLATED) as destination:
+ for path in output.rglob('*'):
+ if path.is_file():
+ destination.write(path, PREFIXES[kind] + path.relative_to(output).as_posix())
+ if extra:
+ extra(destination)
+ return archive
+
+ def test_all_six_payloads_and_source_are_verified_in_both_containers(self):
+ for kind in PREFIXES:
+ with self.subTest(kind=kind), tempfile.TemporaryDirectory() as directory:
+ report = verify(self.build(Path(directory), kind), kind)
+ self.assertEqual(len(report['platforms']), 6)
+ self.assertEqual(report['verified_source_entries'], [PREFIXES[kind] + SOURCE])
+
+ def test_missing_source_is_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ archive = self.build(Path(directory), 'vsix', lambda output: (output / SOURCE).unlink())
+ with self.assertRaisesRegex(ValueError, 'missing or unexpected'):
+ verify(archive, 'vsix')
+
+ def test_notice_mutation_is_rejected(self):
+ def change(output):
+ next(output.rglob('*.NOTICE.json')).write_bytes(b'{}')
+ with tempfile.TemporaryDirectory() as directory:
+ with self.assertRaisesRegex(ValueError, 'identity mismatch'):
+ verify(self.build(Path(directory), 'intellij', change), 'intellij')
+
+ def test_manifest_cannot_drop_source_role(self):
+ def change(output):
+ path = next((output / 'linux-arm64').glob('*.distribution.json'))
+ manifest = json.loads(path.read_bytes())
+ manifest['files'].pop(manifest['corresponding_source'])
+ manifest['corresponding_source'] = None
+ path.write_text(json.dumps(manifest), encoding='utf-8')
+ with tempfile.TemporaryDirectory() as directory:
+ with self.assertRaisesRegex(ValueError, 'required distribution legal/source role'):
+ verify(self.build(Path(directory), 'vsix', change), 'vsix')
+
+ def test_unexpected_payload_file_is_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ archive = self.build(Path(directory), 'vsix', extra=lambda z: z.writestr('extension/bin/linux-x64/extra', b'unknown'))
+ with self.assertRaisesRegex(ValueError, 'missing or unexpected'):
+ verify(archive, 'vsix')
+
+ def test_unsafe_paths_are_rejected_even_outside_payload(self):
+ for filename in ['../escape', '/absolute', 'extension/../escape', 'extension//alias', 'extension\\escape']:
+ with self.subTest(filename=filename), tempfile.TemporaryDirectory() as directory:
+ archive = self.build(Path(directory), 'vsix', extra=lambda z: z.writestr(filename, b'bad'))
+ with self.assertRaisesRegex(ValueError, 'unsafe archive path'):
+ verify(archive, 'vsix')
+
+ def test_duplicate_member_is_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ with warnings.catch_warnings():
+ warnings.simplefilter('ignore', UserWarning)
+ archive = self.build(Path(directory), 'vsix', extra=lambda z: z.writestr(PREFIXES['vsix'] + SOURCE, b'bad'))
+ with self.assertRaisesRegex(ValueError, 'duplicate archive member'):
+ verify(archive, 'vsix')
+
+ def test_only_exact_source_path_has_a_larger_inventory_bound(self):
+ prefix = PREFIXES['vsix']
+ for filename, accepted in [(prefix + SOURCE, True), ('extension/other.tar.gz', False), (prefix + SOURCE.replace('linux-arm64', 'linux-x64'), False)]:
+ with self.subTest(filename=filename):
+ data = io.BytesIO()
+ with zipfile.ZipFile(data, 'w') as archive:
+ archive.writestr(filename, b'12345')
+ data.seek(0)
+ with zipfile.ZipFile(data) as archive, patch('check_lsp_plugin_zip.MAX_ENTRY', 4):
+ if accepted:
+ self.assertIn(filename, inventory(archive, prefix))
+ else:
+ with self.assertRaisesRegex(ValueError, 'size limit'):
+ inventory(archive, prefix)
+
+ def test_altered_source_binding_is_rejected_even_with_updated_file_hash(self):
+ def change(output):
+ import hashlib
+ manifest_path = next((output / 'linux-arm64').glob('*.distribution.json'))
+ manifest = json.loads(manifest_path.read_bytes())
+ binding_path = output / 'linux-arm64' / manifest['source_binding']
+ binding = json.loads(binding_path.read_bytes())
+ binding['binary']['file'] = 'wrong-executable'
+ data = json.dumps(binding).encode('utf-8')
+ binding_path.write_bytes(data)
+ manifest['files'][manifest['source_binding']] = {'bytes': len(data), 'sha256': hashlib.sha256(data).hexdigest()}
+ manifest_path.write_text(json.dumps(manifest), encoding='utf-8')
+ with tempfile.TemporaryDirectory() as directory:
+ with self.assertRaisesRegex(ValueError, 'corresponding-source binding mismatch'):
+ verify(self.build(Path(directory), 'intellij', change), 'intellij')
+
+ def test_symlink_is_rejected(self):
+ def extra(archive):
+ item = zipfile.ZipInfo('extension/link')
+ item.create_system = 3
+ item.external_attr = (stat.S_IFLNK | 0o777) << 16
+ archive.writestr(item, b'target')
+ with tempfile.TemporaryDirectory() as directory:
+ with self.assertRaisesRegex(ValueError, 'archive symlink'):
+ verify(self.build(Path(directory), 'vsix', extra=extra), 'vsix')
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/ci/test_lsp_gnullvm_notices.py b/ci/test_lsp_gnullvm_notices.py
new file mode 100644
index 0000000..25400b6
--- /dev/null
+++ b/ci/test_lsp_gnullvm_notices.py
@@ -0,0 +1,117 @@
+"""Регрессионные проверки source-backed Windows runtime notices."""
+
+import copy
+import hashlib
+import io
+import json
+from pathlib import Path
+import sys
+import tempfile
+import unittest
+from unittest.mock import patch
+import urllib.error
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
+from check_lsp_gnullvm import machine, retained_objects, sdk_inputs
+from lsp_gnullvm_notices import augment, catalogue, original, plain_notice, verify_sources
+
+
+class WindowsRuntimeNotices(unittest.TestCase):
+ def fixture(self, data=b'/* Copyright Example. Permission to redistribute. */\nint x;\n'):
+ url = 'https://raw.githubusercontent.com/mingw-w64/mingw-w64/0d6dfbc348dfad714761c0a7151615767f96bcb5/example.c'
+ item = {'path': 'example.c', 'source': url, 'sha256': hashlib.sha256(data).hexdigest(), 'source_notices': ['/* Copyright Example. Permission to redistribute. */']}
+ return {'source_files': [item], 'original_documents': []}, lambda _: data
+
+ def test_transient_transport_failure_is_retried(self):
+ url = 'https://raw.githubusercontent.com/mingw-w64/mingw-w64/0d6dfbc348dfad714761c0a7151615767f96bcb5/example.c'
+ with patch('lsp_gnullvm_notices.urllib.request.urlopen', side_effect=[urllib.error.URLError('TLS timeout'), io.BytesIO(b'original source')]) as request:
+ self.assertEqual(original(url), b'original source')
+ self.assertEqual(request.call_count, 2)
+
+ def test_http_access_denial_is_not_retried(self):
+ url = 'https://raw.githubusercontent.com/mingw-w64/mingw-w64/0d6dfbc348dfad714761c0a7151615767f96bcb5/example.c'
+ with patch('lsp_gnullvm_notices.urllib.request.urlopen', side_effect=urllib.error.HTTPError(url, 403, 'Forbidden', None, None)) as request:
+ with self.assertRaises(urllib.error.HTTPError):
+ original(url)
+ self.assertEqual(request.call_count, 1)
+
+ def test_exact_source_notice(self):
+ catalog, read = self.fixture()
+ verify_sources(catalog, read)
+
+ def test_modified_source_bytes_rejected(self):
+ catalog, _ = self.fixture()
+ with self.assertRaisesRegex(ValueError, 'bytes differ'):
+ verify_sources(catalog, lambda _: b'changed source')
+
+ def test_missing_copyright_rejected(self):
+ catalog, read = self.fixture()
+ catalog['source_files'][0]['source_notices'] = []
+ with self.assertRaisesRegex(ValueError, 'notices differ'):
+ verify_sources(catalog, read)
+
+ def test_unknown_unlicensed_source_rejected(self):
+ catalog, read = self.fixture(b'int x;\n')
+ catalog['source_files'][0]['source_notices'] = []
+ with self.assertRaisesRegex(ValueError, 'notices differ'):
+ verify_sources(catalog, read)
+
+ def test_original_legal_document_must_match_bytes(self):
+ data = b'Original permission and copyright.\n'
+ catalog = {'source_files': [], 'original_documents': [{'source': 'document', 'sha256': hashlib.sha256(data).hexdigest(), 'text': 'Changed permission.\n'}]}
+ with self.assertRaisesRegex(ValueError, 'document differs'):
+ verify_sources(catalog, lambda _: data)
+
+ def test_sdk_identity_is_not_an_allowlist_fallback(self):
+ root = Path(__file__).resolve().parents[1]
+ catalog, _ = catalogue(root)
+ catalog['sdk_archive_sha256'] = '0' * 64
+ with tempfile.TemporaryDirectory() as directory:
+ temporary = Path(directory)
+ (temporary / 'ci').mkdir()
+ (temporary / 'ci/lsp-gnullvm-runtime-catalog.json').write_text(json.dumps(catalog), encoding='utf-8')
+ with self.assertRaisesRegex(ValueError, 'unreviewed Windows runtime SDK'):
+ catalogue(temporary)
+
+ def test_plain_notice_keeps_every_original_document(self):
+ catalog, _ = catalogue(Path(__file__).resolve().parents[1])
+ result = plain_notice(catalog)
+ for document in catalog['original_documents']:
+ self.assertIn(document['text'].encode('utf-8'), result)
+ self.assertIn(b'2009-2014 by the contributors', result)
+ self.assertIn(b'1997, 1998, 1999, 2000, 2001 by Lucent', result)
+
+ def test_unknown_target_and_double_augmentation_rejected(self):
+ catalog, digest = catalogue(Path(__file__).resolve().parents[1])
+ bundle = {'schema_version': 1, 'coverage': 'Cargo/std.'}
+ with self.assertRaisesRegex(ValueError, 'preparation state'):
+ augment(bundle, catalog, 'x86_64-pc-windows-msvc', digest)
+ already = augment(copy.deepcopy(bundle), catalog, 'x86_64-pc-windows-gnullvm', digest)
+ with self.assertRaisesRegex(ValueError, 'preparation state'):
+ augment(already, catalog, 'x86_64-pc-windows-gnullvm', digest)
+
+ def test_unknown_map_input_is_not_silently_dropped(self):
+ sample = b'00001000 00001000 4 new-runtime.o:(.text)\n00002000 00002000 4 own.rcgu.o:(.text)\n'
+ self.assertEqual(retained_objects(sample), {'new-runtime.o'})
+
+ def test_duplicate_and_foreign_sdk_input_rejected(self):
+ item = {'path': 'link/llvm-mingw-20261020-ucrt-x86_64/x86_64-w64-mingw32/lib/libunwind.a', 'sha256': 'a' * 64, 'size': 12}
+ with self.assertRaisesRegex(ValueError, 'duplicate native SDK'):
+ sdk_inputs([item, item])
+ with self.assertRaisesRegex(ValueError, 'outside selected'):
+ sdk_inputs([{**item, 'path': 'unexpected/libunwind.a'}])
+
+ def test_actual_pe_machine_is_read(self):
+ data = bytearray(70)
+ data[:2] = b'MZ'
+ data[60:64] = (64).to_bytes(4, 'little')
+ data[64:68] = b'PE\0\0'
+ data[68:70] = (0xAA64).to_bytes(2, 'little')
+ self.assertEqual(machine(bytes(data)), 0xAA64)
+ data[60:64] = (4096).to_bytes(4, 'little')
+ with self.assertRaisesRegex(ValueError, 'invalid Windows LSP PE header'):
+ machine(bytes(data))
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/ci/test_lsp_license_supplement.py b/ci/test_lsp_license_supplement.py
new file mode 100644
index 0000000..ce8321b
--- /dev/null
+++ b/ci/test_lsp_license_supplement.py
@@ -0,0 +1,149 @@
+"""Проверить fail-closed supplement без изменения исходного tool report."""
+
+import copy
+import importlib.util
+import json
+from pathlib import Path
+import tempfile
+import unittest
+
+SPEC = importlib.util.spec_from_file_location('supplement', Path(__file__).resolve().parents[1] / 'scripts/supplement_lsp_license.py')
+SUPPLEMENT = importlib.util.module_from_spec(SPEC)
+SPEC.loader.exec_module(SUPPLEMENT)
+
+
+class SupplementTests(unittest.TestCase):
+ def setUp(self):
+ self.temp = tempfile.TemporaryDirectory()
+ self.addCleanup(self.temp.cleanup)
+ self.root = Path(self.temp.name)
+ (self.root / '.cargo_vcs_info.json').write_text(json.dumps({'git': {'sha1': SUPPLEMENT.VCS}, 'path_in_vcs': 'valuable'}))
+ self.package = {'id': SUPPLEMENT.PACKAGE, 'name': 'valuable', 'version': '0.1.1', 'license': 'MIT', 'source': 'registry+https://github.com/rust-lang/crates.io-index', 'manifest_path': str(self.root / 'Cargo.toml'), 'dependencies': []}
+ incoming = {'name': 'valuable', 'optional': True, 'target': 'cfg(tracing_unstable)'}
+ self.parent = {'id': 'parent', 'dependencies': [copy.deepcopy(incoming), copy.deepcopy(incoming)]}
+ self.metadata = {'packages': [self.parent, self.package]}
+ self.report = {'crates': [{'package': self.parent}], 'licenses': [{'used_by': [{'crate': self.parent}]}]}
+ self.lock = ('[[package]]\nname="valuable"\nversion="0.1.1"\nchecksum="' + SUPPLEMENT.CHECKSUM + '"\n').encode()
+ self.license = Path(__file__).resolve().parent / 'licenses/valuable-0.1.1.LICENSE'
+
+ def apply(self):
+ return SUPPLEMENT.supplement(self.metadata, self.report, self.lock, self.license)
+
+ def test_exact_source_and_original_preserved(self):
+ before = copy.deepcopy(self.report)
+ combined, provenance = self.apply()
+ self.assertEqual(self.report, before)
+ self.assertEqual(len(combined['crates']), 2)
+ self.assertEqual(combined['licenses'][-1]['text'], self.license.read_text())
+ self.assertEqual(provenance[0]['license_sha256'], SUPPLEMENT.LICENSE_SHA)
+ self.assertEqual(provenance[0]['vcs_revision'], SUPPLEMENT.VCS)
+
+ def test_complete_report_requires_no_supplement(self):
+ combined, _ = self.apply()
+ result, provenance = SUPPLEMENT.supplement(self.metadata, combined, self.lock, self.license)
+ self.assertIs(result, combined)
+ self.assertEqual(provenance, [])
+
+ def test_unknown_missing_package_rejected(self):
+ self.metadata['packages'].append({'id': 'unknown'})
+ with self.assertRaisesRegex(ValueError, 'coverage'):
+ self.apply()
+
+ def test_extra_reported_package_rejected(self):
+ self.report['crates'].append({'package': {'id': 'unknown'}})
+ with self.assertRaisesRegex(ValueError, 'coverage'):
+ self.apply()
+
+ def test_duplicate_metadata_rejected(self):
+ self.metadata['packages'].append(self.package)
+ with self.assertRaisesRegex(ValueError, 'duplicate'):
+ self.apply()
+
+ def test_wrong_package_license_rejected(self):
+ self.package['license'] = 'Apache-2.0'
+ with self.assertRaisesRegex(ValueError, 'source package'):
+ self.apply()
+
+ def test_wrong_lock_checksum_rejected(self):
+ self.lock = self.lock.replace(SUPPLEMENT.CHECKSUM.encode(), b'0' * 64)
+ with self.assertRaisesRegex(ValueError, 'checksum'):
+ self.apply()
+
+ def test_active_dependency_rejected(self):
+ self.parent['dependencies'][0]['target'] = None
+ with self.assertRaisesRegex(ValueError, 'activation'):
+ self.apply()
+
+ def test_wrong_vcs_revision_rejected(self):
+ (self.root / '.cargo_vcs_info.json').write_text('{"git":{"sha1":"changed"},"path_in_vcs":"valuable"}')
+ with self.assertRaisesRegex(ValueError, 'VCS'):
+ self.apply()
+
+ def test_changed_license_rejected(self):
+ self.license = self.root / 'LICENSE'
+ self.license.write_text('MIT')
+ with self.assertRaisesRegex(ValueError, 'license changed'):
+ self.apply()
+
+
+class FallbackTests(unittest.TestCase):
+ def setUp(self):
+ self.temp = tempfile.TemporaryDirectory()
+ self.addCleanup(self.temp.cleanup)
+ self.root = Path(self.temp.name)
+ self.catalog_path = self.root / 'catalog.json'
+ catalog = json.loads((Path(__file__).resolve().parent / 'licenses/lsp-source-supplements.json').read_text())
+ self.review = next(item for item in catalog['packages'] if item['name'] == 'windows-link')
+ self.catalog = {'packages': [self.review]}
+ (self.root / '.cargo_vcs_info.json').write_text(json.dumps(self.review['vcs']))
+ (self.root / 'license-mit').write_bytes(self.review['license_text'].encode())
+ self.package = {'id': 'windows-link', 'name': 'windows-link', 'version': self.review['version'], 'license': self.review['declared_license'], 'source': 'registry+https://github.com/rust-lang/crates.io-index', 'manifest_path': str(self.root / 'Cargo.toml')}
+ self.metadata = {'packages': [self.package]}
+ self.report = {'licenses': [{'id': 'MIT', 'source_path': None, 'text': 'generated fallback', 'used_by': [{'crate': self.package}]}]}
+ self.lock = ('[[package]]\nname="windows-link"\nversion="' + self.review['version'] + '"\nchecksum="' + self.review['crate_checksum'] + '"\n').encode()
+
+ def apply(self):
+ self.catalog_path.write_text(json.dumps(self.catalog))
+ return SUPPLEMENT.supplement_fallbacks(self.metadata, self.report, self.lock, self.catalog_path)
+
+ def test_original_report_preserved_and_real_source_used(self):
+ before = copy.deepcopy(self.report)
+ result, provenance = self.apply()
+ self.assertEqual(self.report, before)
+ self.assertEqual(result['licenses'][0]['text'], self.review['license_text'])
+ self.assertEqual(provenance[0]['crate_checksum'], self.review['crate_checksum'])
+ self.assertNotIn('license_text', provenance[0])
+
+ def test_unknown_package_rejected(self):
+ self.package['version'] = '999'
+ with self.assertRaisesRegex(ValueError, 'identity'):
+ self.apply()
+
+ def test_wrong_checksum_rejected(self):
+ self.lock = self.lock.replace(self.review['crate_checksum'].encode(), b'0' * 64)
+ with self.assertRaisesRegex(ValueError, 'checksum'):
+ self.apply()
+
+ def test_wrong_vcs_rejected(self):
+ (self.root / '.cargo_vcs_info.json').write_text('{}')
+ with self.assertRaisesRegex(ValueError, 'VCS'):
+ self.apply()
+
+ def test_changed_published_license_rejected(self):
+ (self.root / 'license-mit').write_text('changed')
+ with self.assertRaisesRegex(ValueError, 'differs'):
+ self.apply()
+
+ def test_changed_catalog_text_rejected(self):
+ self.review['license_text'] = 'MIT'
+ with self.assertRaisesRegex(ValueError, 'license changed'):
+ self.apply()
+
+ def test_non_mit_fallback_rejected(self):
+ self.report['licenses'][0]['id'] = 'Apache-2.0'
+ with self.assertRaisesRegex(ValueError, 'unreviewed license'):
+ self.apply()
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/ci/test_lsp_macos_notices.py b/ci/test_lsp_macos_notices.py
new file mode 100644
index 0000000..dcf6267
--- /dev/null
+++ b/ci/test_lsp_macos_notices.py
@@ -0,0 +1,122 @@
+"""Проверить Mach-O CPU и структурный разбор Darwin linker map."""
+
+from pathlib import Path
+import sys
+import tempfile
+import unittest
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
+from check_lsp_macos import cpu, dynamic_libraries, object_inputs
+
+
+class DarwinNoticeInputs(unittest.TestCase):
+ def roots(self, directory):
+ root = Path(directory)
+ return root / 'cargo', root / 'rustlib', root / 'sdk'
+
+ def map_bytes(self, cargo, sdk, extra=b''):
+ return (b'# Object files:\n[ 0] linker synthesized\n[ 1] ' + str(cargo / 'main.rcgu.o').encode() + b'\n[ 2] ' + str(sdk / 'usr/lib/libSystem.tbd').encode() + b'\n# Sections:\n' + extra)
+
+ def test_raw_literal_data_does_not_require_whole_map_utf8(self):
+ with tempfile.TemporaryDirectory() as directory:
+ cargo, rustlib, sdk = self.roots(directory)
+ records = object_inputs(self.map_bytes(cargo, sdk, b'\xff\xfe\x80'), cargo, rustlib, sdk)
+ self.assertEqual([item['kind'] for item in records], ['linker-synthesized', 'rust-object', 'system-stub'])
+
+ def test_public_stub_name_survives_file_and_sdk_aliases(self):
+ with tempfile.TemporaryDirectory() as directory:
+ cargo, rustlib, sdk = self.roots(directory)
+ library = sdk / 'usr/lib'
+ library.mkdir(parents=True)
+ (library / 'libSystem.B.tbd').write_text('stub', encoding='utf-8')
+ (library / 'libSystem.tbd').symlink_to('libSystem.B.tbd')
+ alias = Path(directory) / 'selected-sdk'
+ alias.symlink_to(sdk, target_is_directory=True)
+ result = object_inputs(self.map_bytes(cargo, sdk), cargo, rustlib, alias)
+ self.assertEqual(result[-1], {'kind': 'system-stub', 'path': 'libSystem.tbd', 'resolved_path': 'libSystem.B.tbd'})
+
+ def test_known_stub_symlink_cannot_escape_sdk(self):
+ with tempfile.TemporaryDirectory() as directory:
+ cargo, rustlib, sdk = self.roots(directory)
+ library = sdk / 'usr/lib'
+ library.mkdir(parents=True)
+ outside = Path(directory) / 'outside.tbd'
+ outside.write_text('stub', encoding='utf-8')
+ (library / 'libSystem.tbd').symlink_to(outside)
+ with self.assertRaisesRegex(ValueError, 'escapes selected SDK'):
+ object_inputs(self.map_bytes(cargo, sdk), cargo, rustlib, sdk)
+
+ def test_unknown_alias_to_known_stub_is_still_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ cargo, rustlib, sdk = self.roots(directory)
+ library = sdk / 'usr/lib'
+ library.mkdir(parents=True)
+ (library / 'libSystem.tbd').write_text('stub', encoding='utf-8')
+ (library / 'unknown.tbd').symlink_to('libSystem.tbd')
+ data = self.map_bytes(cargo, sdk).replace(b'libSystem.tbd', b'unknown.tbd')
+ with self.assertRaisesRegex(ValueError, 'unreviewed Darwin SDK stub'):
+ object_inputs(data, cargo, rustlib, sdk)
+
+ def test_external_static_object_is_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ cargo, rustlib, sdk = self.roots(directory)
+ data = self.map_bytes(cargo, sdk).replace(b'main.rcgu.o', b'foreign-native.o')
+ with self.assertRaisesRegex(ValueError, 'external static object'):
+ object_inputs(data, cargo, rustlib, sdk)
+
+ def test_duplicate_object_index_is_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ cargo, rustlib, sdk = self.roots(directory)
+ data = self.map_bytes(cargo, sdk).replace(b'[ 2]', b'[ 1]')
+ with self.assertRaisesRegex(ValueError, 'invalid Darwin map object row'):
+ object_inputs(data, cargo, rustlib, sdk)
+
+ def test_unreviewed_sdk_stub_is_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ cargo, rustlib, sdk = self.roots(directory)
+ data = self.map_bytes(cargo, sdk).replace(b'libSystem.tbd', b'libNewRuntime.tbd')
+ with self.assertRaisesRegex(ValueError, 'unreviewed Darwin SDK stub'):
+ object_inputs(data, cargo, rustlib, sdk)
+
+ def test_rust_named_object_outside_approved_roots_is_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ cargo, rustlib, sdk = self.roots(directory)
+ data = self.map_bytes(cargo, sdk).replace(str(cargo / 'main.rcgu.o').encode(), str(Path(directory) / 'elsewhere/main.rcgu.o').encode())
+ with self.assertRaisesRegex(ValueError, 'outside reviewed Cargo/sysroot'):
+ object_inputs(data, cargo, rustlib, sdk)
+
+ def test_non_rust_member_in_rlib_is_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ cargo, rustlib, sdk = self.roots(directory)
+ data = self.map_bytes(cargo, sdk).replace(b'main.rcgu.o', b'libfake.rlib(native.o)')
+ with self.assertRaisesRegex(ValueError, 'non-Rust native member'):
+ object_inputs(data, cargo, rustlib, sdk)
+
+ def test_only_system_dynamic_library_is_accepted(self):
+ data = b'executable:\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1356.0.0)\n'
+ self.assertEqual(dynamic_libraries(data), ['/usr/lib/libSystem.B.dylib'])
+
+ def test_unused_iconv_dynamic_dependency_is_rejected(self):
+ data = b'executable:\n\t/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)\n\t/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1356.0.0)\n'
+ with self.assertRaisesRegex(ValueError, 'unreviewed or unused'):
+ dynamic_libraries(data)
+
+ def test_malformed_dynamic_report_is_not_silently_filtered(self):
+ with self.assertRaisesRegex(ValueError, 'invalid Darwin dynamic-library row'):
+ dynamic_libraries(b'executable:\nunknown input\n')
+
+ def test_macho_cpu_and_executable_type(self):
+ data = bytearray(32)
+ data[:4] = b'\xcf\xfa\xed\xfe'
+ data[4:8] = (0x0100000C).to_bytes(4, 'little')
+ data[12:16] = (2).to_bytes(4, 'little')
+ self.assertEqual(cpu(bytes(data)), 0x0100000C)
+ data[12:16] = (6).to_bytes(4, 'little')
+ with self.assertRaisesRegex(ValueError, 'not an executable'):
+ cpu(bytes(data))
+ with self.assertRaisesRegex(ValueError, 'thin little-endian Mach-O'):
+ cpu(b'not a Mach-O')
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/ci/test_lsp_notice_overlay.py b/ci/test_lsp_notice_overlay.py
new file mode 100644
index 0000000..0fddfc6
--- /dev/null
+++ b/ci/test_lsp_notice_overlay.py
@@ -0,0 +1,68 @@
+"""Проверить legacy source и уже встроенный hook без изменения поведения."""
+
+from pathlib import Path
+import sys
+import tempfile
+import unittest
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
+from apply_lsp_notice_overlay import DECLARATION, ENTRY, USE, apply
+
+
+class LspNoticeOverlay(unittest.TestCase):
+ def test_legacy_source_gets_only_existing_retention_lines(self):
+ original = b'use example;\n#[tokio::main]\nasync fn main() {\n original_protocol();\n}\n'
+ with tempfile.TemporaryDirectory() as directory:
+ path = Path(directory) / 'main.rs'
+ path.write_bytes(original)
+ result = apply(path)
+ expected = DECLARATION + b'\n\n' + original.replace(ENTRY, ENTRY + b'\n ' + USE, 1)
+ self.assertEqual(path.read_bytes(), expected)
+ self.assertEqual(result['notice_overlay'], 'added')
+
+ def test_existing_hook_is_byte_exact_and_repeatable(self):
+ original = DECLARATION + b'\n\n#[tokio::main]\nasync fn main() {\n ' + USE + b'\n original_protocol();\n}\n'
+ with tempfile.TemporaryDirectory() as directory:
+ path = Path(directory) / 'main.rs'
+ path.write_bytes(original)
+ first = apply(path)
+ second = apply(path)
+ self.assertEqual(path.read_bytes(), original)
+ self.assertEqual(first, second)
+ self.assertEqual(first['original_main_sha256'], first['packaged_main_sha256'])
+
+ def test_partial_hook_is_rejected_without_source_changes(self):
+ for original in [DECLARATION + b'\nasync fn main() {}\n', b'async fn main() { ' + USE + b' }\n']:
+ with self.subTest(source=original), tempfile.TemporaryDirectory() as directory:
+ path = Path(directory) / 'main.rs'
+ path.write_bytes(original)
+ with self.assertRaisesRegex(ValueError, 'partial or duplicate'):
+ apply(path)
+ self.assertEqual(path.read_bytes(), original)
+
+ def test_duplicate_entry_is_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ path = Path(directory) / 'main.rs'
+ path.write_bytes(b'async fn main() {}\nasync fn main() {}\n')
+ with self.assertRaisesRegex(ValueError, 'entry requires source review'):
+ apply(path)
+
+ def test_unknown_hook_representation_is_not_blindly_duplicated(self):
+ original = b'include!("native_notices.rs");\nasync fn main() {}\n'
+ with tempfile.TemporaryDirectory() as directory:
+ path = Path(directory) / 'main.rs'
+ path.write_bytes(original)
+ with self.assertRaisesRegex(ValueError, 'unrecognized'):
+ apply(path)
+ self.assertEqual(path.read_bytes(), original)
+
+ def test_hook_outside_entry_is_rejected(self):
+ with tempfile.TemporaryDirectory() as directory:
+ path = Path(directory) / 'main.rs'
+ path.write_bytes(DECLARATION + b'\nfn helper() { ' + USE + b' }\nasync fn main() {}\n')
+ with self.assertRaisesRegex(ValueError, 'location requires review'):
+ apply(path)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/ci/test_lsp_relink.py b/ci/test_lsp_relink.py
new file mode 100644
index 0000000..fe2c7ba
--- /dev/null
+++ b/ci/test_lsp_relink.py
@@ -0,0 +1,59 @@
+"""Проверить ELF entry proof на данных, не исполняя fixtures."""
+
+import gzip
+import importlib.util
+from pathlib import Path
+import struct
+import sys
+import unittest
+
+ROOT = Path(__file__).resolve().parents[1] / 'scripts'
+for name in ('check_embedded_notices', 'check_lsp_relink'):
+ spec = importlib.util.spec_from_file_location(name, ROOT / (name + '.py'))
+ module = importlib.util.module_from_spec(spec)
+ sys.modules[name] = module
+ spec.loader.exec_module(module)
+PROOF = sys.modules['check_lsp_relink']
+NOTICE = b'{"schema_version":1}'
+
+
+def elf(instruction):
+ payload = gzip.compress(NOTICE, mtime=0)
+ resource = b'KTAV-NOTICES-GZIP-v1\0' + len(payload).to_bytes(8, 'little') + payload
+ data = bytearray(128 + 4 + len(resource))
+ data[:7] = b'\x7fELF\x02\x01\x01'
+ struct.pack_into('pom', 'jar')
+ with self.revised_marker(name, text), self.assertRaisesRegex(ValueError, 'metadata-only'):
+ self.verify()
+
+ def test_marker_delegate_change_rejected_even_after_hash_review(self):
+ name = 'org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin'
+ text = self.item(name)['pom_text'].replace('kotlin-gradle-plugin', 'other-plugin')
+ with self.revised_marker(name, text), self.assertRaisesRegex(ValueError, 'implementation changed'):
+ self.verify()
+
+ def test_sdk_archive_change_rejected(self):
+ next(item for item in self.inventory if item['file'].endswith('.tar.gz'))['sha256'] = '0' * 64
+ with self.assertRaisesRegex(ValueError, 'SDK archive identity'):
+ self.verify()
+
+ def test_missing_sdk_notice_rejected(self):
+ self.row('idea:ideaIC')['directory_notices'].pop()
+ with self.assertRaisesRegex(ValueError, 'notice inventory'):
+ self.verify()
+
+ def test_changed_actual_sdk_notice_rejected(self):
+ self.row('idea:ideaIC')['directory_notices'][0]['text'] += 'changed'
+ with self.assertRaisesRegex(ValueError, 'actual SDK license text'):
+ self.verify()
+
+ def test_sdk_runtime_scope_rejected(self):
+ self.row('idea:ideaIC')['configurations'].append('::runtimeClasspath')
+ with self.assertRaisesRegex(ValueError, 'unreviewed configuration'):
+ self.verify()
+
+ def test_missing_distribution_evidence_rejected(self):
+ self.distribution = {}
+ with self.assertRaisesRegex(ValueError, 'distribution evidence'):
+ self.verify()
+
+ def test_global_gpl_allowance_rejected(self):
+ self.policy['allowedLicenses'].append({'moduleLicense': 'GNU.*'})
+ with self.assertRaisesRegex(ValueError, 'global GPL'):
+ self.verify()
+
+ def test_unknown_metadata_allowance_rejected(self):
+ self.policy['allowedLicenses'].append({'moduleName': '.*'})
+ with self.assertRaisesRegex(ValueError, 'unbound'):
+ self.verify()
+
+ def test_duplicate_binary_rejected(self):
+ self.inventory.append(copy.deepcopy(self.row('com.jetbrains:jbr-api')))
+ with self.assertRaisesRegex(ValueError, 'missing or duplicated'):
+ self.verify()
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/ci/test_zig_link_capture.py b/ci/test_zig_link_capture.py
new file mode 100644
index 0000000..628aa93
--- /dev/null
+++ b/ci/test_zig_link_capture.py
@@ -0,0 +1,55 @@
+"""Проверить прозрачность audit wrapper и передачу ошибок."""
+
+import os
+from pathlib import Path
+import subprocess
+import tempfile
+import unittest
+
+
+class ZigLinkCaptureTest(unittest.TestCase):
+ def setUp(self):
+ self.directory = tempfile.TemporaryDirectory()
+ self.addCleanup(self.directory.cleanup)
+ self.root = Path(self.directory.name)
+ self.real = self.root / 'actual-zig'
+ self.real.write_text('#!/usr/bin/env bash\nprintf "%s\\n" "$@"\nprintf diagnostic >&2\nexit "${STATUS:-0}"\n')
+ self.real.chmod(0o755)
+ self.output = self.root / 'link.map'
+ self.wrapper = Path(__file__).resolve().parents[1] / 'scripts/capture-zig-link.sh'
+
+ def invoke(self, *args, status=0):
+ return subprocess.run(
+ ['bash', str(self.wrapper), *args],
+ env={**os.environ, 'KTAV_REAL_ZIG': str(self.real), 'KTAV_LINK_MAP': str(self.output), 'STATUS': str(status)},
+ capture_output=True,
+ )
+
+ def test_plain_invocation_does_not_create_map(self):
+ result = self.invoke('version')
+ self.assertEqual(result.returncode, 0)
+ self.assertEqual(result.stdout, b'version\n')
+ self.assertEqual(result.stderr, b'diagnostic')
+ self.assertFalse(self.output.exists())
+
+ def test_map_preserves_arguments_and_streams(self):
+ result = self.invoke('cc', '-Wl,--print-map', 'path with spaces.o')
+ self.assertEqual(result.returncode, 0)
+ self.assertEqual(result.stdout, b'cc\n-Wl,--print-map\npath with spaces.o\n')
+ self.assertEqual(self.output.read_bytes(), result.stdout)
+ self.assertEqual(result.stderr, b'diagnostic')
+
+ def test_failed_link_is_not_hidden_by_tee(self):
+ result = self.invoke('cc', '-Wl,--print-map', status=23)
+ self.assertEqual(result.returncode, 23)
+ self.assertEqual(self.output.read_bytes(), result.stdout)
+ self.assertEqual(result.stderr, b'diagnostic')
+
+ def test_failed_plain_command_is_preserved(self):
+ result = self.invoke('version', status=19)
+ self.assertEqual(result.returncode, 19)
+ self.assertFalse(self.output.exists())
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/deny.toml b/deny.toml
new file mode 100644
index 0000000..2629bec
--- /dev/null
+++ b/deny.toml
@@ -0,0 +1,13 @@
+[licenses]
+confidence-threshold = 0.8
+allow = [
+ "Apache-2.0",
+ "Apache-2.0 WITH LLVM-exception",
+ "BSD-2-Clause",
+ "BSD-3-Clause",
+ "BSL-1.0",
+ "ISC",
+ "MIT",
+ "Unicode-3.0",
+ "Zlib",
+]
diff --git a/docs/i18n/README.ru.md b/docs/i18n/README.ru.md
index 713bc07..c562d1b 100644
--- a/docs/i18n/README.ru.md
+++ b/docs/i18n/README.ru.md
@@ -157,7 +157,15 @@ require("lspconfig").ktav.setup({})
## Лицензия
-MIT OR Apache-2.0. См. [LICENSE-MIT](../../LICENSE-MIT) и [LICENSE-APACHE](../../LICENSE-APACHE).
+Собственный код Ktav распространяется под MIT OR Apache-2.0. См. [LICENSE-MIT](../../LICENSE-MIT) и [LICENSE-APACHE](../../LICENSE-APACHE). Сторонний код сохраняет собственные лицензии и уведомления; лицензия Ktav их не заменяет.
+
+### Нативные бинарники, уведомления и исходники
+
+Лицензионно проверяемый release pipeline поставляет каждый LSP executable вместе с `*.distribution.json`, читаемым `*.THIRD-PARTY-NOTICES.txt`, `*.NOTICE.json`, его сжатой копией, оригинальным отчётом Rust `*.COPYRIGHT-library.html`, `*.Cargo.lock` и обеими лицензиями Ktav. Рядом поставляются уведомления о runtime конкретной платформы. При дальнейшем распространении сохраняйте весь platform payload: копирование одного executable теряет обязательные материалы.
+
+GNU Linux ARM64 payload также содержит `ktav-lsp-source-aarch64-unknown-linux-gnu.tar.gz` и `*.source-binding.json`. Используемый startup code подпадает под LGPL-2.1-or-later без compiled-linking exception, имеющегося у проверенного x64 startup. Matching source archive содержит соответствующие исходники и материалы для повторной линковки; приложенный rebuild script позволяет пересобрать executable с изменённым startup source. Лицензия собственного кода Ktav от этого не меняется.
+
+Universal plugins содержат те же полные payloads: `bin//` в VS Code extension и `lib/bin//` в IntelliJ plugin. Обязательный ARM64 source archive добавляет около 94 МБ к каждому universal plugin. CI проверяет содержимое настоящих VSIX/IntelliJ ZIP, встроенные notice resources и source bindings, а не только staging directories. Эти проверки не заменяют задним числом исторические опубликованные assets.
## Другие реализации Ktav
diff --git a/docs/i18n/README.zh.md b/docs/i18n/README.zh.md
index 003de33..81ec463 100644
--- a/docs/i18n/README.zh.md
+++ b/docs/i18n/README.zh.md
@@ -145,7 +145,15 @@ require("lspconfig").ktav.setup({})
## 许可证
-MIT OR Apache-2.0。详见 [LICENSE-MIT](../../LICENSE-MIT) 和 [LICENSE-APACHE](../../LICENSE-APACHE)。
+Ktav 自有代码采用 MIT OR Apache-2.0。详见 [LICENSE-MIT](../../LICENSE-MIT) 和 [LICENSE-APACHE](../../LICENSE-APACHE)。随附第三方代码保留各自的许可证和声明;Ktav 的许可证不能替代这些条款。
+
+### 原生二进制文件、声明和源代码
+
+经过许可证检查的发布流水线将每个 LSP 可执行文件与 `*.distribution.json`、可读的 `*.THIRD-PARTY-NOTICES.txt`、`*.NOTICE.json` 及其压缩副本、原始 Rust `*.COPYRIGHT-library.html`、`*.Cargo.lock` 和两份 Ktav 许可证一同提供。平台运行时声明也随附其中。再次分发时必须保留完整的平台文件集;仅复制可执行文件会丢失必需材料。
+
+GNU Linux ARM64 文件集还包含 `ktav-lsp-source-aarch64-unknown-linux-gnu.tar.gz` 和 `*.source-binding.json`。其中保留的启动代码受 LGPL-2.1-or-later 约束,不具有已审查 x64 启动代码中的编译链接例外。匹配的源代码归档提供对应源代码和重新链接所需材料;可使用归档中的重建脚本,以修改后的启动源代码重新构建。这不会改变 Ktav 自有代码的许可证。
+
+通用插件包含同样完整的文件集:VS Code 扩展中的 `bin//`,以及 IntelliJ 插件中的 `lib/bin//`。必需的 ARM64 源代码归档使每个通用插件增加约 94 MB。CI 检查实际 VSIX/IntelliJ ZIP 的内容、可执行文件内嵌声明及源代码绑定,而不只是暂存目录。这些检查不会追溯替换历史已发布文件。
## 其他 Ktav 实现
diff --git a/intellij/build.gradle.kts b/intellij/build.gradle.kts
index f8da7ff..7fd4694 100644
--- a/intellij/build.gradle.kts
+++ b/intellij/build.gradle.kts
@@ -41,7 +41,6 @@ dependencies {
pluginVerifier()
zipSigner()
- instrumentationTools()
// Test framework for `BasePlatformTestCase` — required by the
// commenter-toggle / file-type assertions in `KtavPlatformTest`.
@@ -58,10 +57,7 @@ dependencies {
}
intellijPlatform {
- // LOCAL-ONLY (do not commit): skip bytecode instrumentation so the build
- // doesn't need `java-compiler-ant-tasks` from cache-redirector.jetbrains.com,
- // which this machine's network can't reach. Instrumentation only adds
- // runtime @NotNull assertions — no functional impact for a Kotlin plugin.
+ // Инструментация отключена; её зависимости не нужны.
instrumentCode = false
pluginConfiguration {
@@ -163,6 +159,17 @@ intellijPlatform {
}
}
+// Plugin добавляет compiler по умолчанию даже при отключённой инструментации.
+configurations.named("intellijPlatformJavaCompiler") {
+ withDependencies {
+ val platform = project.extensions.getByType(
+ org.jetbrains.intellij.platform.gradle.extensions.IntelliJPlatformExtension::class.java
+ )
+ check(!platform.instrumentCode.get()) { "Review compiler dependencies before enabling instrumentation" }
+ clear()
+ }
+}
+
kotlin {
jvmToolchain(17)
}
@@ -281,6 +288,24 @@ tasks.register("_repackageWithBinaries") {
}
}
+// Лицензии Ktav входят во все JAR проекта.
+tasks.withType().configureEach {
+ from(layout.projectDirectory.file("../LICENSE-MIT")) { into("META-INF") }
+ from(layout.projectDirectory.file("../LICENSE-APACHE")) { into("META-INF") }
+}
+
+val checkIntellijDistribution = tasks.register("checkIntellijDistribution") {
+ group = "verification"
+ dependsOn("_repackageWithBinaries")
+ doLast {
+ project.exec {
+ commandLine("python3", "-I", layout.projectDirectory.file("../ci/check-intellij-distribution.py").asFile,
+ layout.buildDirectory.dir("distributions").get().asFile, layout.projectDirectory.dir("..").asFile,
+ layout.buildDirectory.file("license-inventory/plugin-distribution.json").get().asFile)
+ }
+ }
+}
+
// Make buildPlugin task run the repackaging automatically.
// verifyPlugin and publishPlugin read the same ZIP path our
// `_repackageWithBinaries` rewrites — declare an explicit dependency so
@@ -290,10 +315,10 @@ tasks.named("buildPlugin") {
finalizedBy("_repackageWithBinaries")
}
tasks.named("verifyPlugin") {
- dependsOn("_repackageWithBinaries")
+ dependsOn(checkIntellijDistribution)
}
tasks.named("publishPlugin") {
- dependsOn("_repackageWithBinaries")
+ dependsOn(checkIntellijDistribution)
}
tasks {
diff --git a/lsp/build.rs b/lsp/build.rs
new file mode 100644
index 0000000..f2f5b08
--- /dev/null
+++ b/lsp/build.rs
@@ -0,0 +1,38 @@
+use std::{env, fs, io::Read, path::PathBuf};
+
+fn main() {
+ println!("cargo:rerun-if-env-changed=KTAV_NATIVE_NOTICES");
+ println!("cargo:rerun-if-changed=build.rs");
+ let out = PathBuf::from(env::var_os("OUT_DIR").expect("Cargo must provide OUT_DIR"));
+ let generated = out.join("native_notices.rs");
+ let Some(path) = env::var_os("KTAV_NATIVE_NOTICES") else {
+ fs::write(generated, "static KTAV_NATIVE_NOTICES: &[u8] = &[];\n")
+ .expect("write development notice stub");
+ return;
+ };
+ let path = PathBuf::from(path);
+ println!("cargo:rerun-if-changed={}", path.display());
+ let mut payload = Vec::new();
+ fs::File::open(path)
+ .expect("open prepared LSP notice gzip")
+ .take(4 * 1024 * 1024 + 1)
+ .read_to_end(&mut payload)
+ .expect("read prepared LSP notice gzip");
+ assert!(
+ payload.starts_with(&[0x1f, 0x8b]) && payload.len() <= 4 * 1024 * 1024,
+ "LSP notice payload must be a bounded gzip"
+ );
+ let length = u64::try_from(payload.len()).expect("LSP notice length must fit u64");
+ let mut resource = b"KTAV-NOTICES-GZIP-v1\0".to_vec();
+ resource.extend_from_slice(&length.to_le_bytes());
+ resource.extend_from_slice(&payload);
+ fs::write(out.join("native_notices.bin"), resource).expect("write LSP notice resource");
+ fs::write(
+ generated,
+ r#"#[used]
+static KTAV_NATIVE_NOTICES: &[u8] =
+ include_bytes!(concat!(env!("OUT_DIR"), "/native_notices.bin"));
+"#,
+ )
+ .expect("write LSP notice declaration");
+}
diff --git a/lsp/src/main.rs b/lsp/src/main.rs
index 243abd5..00229ba 100644
--- a/lsp/src/main.rs
+++ b/lsp/src/main.rs
@@ -1,3 +1,5 @@
+include!(concat!(env!("OUT_DIR"), "/native_notices.rs"));
+
use tower_lsp::{LspService, Server};
use tracing_subscriber::EnvFilter;
@@ -5,6 +7,8 @@ use ktav_lsp::Backend;
#[tokio::main]
async fn main() {
+ // Фактическое сохранение ресурса проверяет CI.
+ let _ = std::hint::black_box(KTAV_NATIVE_NOTICES);
// stdout is reserved for LSP messages — log to stderr only.
tracing_subscriber::fmt()
.with_writer(std::io::stderr)
diff --git a/root-docs/README/license/body-1.md b/root-docs/README/license/body-1.md
index 795e33a..0476994 100644
--- a/root-docs/README/license/body-1.md
+++ b/root-docs/README/license/body-1.md
@@ -1,15 +1,39 @@
>>>>> lang=en
## License
-MIT OR Apache-2.0. See [LICENSE-MIT](LICENSE-MIT) and [LICENSE-APACHE](LICENSE-APACHE).
+Ktav's own code is MIT OR Apache-2.0. See [LICENSE-MIT](LICENSE-MIT) and [LICENSE-APACHE](LICENSE-APACHE). Bundled third-party code retains its own licenses and notices; the first-party license does not replace them.
+
+### Native binaries, notices and source
+
+The license-checked release pipeline delivers each LSP executable together with `*.distribution.json`, readable `*.THIRD-PARTY-NOTICES.txt`, `*.NOTICE.json`, its compressed copy, the original Rust `*.COPYRIGHT-library.html`, `*.Cargo.lock`, and both Ktav license files. Platform-specific runtime notices are delivered alongside them. Keep the complete platform payload when redistributing; copying only the executable drops required materials.
+
+The GNU Linux ARM64 payload also includes `ktav-lsp-source-aarch64-unknown-linux-gnu.tar.gz` and `*.source-binding.json`. Its retained startup code is subject to LGPL-2.1-or-later without the compiled-linking exception present in the reviewed x64 startup. The matching source archive supplies corresponding source and relinking materials; use its rebuild script to rebuild with modified startup source. This does not change the license of Ktav's own code.
+
+Universal plugins carry the same complete payloads: `bin//` in the VS Code extension and `lib/bin//` in the IntelliJ plugin. The required ARM64 source archive adds approximately 94 MB to each universal plugin. CI verifies the actual VSIX/IntelliJ ZIP contents, executable notice resources and source bindings, not only staging directories. These checks do not retroactively replace historical published assets.
>>>>> lang=ru
## Лицензия
-MIT OR Apache-2.0. См. [LICENSE-MIT](../../LICENSE-MIT) и [LICENSE-APACHE](../../LICENSE-APACHE).
+Собственный код Ktav распространяется под MIT OR Apache-2.0. См. [LICENSE-MIT](../../LICENSE-MIT) и [LICENSE-APACHE](../../LICENSE-APACHE). Сторонний код сохраняет собственные лицензии и уведомления; лицензия Ktav их не заменяет.
+
+### Нативные бинарники, уведомления и исходники
+
+Лицензионно проверяемый release pipeline поставляет каждый LSP executable вместе с `*.distribution.json`, читаемым `*.THIRD-PARTY-NOTICES.txt`, `*.NOTICE.json`, его сжатой копией, оригинальным отчётом Rust `*.COPYRIGHT-library.html`, `*.Cargo.lock` и обеими лицензиями Ktav. Рядом поставляются уведомления о runtime конкретной платформы. При дальнейшем распространении сохраняйте весь platform payload: копирование одного executable теряет обязательные материалы.
+
+GNU Linux ARM64 payload также содержит `ktav-lsp-source-aarch64-unknown-linux-gnu.tar.gz` и `*.source-binding.json`. Используемый startup code подпадает под LGPL-2.1-or-later без compiled-linking exception, имеющегося у проверенного x64 startup. Matching source archive содержит соответствующие исходники и материалы для повторной линковки; приложенный rebuild script позволяет пересобрать executable с изменённым startup source. Лицензия собственного кода Ktav от этого не меняется.
+
+Universal plugins содержат те же полные payloads: `bin//` в VS Code extension и `lib/bin//` в IntelliJ plugin. Обязательный ARM64 source archive добавляет около 94 МБ к каждому universal plugin. CI проверяет содержимое настоящих VSIX/IntelliJ ZIP, встроенные notice resources и source bindings, а не только staging directories. Эти проверки не заменяют задним числом исторические опубликованные assets.
>>>>> lang=zh
## 许可证
-MIT OR Apache-2.0。详见 [LICENSE-MIT](../../LICENSE-MIT) 和 [LICENSE-APACHE](../../LICENSE-APACHE)。
+Ktav 自有代码采用 MIT OR Apache-2.0。详见 [LICENSE-MIT](../../LICENSE-MIT) 和 [LICENSE-APACHE](../../LICENSE-APACHE)。随附第三方代码保留各自的许可证和声明;Ktav 的许可证不能替代这些条款。
+
+### 原生二进制文件、声明和源代码
+
+经过许可证检查的发布流水线将每个 LSP 可执行文件与 `*.distribution.json`、可读的 `*.THIRD-PARTY-NOTICES.txt`、`*.NOTICE.json` 及其压缩副本、原始 Rust `*.COPYRIGHT-library.html`、`*.Cargo.lock` 和两份 Ktav 许可证一同提供。平台运行时声明也随附其中。再次分发时必须保留完整的平台文件集;仅复制可执行文件会丢失必需材料。
+
+GNU Linux ARM64 文件集还包含 `ktav-lsp-source-aarch64-unknown-linux-gnu.tar.gz` 和 `*.source-binding.json`。其中保留的启动代码受 LGPL-2.1-or-later 约束,不具有已审查 x64 启动代码中的编译链接例外。匹配的源代码归档提供对应源代码和重新链接所需材料;可使用归档中的重建脚本,以修改后的启动源代码重新构建。这不会改变 Ktav 自有代码的许可证。
+
+通用插件包含同样完整的文件集:VS Code 扩展中的 `bin//`,以及 IntelliJ 插件中的 `lib/bin//`。必需的 ARM64 源代码归档使每个通用插件增加约 94 MB。CI 检查实际 VSIX/IntelliJ ZIP 的内容、可执行文件内嵌声明及源代码绑定,而不只是暂存目录。这些检查不会追溯替换历史已发布文件。
diff --git a/scripts/apply_lsp_notice_overlay.py b/scripts/apply_lsp_notice_overlay.py
new file mode 100644
index 0000000..3f2a74d
--- /dev/null
+++ b/scripts/apply_lsp_notice_overlay.py
@@ -0,0 +1,41 @@
+"""Идемпотентно добавить только существующий metadata retention hook."""
+
+import hashlib
+import json
+from pathlib import Path
+import sys
+
+DECLARATION = b'include!(concat!(env!("OUT_DIR"), "/native_notices.rs"));'
+USE = b'let _ = std::hint::black_box(KTAV_NATIVE_NOTICES);'
+ENTRY = b'async fn main() {'
+
+
+def apply(path):
+ path = Path(path)
+ if path.is_symlink() or not path.is_file():
+ raise ValueError('LSP entry must be a regular source file')
+ with path.open('rb') as source:
+ original = source.read(1024 * 1024 + 1)
+ if len(original) > 1024 * 1024 or original.count(ENTRY) != 1:
+ raise ValueError('LSP entry requires source review')
+ state = (original.count(DECLARATION), original.count(USE))
+ if state == (0, 0):
+ if b'native_notices.rs' in original or b'KTAV_NATIVE_NOTICES' in original:
+ raise ValueError('unrecognized LSP notice hook requires review')
+ packaged = DECLARATION + b'\n\n' + original.replace(ENTRY, ENTRY + b'\n ' + USE, 1)
+ path.write_bytes(packaged)
+ status = 'added'
+ elif state == (1, 1):
+ if original.index(DECLARATION) > original.index(ENTRY) or original.index(USE) < original.index(ENTRY):
+ raise ValueError('LSP notice hook location requires review')
+ packaged = original
+ status = 'already-present'
+ else:
+ raise ValueError('partial or duplicate LSP notice hook requires review')
+ return {'original_main_sha256': hashlib.sha256(original).hexdigest(), 'packaged_main_sha256': hashlib.sha256(packaged).hexdigest(), 'notice_overlay': status, 'changes': 'Read-only metadata retention only; protocol and public API unchanged.'}
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 2:
+ raise SystemExit('usage: apply_lsp_notice_overlay.py LSP_MAIN_SOURCE')
+ print(json.dumps(apply(Path(sys.argv[1])), sort_keys=True, indent=2))
diff --git a/scripts/capture-zig-link.sh b/scripts/capture-zig-link.sh
new file mode 100755
index 0000000..fe4fbd5
--- /dev/null
+++ b/scripts/capture-zig-link.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+if [[ " $* " == *"--print-map"* ]]; then
+ "${KTAV_REAL_ZIG:?}" "$@" | tee -a "${KTAV_LINK_MAP:?}"
+else
+ exec "${KTAV_REAL_ZIG:?}" "$@"
+fi
diff --git a/scripts/cargo_notice_bundle.py b/scripts/cargo_notice_bundle.py
new file mode 100644
index 0000000..7196de5
--- /dev/null
+++ b/scripts/cargo_notice_bundle.py
@@ -0,0 +1,113 @@
+"""Собрать notices без локальных путей и проверить их в wheel."""
+
+from __future__ import annotations
+
+import base64
+import csv
+import hashlib
+import io
+import json
+import sys
+import zipfile
+from pathlib import Path, PurePosixPath
+
+from collect_cargo_notices import _collect, _packages
+
+MEMBER = "ktav/_third_party/NOTICE.json"
+MAX_BUNDLE_BYTES = 64 * 1024 * 1024
+
+
+def _text(data: bytes) -> dict:
+ return {"sha256": hashlib.sha256(data).hexdigest(), "text": data.decode("utf-8")}
+
+
+def _package(package: dict) -> dict:
+ return {key: package.get(key) for key in ("name", "version", "source")}
+
+
+def _build(evidence: Path) -> bytes:
+ metadata = json.loads((evidence / "metadata.json").read_text(encoding="utf-8"))
+ report = json.loads((evidence / "licenses.json").read_text(encoding="utf-8"))
+ packages = _packages(metadata, report)
+ identities = {package["id"]: _package(package) for package in packages}
+ licenses = []
+ for entry in report["licenses"]:
+ used_by = [identities[item["crate"]["id"]] for item in entry["used_by"]]
+ licenses.append(
+ {
+ **_text(entry["text"].encode("utf-8")),
+ "used_by": sorted(used_by, key=lambda item: json.dumps(item, sort_keys=True)),
+ }
+ )
+ notices = _collect(metadata, report)
+ for entry in notices["notices"]:
+ path = PurePosixPath(entry["path"])
+ if path.is_absolute() or ".." in path.parts or "\\" in entry["path"]:
+ raise ValueError("unsafe notice path")
+ rustc = (evidence / "rustc.txt").read_bytes()
+ if not rustc.startswith(b"rustc ") or b"\ncommit-hash: " not in rustc:
+ raise ValueError("missing verbose rustc provenance")
+ stdlib = (evidence / "COPYRIGHT-library.html").read_bytes()
+ if not stdlib.strip():
+ raise ValueError("empty Rust standard library report")
+ lock = (evidence / "Cargo.lock").read_bytes()
+ if not lock.strip():
+ raise ValueError("empty Cargo.lock")
+ result = {
+ "schema_version": 1,
+ "coverage": "Resolved Cargo graph and Rust standard library; not a linked-code inventory. "
+ "Non-Cargo runtimes require separate evidence.",
+ "cargo_lock_sha256": hashlib.sha256(lock).hexdigest(),
+ "packages": sorted(identities.values(), key=lambda item: json.dumps(item, sort_keys=True)),
+ "licenses": sorted(licenses, key=lambda item: json.dumps(item, sort_keys=True)),
+ "notices": notices["notices"],
+ "rustc": rustc.decode("utf-8"),
+ "rust_standard_library": _text(stdlib),
+ }
+ data = (json.dumps(result, ensure_ascii=False, sort_keys=True, indent=2) + "\n").encode()
+ if len(data) > MAX_BUNDLE_BYTES:
+ raise ValueError("notice bundle size limit exceeded")
+ return data
+
+
+def _verify(wheel_path: Path, expected: bytes) -> None:
+ if not expected or len(expected) > MAX_BUNDLE_BYTES:
+ raise ValueError("invalid expected bundle size")
+ with zipfile.ZipFile(wheel_path) as wheel:
+ members = [item for item in wheel.infolist() if item.filename == MEMBER]
+ if len(members) != 1 or members[0].file_size != len(expected):
+ raise ValueError("missing, duplicate or wrong-sized wheel notice bundle")
+ if wheel.read(members[0]) != expected:
+ raise ValueError("wheel notice bundle differs from build evidence")
+ records = [item for item in wheel.infolist() if item.filename.endswith(".dist-info/RECORD")]
+ if len(records) != 1 or records[0].filename.count("/") != 1:
+ raise ValueError("unexpected wheel RECORD")
+ rows = csv.reader(io.StringIO(wheel.read(records[0]).decode("utf-8")))
+ matching = [row for row in rows if row and row[0] == MEMBER]
+ digest = base64.urlsafe_b64encode(hashlib.sha256(expected).digest()).rstrip(b"=").decode()
+ if matching != [[MEMBER, f"sha256={digest}", str(len(expected))]]:
+ raise ValueError("notice bundle does not match wheel RECORD")
+
+
+def main() -> None:
+ """Собрать bundle или сверить точные байты упакованного файла."""
+ if len(sys.argv) != 4 or sys.argv[1] not in {"build", "verify"}:
+ raise SystemExit(
+ "usage: cargo_notice_bundle.py build EVIDENCE OUTPUT | verify WHEEL BUNDLE"
+ )
+ try:
+ if sys.argv[1] == "build":
+ data = _build(Path(sys.argv[2]))
+ output = Path(sys.argv[3])
+ output.parent.mkdir(parents=True, exist_ok=True)
+ with output.open("xb") as destination:
+ destination.write(data)
+ else:
+ _verify(Path(sys.argv[2]), Path(sys.argv[3]).read_bytes())
+ except (OSError, ValueError, KeyError, TypeError, zipfile.BadZipFile) as exc:
+ raise SystemExit(str(exc)) from exc
+ print(f"notice bundle {sys.argv[1]} verified")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/scripts/check_embedded_notices.py b/scripts/check_embedded_notices.py
new file mode 100644
index 0000000..e70868f
--- /dev/null
+++ b/scripts/check_embedded_notices.py
@@ -0,0 +1,72 @@
+"""Проверить license resource без исполнения native binary."""
+
+from __future__ import annotations
+
+import gzip
+import hashlib
+import io
+import json
+import sys
+from pathlib import Path
+
+MARKER = b"KTAV-NOTICES-GZIP-v1\0"
+MAX_GZIP = 4 * 1024 * 1024
+MAX_JSON = 64 * 1024 * 1024
+MAX_BINARY = 128 * 1024 * 1024
+
+
+def _read(path: Path, limit: int) -> bytes:
+ with path.open("rb") as source:
+ data = source.read(limit + 1)
+ if len(data) > limit:
+ raise ValueError(f"file exceeds notice verification limit: {path.name}")
+ return data
+
+
+def _extract(binary: bytes) -> tuple[bytes, int]:
+ offset = binary.find(MARKER)
+ if offset < 0 or binary.find(MARKER, offset + 1) >= 0:
+ raise ValueError("missing or duplicate embedded notice resource")
+ start = offset + len(MARKER)
+ if start + 8 > len(binary):
+ raise ValueError("truncated embedded notice length")
+ size = int.from_bytes(binary[start : start + 8], "little")
+ start += 8
+ if not 0 < size <= MAX_GZIP or start + size > len(binary):
+ raise ValueError("invalid embedded notice size")
+ with gzip.GzipFile(fileobj=io.BytesIO(binary[start : start + size])) as source:
+ data = source.read(MAX_JSON + 1)
+ if len(data) > MAX_JSON:
+ raise ValueError("embedded notice JSON exceeds size limit")
+ return data, size
+
+
+def main() -> None:
+ """Сверить embedded resource с ожидаемым source-backed bundle."""
+ if len(sys.argv) != 3:
+ raise SystemExit("usage: check_embedded_notices.py BINARY EXPECTED_NOTICE_JSON")
+ try:
+ binary = _read(Path(sys.argv[1]), MAX_BINARY)
+ expected = _read(Path(sys.argv[2]), MAX_JSON)
+ actual, compressed_size = _extract(binary)
+ if actual != expected:
+ raise ValueError("embedded notices differ from the locked build evidence")
+ bundle = json.loads(actual)
+ if bundle.get("schema_version") != 1:
+ raise ValueError("unexpected embedded notice schema")
+ report = {
+ "schema_version": 1,
+ "binary": Path(sys.argv[1]).name,
+ "binary_sha256": hashlib.sha256(binary).hexdigest(),
+ "notice_sha256": hashlib.sha256(actual).hexdigest(),
+ "cargo_lock_sha256": bundle["cargo_lock_sha256"],
+ "notice_bytes": len(actual),
+ "compressed_bytes": compressed_size,
+ }
+ except (OSError, EOFError, ValueError, KeyError, TypeError) as exc:
+ raise SystemExit(str(exc)) from exc
+ print(json.dumps(report, sort_keys=True, indent=2))
+
+
+if __name__ == "__main__":
+ main()
diff --git a/scripts/check_lsp_gnullvm.py b/scripts/check_lsp_gnullvm.py
new file mode 100644
index 0000000..6166713
--- /dev/null
+++ b/scripts/check_lsp_gnullvm.py
@@ -0,0 +1,98 @@
+"""Проверить связь Windows binary, notices и фактически выбранного SDK runtime."""
+
+import hashlib
+import json
+from pathlib import Path
+import re
+import sys
+
+from check_embedded_notices import MAX_BINARY, MAX_JSON, _extract, _read
+from lsp_gnullvm_notices import augment, catalogue, plain_notice
+
+
+def retained_objects(data):
+ result = set()
+ for line in data.splitlines():
+ match = re.match(rb'^[0-9a-fA-F]+\s+[0-9a-fA-F]+\s+\d+\s{2,}(.+):\([^\r\n]*\)\s*$', line)
+ if match and b'.rcgu.o' not in match[1]:
+ result.add(match[1].decode('utf-8').rsplit('/', 1)[-1])
+ return result
+
+
+def machine(data):
+ if len(data) < 64 or data[:2] != b'MZ':
+ raise ValueError('Windows LSP is not a PE executable')
+ offset = int.from_bytes(data[60:64], 'little')
+ if offset > len(data) - 6 or data[offset:offset + 4] != b'PE\0\0':
+ raise ValueError('invalid Windows LSP PE header')
+ return int.from_bytes(data[offset + 4:offset + 6], 'little')
+
+
+def sdk_inputs(items):
+ result = []
+ seen = set()
+ for item in items:
+ name = item['path']
+ if not name.endswith(('.a', '/crt2.o', '/crtbegin.o', '/crtend.o')):
+ continue
+ marker = 'llvm-mingw-20261020-ucrt-x86_64/'
+ if name.count(marker) != 1:
+ raise ValueError('native input outside selected GNU LLVM SDK')
+ relative = name.split(marker, 1)[1]
+ if relative in seen:
+ raise ValueError('duplicate native SDK input')
+ seen.add(relative)
+ result.append({**item, 'path': relative})
+ return sorted(result, key=lambda item: item['path'])
+
+
+def check(evidence, binary_path, target):
+ root = Path(__file__).resolve().parents[1]
+ catalog, digest = catalogue(root)
+ if target not in catalog['targets']:
+ raise ValueError('unreviewed Windows LSP target')
+ binary = _read(binary_path, MAX_BINARY)
+ expected_machine = 0x8664 if target == 'x86_64-pc-windows-gnullvm' else 0xAA64
+ if machine(binary) != expected_machine:
+ raise ValueError('Windows LSP CPU differs from its target')
+ notice = _read(evidence / 'NOTICE.json', MAX_JSON)
+ original = json.loads(_read(evidence / 'NOTICE.cargo-std.json', MAX_JSON))
+ expected = augment(original, catalog, target, digest)
+ if json.loads(notice) != expected or _extract(binary)[0] != notice:
+ raise ValueError('Windows native notices differ from reviewed sources')
+ plain = _read(evidence / 'NOTICE.windows-runtime.txt', MAX_JSON)
+ if plain != plain_notice(catalog):
+ raise ValueError('Windows plain notices differ from original legal documents')
+ if _read(evidence / 'lsp-gnullvm-runtime-catalog.json', MAX_JSON) != (root / 'ci/lsp-gnullvm-runtime-catalog.json').read_bytes():
+ raise ValueError('staged Windows runtime catalogue changed')
+ identity = json.loads(_read(evidence / 'release-before-tests.json', MAX_JSON))
+ link_map = _read(evidence / 'native-link.map', MAX_JSON)
+ if identity['binary_sha256'] != hashlib.sha256(binary).hexdigest() or identity['map_sha256'] != hashlib.sha256(link_map).hexdigest():
+ raise ValueError('Windows release identity changed after notice preparation')
+ linked = json.loads(_read(evidence / 'link-input-fingerprints.json', MAX_JSON))
+ if linked['release_identity'] != identity:
+ raise ValueError('Windows linker inputs are not bound to release binary')
+ profile = catalog['targets'][target]
+ if sdk_inputs(linked['inputs']) != sorted(profile['sdk_inputs'], key=lambda item: item['path']):
+ raise ValueError('Windows SDK archive/direct-input bytes changed')
+ if retained_objects(link_map) != set(profile['retained_objects']):
+ raise ValueError('Windows retained runtime objects differ from source review')
+ report = {
+ 'target': target,
+ 'binary_sha256': identity['binary_sha256'],
+ 'map_sha256': identity['map_sha256'],
+ 'notice_sha256': hashlib.sha256(notice).hexdigest(),
+ 'plain_notice_sha256': hashlib.sha256(plain).hexdigest(),
+ 'catalog_sha256': digest,
+ 'retained_runtime_objects': len(profile['retained_objects']),
+ 'source_records': len(catalog['source_files']),
+ 'scope': 'Exact experimental Windows LSP resource and runtime-input binding; no historical artifact or other binding compatibility claim.',
+ }
+ (evidence / 'native-windows-verification.json').write_text(json.dumps(report, sort_keys=True, indent=2), encoding='utf-8')
+ print(json.dumps(report, sort_keys=True, indent=2))
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 4:
+ raise SystemExit('usage: check_lsp_gnullvm.py EVIDENCE BINARY TARGET')
+ check(Path(sys.argv[1]), Path(sys.argv[2]), sys.argv[3])
diff --git a/scripts/check_lsp_macos.py b/scripts/check_lsp_macos.py
new file mode 100644
index 0000000..98f1cd7
--- /dev/null
+++ b/scripts/check_lsp_macos.py
@@ -0,0 +1,136 @@
+"""Проверить Mach-O notice resource и границу Cargo/system SDK inputs."""
+
+import hashlib
+import json
+from pathlib import Path
+import re
+import subprocess
+import sys
+
+from check_embedded_notices import MAX_BINARY, MAX_JSON, _extract, _read
+
+TARGET_CPUS = {'x86_64-apple-darwin': 0x01000007, 'aarch64-apple-darwin': 0x0100000C}
+SYSTEM_STUBS = {
+ 'libiconv.tbd', 'libSystem.tbd', 'libc.tbd', 'libm.tbd',
+ 'system/libcommonCrypto.tbd', 'system/libdispatch.tbd',
+ 'system/libdyld.tbd', 'system/libsystem_c.tbd',
+ 'system/libsystem_kernel.tbd', 'system/libsystem_m.tbd',
+ 'system/libsystem_malloc.tbd', 'system/libsystem_platform.tbd',
+ 'system/libsystem_pthread.tbd', 'system/libunwind.tbd',
+}
+
+
+def cpu(data):
+ if len(data) < 32 or data[:4] != b'\xcf\xfa\xed\xfe':
+ raise ValueError('expected thin little-endian Mach-O 64 executable')
+ if int.from_bytes(data[12:16], 'little') != 2:
+ raise ValueError('Mach-O is not an executable')
+ return int.from_bytes(data[4:8], 'little')
+
+
+def object_inputs(data, cargo_root, rustlib_root, sdk_root):
+ if data.count(b'# Object files:') != 1:
+ raise ValueError('missing or duplicate Darwin map object section')
+ section = data.split(b'# Object files:', 1)[1].split(b'# Sections:', 1)
+ if len(section) != 2:
+ raise ValueError('missing Darwin map sections boundary')
+ result = []
+ ids = set()
+ for line in section[0].splitlines():
+ if not line.strip():
+ continue
+ match = re.fullmatch(rb'\[\s*(\d+)\]\s+(.+)', line)
+ if not match or int(match[1]) in ids:
+ raise ValueError('invalid Darwin map object row')
+ ids.add(int(match[1]))
+ name = match[2].decode('utf-8')
+ if name == 'linker synthesized':
+ result.append({'kind': 'linker-synthesized'})
+ continue
+ if name.endswith('.tbd'):
+ path = Path(name)
+ boundary = (sdk_root / 'usr/lib').resolve()
+ public_path = path.parent.resolve() / path.name
+ resolved = path.resolve()
+ if not public_path.is_relative_to(boundary) or not resolved.is_relative_to(boundary):
+ raise ValueError(f'Darwin SDK stub escapes selected SDK: {name} -> {resolved}; SDK={boundary}')
+ relative = public_path.relative_to(boundary).as_posix()
+ if relative not in SYSTEM_STUBS:
+ raise ValueError(f'unreviewed Darwin SDK stub: {relative}')
+ result.append({'kind': 'system-stub', 'path': relative, 'resolved_path': resolved.relative_to(boundary).as_posix()})
+ continue
+ archive = name.split('.rlib(', 1)[0] + '.rlib' if '.rlib(' in name else None
+ if archive:
+ if not name.endswith('.rcgu.o)'):
+ raise ValueError('non-Rust native member in Darwin rlib input')
+ path = Path(archive).resolve()
+ else:
+ if not name.endswith('.rcgu.o'):
+ raise ValueError('external static object in Darwin LSP')
+ path = Path(name).resolve()
+ boundary = next((item for item in [cargo_root.resolve(), rustlib_root.resolve()] if path.is_relative_to(item)), None)
+ if boundary is None:
+ raise ValueError('Darwin Rust object outside reviewed Cargo/sysroot roots')
+ result.append({'kind': 'rust-object', 'path': path.relative_to(boundary).as_posix(), 'origin': 'cargo' if boundary == cargo_root.resolve() else 'rust-sysroot'})
+ if ids != set(range(len(result))) or sum(item['kind'] == 'linker-synthesized' for item in result) != 1 or not any(item['kind'] == 'rust-object' for item in result):
+ raise ValueError('incomplete Darwin map input inventory')
+ return result
+
+
+def dynamic_libraries(data):
+ lines = data.splitlines()
+ if not lines or not lines[0].endswith(b':'):
+ raise ValueError('invalid Darwin dynamic-library report')
+ libraries = []
+ for line in lines[1:]:
+ if not line.strip():
+ continue
+ match = re.fullmatch(rb'\s+(/[^ \t\r\n]+)\s+\(compatibility version [0-9.]+, current version [0-9.]+\)', line)
+ if not match:
+ raise ValueError('invalid Darwin dynamic-library row')
+ libraries.append(match[1].decode('utf-8'))
+ if libraries != ['/usr/lib/libSystem.B.dylib']:
+ raise ValueError('unreviewed or unused Darwin dynamic dependency')
+ return libraries
+
+
+def check(evidence, binary_path, target):
+ if target not in TARGET_CPUS:
+ raise ValueError('unreviewed Darwin LSP target')
+ binary = _read(binary_path, MAX_BINARY)
+ if cpu(binary) != TARGET_CPUS[target]:
+ raise ValueError('Darwin LSP CPU differs from target')
+ notice = _read(evidence / 'NOTICE.json', MAX_JSON)
+ if _extract(binary)[0] != notice:
+ raise ValueError('Darwin embedded notices differ from prepared source report')
+ bundle = json.loads(notice)
+ if bundle.get('schema_version') != 1 or not bundle.get('packages'):
+ raise ValueError('missing Darwin Cargo/std notice coverage')
+ libraries = dynamic_libraries(_read(evidence / 'dynamic-libraries.txt', MAX_JSON))
+ symbols = _read(evidence / 'undefined-symbols.txt', MAX_JSON)
+ if re.search(rb'iconv|charset', symbols, re.I):
+ raise ValueError('unexpected Darwin iconv/charset symbol dependency')
+ identity = json.loads(_read(evidence / 'release-before-tests.json', MAX_JSON))
+ link_map = _read(evidence / 'native-link.map', MAX_JSON)
+ if identity['binary_sha256'] != hashlib.sha256(binary).hexdigest() or identity['map_sha256'] != hashlib.sha256(link_map).hexdigest():
+ raise ValueError('Darwin tests changed release binary/map identity')
+ sysroot = Path(subprocess.check_output(['rustc', '--print', 'sysroot'], text=True).strip())
+ sdk = Path(subprocess.check_output(['xcrun', '--show-sdk-path'], text=True).strip())
+ inputs = object_inputs(link_map, binary_path.parent / 'deps', sysroot / 'lib/rustlib' / target / 'lib', sdk)
+ report = {
+ 'target': target,
+ **identity,
+ 'notice_sha256': hashlib.sha256(notice).hexdigest(),
+ 'objects': inputs,
+ 'dynamic_libraries': libraries,
+ 'iconv_symbol_imports': False,
+ 'scope': 'Cargo/std resource and static-input boundary only. System dynamic-library conditions and Apple SDK terms remain a separate review; no blanket distribution approval.',
+ }
+ (evidence / 'native-macos-verification.json').write_text(json.dumps(report, sort_keys=True, indent=2), encoding='utf-8')
+ print(json.dumps(report, sort_keys=True, indent=2))
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 4:
+ raise SystemExit('usage: check_lsp_macos.py EVIDENCE BINARY TARGET')
+ check(Path(sys.argv[1]), Path(sys.argv[2]), sys.argv[3])
diff --git a/scripts/check_lsp_plugin_zip.py b/scripts/check_lsp_plugin_zip.py
new file mode 100644
index 0000000..8bb7b3b
--- /dev/null
+++ b/scripts/check_lsp_plugin_zip.py
@@ -0,0 +1,101 @@
+"""Проверить полные LSP payloads непосредственно в plugin ZIP без распаковки."""
+
+import hashlib
+import json
+from pathlib import Path, PurePosixPath
+import stat
+import sys
+import zipfile
+
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+from lsp_distribution import MAX_SOURCE, TARGETS, verify_payload
+
+MAX_ENTRY = 64 * 1024 * 1024
+MAX_ARCHIVE = 256 * 1024 * 1024
+PREFIXES = {'vsix': 'extension/bin/', 'intellij': 'ktav-intellij/lib/bin/'}
+SOURCE = 'linux-arm64/ktav-lsp-source-aarch64-unknown-linux-gnu.tar.gz'
+
+
+def inventory(archive, prefix):
+ records = archive.infolist()
+ if len(records) > 30000 or sum(item.file_size for item in records) > MAX_ARCHIVE:
+ raise ValueError('archive inventory exceeds limits')
+ files = {}
+ names = set()
+ for item in records:
+ value = item.filename
+ path = PurePosixPath(value)
+ if not value or path.is_absolute() or '..' in path.parts or '\\' in value or ':' in value or path.as_posix() != value.rstrip('/'):
+ raise ValueError('unsafe archive path')
+ if value in names:
+ raise ValueError('duplicate archive member')
+ names.add(value)
+ if stat.S_ISLNK(item.external_attr >> 16):
+ raise ValueError('archive symlink requires review')
+ limit = MAX_SOURCE if value == prefix + SOURCE else MAX_ENTRY
+ if item.file_size > limit:
+ raise ValueError('archive member exceeds size limit')
+ if not item.is_dir():
+ files[value] = item
+ return files
+
+
+def bounded_read(archive, item, limit):
+ if item.file_size > limit:
+ raise ValueError('distribution file exceeds size bound')
+ with archive.open(item) as stream:
+ data = stream.read(limit + 1)
+ if len(data) > limit:
+ raise ValueError('distribution file exceeds size bound')
+ return data
+
+
+def streamed_info(archive, item, limit):
+ digest = hashlib.sha256()
+ size = 0
+ with archive.open(item) as stream:
+ while chunk := stream.read(1024 * 1024):
+ size += len(chunk)
+ if size > limit:
+ raise ValueError('distribution file exceeds size bound')
+ digest.update(chunk)
+ if size != item.file_size:
+ raise ValueError('archive member size mismatch')
+ return {'bytes': size, 'sha256': digest.hexdigest()}
+
+
+def verify(path, kind):
+ prefix = PREFIXES[kind]
+ if path.stat().st_size > MAX_ARCHIVE:
+ raise ValueError('plugin ZIP exceeds size limit')
+ with zipfile.ZipFile(path) as archive:
+ files = inventory(archive, prefix)
+ payloads = {platform: {} for platform, _ in TARGETS.values()}
+ for filename, item in files.items():
+ if not filename.startswith(prefix):
+ continue
+ relative = filename[len(prefix):].split('/')
+ if len(relative) != 2 or relative[0] not in payloads:
+ raise ValueError('unexpected plugin platform payload')
+ payloads[relative[0]][relative[1]] = item
+ manifests = []
+ for target, (platform, _) in TARGETS.items():
+ members = payloads[platform]
+ manifest = verify_payload(
+ list(members),
+ lambda filename, limit: bounded_read(archive, members[filename], limit),
+ lambda filename, limit: streamed_info(archive, members[filename], limit),
+ )
+ expected_binary = 'ktav-lsp.exe' if 'windows' in target else 'ktav-lsp'
+ if manifest['target'] != target or manifest['binary'] != expected_binary:
+ raise ValueError('plugin platform or executable lookup mismatch')
+ manifests.append(manifest)
+ if len({item['source_ref'] for item in manifests}) != 1:
+ raise ValueError('plugin requires six matching-source platform payloads')
+ return {'schema_version': 1, 'kind': kind, 'source_ref': manifests[0]['source_ref'], 'platforms': manifests, 'verified_source_entries': [prefix + SOURCE]}
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 3 or sys.argv[2] not in PREFIXES:
+ raise SystemExit('usage: check_lsp_plugin_zip.py PLUGIN_ZIP vsix|intellij')
+ print(json.dumps(verify(Path(sys.argv[1]), sys.argv[2]), sort_keys=True, indent=2))
diff --git a/scripts/check_lsp_relink.py b/scripts/check_lsp_relink.py
new file mode 100644
index 0000000..98ba3d8
--- /dev/null
+++ b/scripts/check_lsp_relink.py
@@ -0,0 +1,47 @@
+"""Доказать relink с изменённым ARM64 startup, не исполняя executable."""
+
+import hashlib
+import json
+from pathlib import Path
+import struct
+import sys
+
+from check_embedded_notices import _extract
+
+NOP = b'\x1f\x20\x03\xd5'
+
+
+def entry_instruction(data):
+ if len(data) < 64 or data[:6] != b'\x7fELF\x02\x01' or struct.unpack_from(' 256 or phoff + size * count > len(data):
+ raise ValueError('invalid relink ELF program headers')
+ for index in range(count):
+ offset = phoff + size * index
+ kind, flags, file_offset, address, _, file_size, _, _ = struct.unpack_from(' len(data):
+ raise ValueError('truncated relink entry code')
+ return data[position:position + 4]
+ raise ValueError('relink ELF entry is not executable file-backed code')
+
+
+def verify(original, modified, notice):
+ if entry_instruction(original) == NOP or entry_instruction(modified) != NOP:
+ raise ValueError('modified startup NOP was not retained at actual ELF entry')
+ if original == modified or _extract(original)[0] != notice or _extract(modified)[0] != notice:
+ raise ValueError('relink executable or notice identity differs from proof')
+ return {'original_sha256': hashlib.sha256(original).hexdigest(), 'modified_sha256': hashlib.sha256(modified).hexdigest(), 'modified_entry_instruction_hex': NOP.hex(), 'same_notice_sha256': hashlib.sha256(notice).hexdigest(), 'modified_startup_retained': True, 'scope': 'Source/relink proof; ARM64 executables were inspected, not executed.'}
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 4:
+ raise SystemExit('usage: check_lsp_relink.py ORIGINAL MODIFIED NOTICE_JSON')
+ paths = list(map(Path, sys.argv[1:]))
+ for path in paths:
+ if not path.is_file() or path.stat().st_size > 128 * 1024 * 1024:
+ raise SystemExit('relink proof input exceeds bound')
+ print(json.dumps(verify(*(path.read_bytes() for path in paths)), sort_keys=True, indent=2))
diff --git a/scripts/check_lsp_startup.py b/scripts/check_lsp_startup.py
new file mode 100644
index 0000000..3bc3456
--- /dev/null
+++ b/scripts/check_lsp_startup.py
@@ -0,0 +1,59 @@
+"""Проверить actual retained startup sections, не исполняя ELF."""
+
+import json
+from pathlib import Path, PurePosixPath
+import re
+import subprocess
+import sys
+
+EXPECTED = {
+ ('libunwind.a', 'UnwindLevel1.o'), ('libunwind.a', 'UnwindLevel1-gcc-ext.o'),
+ ('libunwind.a', 'UnwindRegistersSave.o'), ('libunwind.a', 'UnwindRegistersRestore.o'),
+ ('libunwind.a', 'libunwind.o'), ('libc_nonshared.a', 'stat64-2.32.o'),
+ ('libc_nonshared.a', 'fstat64-2.32.o'), ('libc_nonshared.a', 'elf-init-2.33.o'),
+}
+
+
+def analyze_map(text):
+ members = {(PurePosixPath(a).name, PurePosixPath(m).name) for a, m in re.findall(r'([^\s()]+[.]a)\(([^()\n]+)\)', text)}
+ if members != EXPECTED:
+ raise ValueError('unreviewed LSP static archive inputs')
+ objects = set(re.findall(r'[^\s()]+[.]o(?=:\()', text))
+ startup = {path for path in objects if not path.endswith('.rcgu.o')}
+ if not objects - startup or len(startup) != 1 or PurePosixPath(next(iter(startup))).name != 'Scrt1.o':
+ raise ValueError('unreviewed LSP direct startup input')
+ path = next(iter(startup))
+ sections = {name.split('+', 1)[0] for name in re.findall(re.escape(path) + r':\(([^)]+)\)', text)}
+ if not {'.text', '.note.ABI-tag'} <= sections or not sections <= {'.text', '.note.ABI-tag', '.eh_frame'}:
+ raise ValueError('unreviewed retained startup section')
+ if re.search(r'\b_IO_stdin_used\b', text):
+ raise ValueError('non-exempt startup data retained in linker map')
+ return path, sorted(sections), sorted(members)
+
+
+def verify_binary_symbols(text):
+ if re.search(r'\b_IO_stdin_used\b', text):
+ raise ValueError('non-exempt startup symbol retained in final ELF')
+
+
+def verify(binary, evidence):
+ root = Path.cwd().resolve()
+ text = (evidence / 'native-link.map').read_text(encoding='utf-8')
+ startup, sections, members = analyze_map(text)
+ startup = Path(startup)
+ if not startup.is_file() or not startup.resolve().is_relative_to(root / '.zig-cache'):
+ raise ValueError('startup object must belong to this build cache')
+ object_sections = subprocess.check_output(['readelf', '-SW', str(startup)])
+ object_symbols = subprocess.check_output(['readelf', '-sW', str(startup)])
+ binary_symbols = subprocess.check_output(['readelf', '-sW', str(binary)])
+ verify_binary_symbols(binary_symbols.decode('utf-8'))
+ for name, data in [('startup-object-sections.txt', object_sections), ('startup-object-symbols.txt', object_symbols), ('final-elf-symbols.txt', binary_symbols)]:
+ (evidence / name).write_bytes(data)
+ record = {'archive_members': members, 'retained_startup_sections': sections, 'final_io_stdin_used_absent': True, 'coverage': 'Retained-input proof only; source/license and SDK header notices require separate review.'}
+ (evidence / 'startup-retention.json').write_text(json.dumps(record, sort_keys=True, indent=2), encoding='utf-8')
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 3:
+ raise SystemExit('usage: check_lsp_startup.py BINARY EVIDENCE_DIRECTORY')
+ verify(*map(Path, sys.argv[1:]))
diff --git a/scripts/collect_cargo_notices.py b/scripts/collect_cargo_notices.py
new file mode 100644
index 0000000..79da382
--- /dev/null
+++ b/scripts/collect_cargo_notices.py
@@ -0,0 +1,108 @@
+"""Собрать лицензионные уведомления разрешённого Cargo-графа."""
+
+from __future__ import annotations
+
+import hashlib
+import json
+import re
+import sys
+from pathlib import Path
+
+NOTICE_NAME = re.compile(
+ r"^(?:notice|notices|copyright|copying|patents|authors|credits|acknowledg(?:e)?ments|"
+ r"third[-_ ]?party[-_ ]?(?:notices?|licen[cs]es?))"
+ r"(?:[-_].+|\.(?:txt|md|rst|html|lesser))?$",
+ re.IGNORECASE,
+)
+MAX_NOTICE_BYTES = 4 * 1024 * 1024
+MAX_TOTAL_BYTES = 32 * 1024 * 1024
+
+
+def _packages(metadata: dict, report: dict) -> list[dict]:
+ packages = metadata.get("packages")
+ crates = report.get("crates")
+ licenses = report.get("licenses")
+ if not isinstance(packages, list) or not packages:
+ raise ValueError("Cargo metadata has no packages")
+ if not isinstance(crates, list) or not isinstance(licenses, list) or not licenses:
+ raise ValueError("license report is incomplete")
+ package_ids = {p["id"] for p in packages}
+ reported_ids = {c["package"]["id"] for c in crates}
+ licensed_ids = {u["crate"]["id"] for lic in licenses for u in lic["used_by"]}
+ if (
+ len(package_ids) != len(packages)
+ or package_ids != reported_ids
+ or package_ids != licensed_ids
+ ):
+ raise ValueError("Cargo graph and license report coverage differ")
+ if any(not lic.get("source_path") or not lic.get("text") for lic in licenses):
+ raise ValueError("license report contains an unverified fallback")
+ return sorted(packages, key=lambda p: p["id"])
+
+
+def _notice_files(root: Path) -> list[Path]:
+ if root.is_symlink() or not root.is_dir():
+ raise ValueError(f"invalid package source directory: {root}")
+ pending = [root]
+ found = []
+ while pending:
+ directory = pending.pop()
+ for path in sorted(directory.iterdir()):
+ if path.name in {".git", "target"}:
+ continue
+ if path.is_symlink():
+ if NOTICE_NAME.fullmatch(path.name) or path.is_dir():
+ raise ValueError(f"unverified symlink in package source: {path}")
+ continue
+ if path.is_dir():
+ pending.append(path)
+ elif path.is_file() and NOTICE_NAME.fullmatch(path.name):
+ found.append(path)
+ return sorted(found)
+
+
+def _collect(metadata: dict, report: dict) -> dict:
+ packages = _packages(metadata, report)
+ notices = []
+ total = 0
+ for package in packages:
+ root = Path(package["manifest_path"]).parent
+ for path in _notice_files(root):
+ size = path.stat().st_size
+ if size > MAX_NOTICE_BYTES or total + size > MAX_TOTAL_BYTES:
+ raise ValueError(f"notice size limit exceeded: {path}")
+ data = path.read_bytes()
+ if len(data) != size:
+ raise ValueError(f"notice changed while reading: {path}")
+ total += len(data)
+ notices.append(
+ {
+ "package": package["name"],
+ "version": package["version"],
+ "source": package.get("source"),
+ "path": path.relative_to(root).as_posix(),
+ "sha256": hashlib.sha256(data).hexdigest(),
+ "text": data.decode("utf-8"),
+ }
+ )
+ return {"schema_version": 1, "package_count": len(packages), "notices": notices}
+
+
+def main() -> None:
+ """Проверить покрытие, сохранить уведомления и хеши."""
+ if len(sys.argv) != 4:
+ raise SystemExit("usage: collect_cargo_notices.py METADATA LICENSES OUTPUT")
+ try:
+ metadata = json.loads(Path(sys.argv[1]).read_text(encoding="utf-8"))
+ report = json.loads(Path(sys.argv[2]).read_text(encoding="utf-8"))
+ result = _collect(metadata, report)
+ Path(sys.argv[3]).write_text(
+ json.dumps(result, ensure_ascii=False, indent=2) + "\n", encoding="utf-8"
+ )
+ except (OSError, ValueError, KeyError, TypeError) as exc:
+ raise SystemExit(str(exc)) from exc
+ print(f"Collected {len(result['notices'])} notices from {result['package_count']} packages")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/scripts/collect_lsp_sdk_legal.py b/scripts/collect_lsp_sdk_legal.py
new file mode 100644
index 0000000..08733c4
--- /dev/null
+++ b/scripts/collect_lsp_sdk_legal.py
@@ -0,0 +1,78 @@
+"""Сохранить actual SDK legal documents и candidates без license inference."""
+
+import base64
+import hashlib
+import json
+import os
+from pathlib import Path
+import platform
+import re
+import subprocess
+import sys
+
+LEGAL = re.compile(r'(?:licen[sc]e|eula|redist.*list|third.?party.*notice|acknowledg)', re.I)
+MAX_DOCUMENT_BYTES = 8 * 1024 * 1024
+MAX_TOTAL_BYTES = 32 * 1024 * 1024
+
+
+def check_bounds(size, preceding, location):
+ if size < 0 or preceding < 0 or size > MAX_DOCUMENT_BYTES or preceding + size > MAX_TOTAL_BYTES:
+ raise ValueError(f'SDK legal inventory exceeds document bound: {location}, file_bytes={size}, preceding_bytes={preceding}')
+
+
+def collect(evidence):
+ candidates = []
+ identity = {}
+ if platform.system() == 'Darwin':
+ developer = Path(subprocess.check_output(['xcode-select', '-p'], text=True).strip())
+ sdk = Path(subprocess.check_output(['xcrun', '--show-sdk-path'], text=True).strip())
+ identity = {'developer_directory': str(developer), 'sdk_directory': str(sdk)}
+ resources = developer.parent / 'Resources'
+ if resources.is_dir():
+ candidates.append(('Xcode-Resources', resources))
+ for name in ('SDKSettings.json', 'SDKSettings.plist'):
+ source = sdk / name
+ if source.is_file():
+ (evidence / name).write_bytes(source.read_bytes())
+ elif platform.system() == 'Windows':
+ vswhere = Path(os.environ['ProgramFiles(x86)']) / 'Microsoft Visual Studio/Installer/vswhere.exe'
+ installations = json.loads(subprocess.check_output([str(vswhere), '-all', '-format', 'json']).decode('utf-8-sig'))
+ identity = {'installation_candidates': [{'version': item.get('installationVersion'), 'path': item['installationPath']} for item in installations]}
+ for number, item in enumerate(installations):
+ root = Path(item['installationPath'])
+ for relative in ('Licenses', 'licenses', 'VC/Redist', 'Common7/IDE/Resources'):
+ source = root / relative
+ if source.is_dir():
+ candidates.append(('VS-' + str(number) + '-' + relative.replace('/', '-'), source))
+ else:
+ raise ValueError('SDK legal inventory supports only Windows/macOS')
+ records = []
+ selected = []
+ total = 0
+ seen = set()
+ for label, root in candidates:
+ for source in sorted(root.rglob('*')):
+ if not source.is_file() or source.is_symlink() or not LEGAL.search(source.name):
+ continue
+ if source.suffix.lower() not in {'.txt', '.rtf', '.html', '.htm', '.md', '.xml', ''}:
+ continue
+ resolved = source.resolve()
+ if resolved in seen:
+ continue
+ seen.add(resolved)
+ selected.append((label + '/' + source.relative_to(root).as_posix(), source, source.stat().st_size))
+ index = [{'location': location, 'bytes': size} for location, source, size in selected]
+ (evidence / 'sdk-legal-index.json').write_text(json.dumps({'identity_candidates': identity, 'documents': index, 'candidate_bytes': sum(item['bytes'] for item in index)}, sort_keys=True, indent=2), encoding='utf-8')
+ for location, source, size in selected:
+ check_bounds(size, total, location)
+ data = source.read_bytes()
+ total += len(data)
+ records.append({'location': location, 'sha256': hashlib.sha256(data).hexdigest(), 'raw_bytes_base64': base64.b64encode(data).decode('ascii')})
+ (evidence / 'sdk-legal-documents.json').write_text(json.dumps({'identity_candidates': identity, 'documents': records, 'document_bytes': total, 'coverage': 'Original installed SDK documents for review, not proof of selected linker or redistribution compatibility.'}, sort_keys=True, indent=2), encoding='utf-8')
+ print(json.dumps({'sdk_legal_documents': len(records), 'document_bytes': total}))
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 2:
+ raise SystemExit('usage: collect_lsp_sdk_legal.py EVIDENCE_DIRECTORY')
+ collect(Path(sys.argv[1]))
diff --git a/scripts/lsp_distribution.py b/scripts/lsp_distribution.py
new file mode 100644
index 0000000..b57340b
--- /dev/null
+++ b/scripts/lsp_distribution.py
@@ -0,0 +1,291 @@
+"""Сохранить binary, notices и corresponding source в одном проверяемом payload."""
+
+import hashlib
+import json
+from pathlib import Path, PurePosixPath
+import re
+import shutil
+import sys
+import tomllib
+
+from check_embedded_notices import MARKER, MAX_BINARY, MAX_JSON, _extract, _read
+
+TARGETS = {
+ 'x86_64-unknown-linux-gnu': ('linux-x64', 'ktav-lsp-linux-amd64'),
+ 'aarch64-unknown-linux-gnu': ('linux-arm64', 'ktav-lsp-linux-arm64'),
+ 'x86_64-apple-darwin': ('darwin-x64', 'ktav-lsp-darwin-amd64'),
+ 'aarch64-apple-darwin': ('darwin-arm64', 'ktav-lsp-darwin-arm64'),
+ 'x86_64-pc-windows-gnullvm': ('win32-x64', 'ktav-lsp-windows-amd64.exe'),
+ 'aarch64-pc-windows-gnullvm': ('win32-arm64', 'ktav-lsp-windows-arm64.exe'),
+}
+MAX_SOURCE = 128 * 1024 * 1024
+MAX_PAYLOAD = 256 * 1024 * 1024
+CORE_CHECKSUM = '7140dfe2fa6c320e74768cd6a637828c2d26f81746254f4fcd805f3993bd3fd5'
+
+
+def name(value):
+ path = PurePosixPath(value)
+ if not value or len(path.parts) != 1 or path.name != value or value.startswith('.') or '\\' in value or ':' in value or not re.fullmatch(r'[A-Za-z0-9_.-]+', value):
+ raise ValueError('unsafe distribution filename')
+ return value
+
+
+def file_info(path, limit):
+ if path.is_symlink() or not path.is_file():
+ raise ValueError('distribution input must be a regular file')
+ digest = hashlib.sha256()
+ size = 0
+ with path.open('rb') as source:
+ while chunk := source.read(1024 * 1024):
+ size += len(chunk)
+ if size > limit:
+ raise ValueError('distribution file exceeds size bound')
+ digest.update(chunk)
+ return {'bytes': size, 'sha256': digest.hexdigest()}
+
+
+def text(item):
+ data = item['text'].encode('utf-8')
+ if hashlib.sha256(data).hexdigest() != item['sha256']:
+ raise ValueError('original licence text digest mismatch')
+ return data
+
+
+def cpu(binary, target):
+ arm = target.startswith('aarch64-')
+ if 'linux' in target:
+ if len(binary) < 64 or binary[:6] != b'\x7fELF\x02\x01' or int.from_bytes(binary[16:18], 'little') not in {2, 3} or int.from_bytes(binary[18:20], 'little') != (183 if arm else 62) or int.from_bytes(binary[24:32], 'little') == 0:
+ raise ValueError('distribution ELF CPU/format mismatch')
+ elif 'apple' in target:
+ if len(binary) < 32 or binary[:4] != b'\xcf\xfa\xed\xfe' or int.from_bytes(binary[4:8], 'little') != (0x0100000C if arm else 0x01000007) or int.from_bytes(binary[12:16], 'little') != 2:
+ raise ValueError('distribution Mach-O CPU/format mismatch')
+ else:
+ offset = int.from_bytes(binary[60:64], 'little') if len(binary) >= 64 else len(binary)
+ characteristics = int.from_bytes(binary[offset + 22:offset + 24], 'little')
+ if binary[:2] != b'MZ' or offset > len(binary) - 24 or binary[offset:offset + 4] != b'PE\0\0' or int.from_bytes(binary[offset + 4:offset + 6], 'little') != (0xAA64 if arm else 0x8664) or not characteristics & 2 or characteristics & 0x2000:
+ raise ValueError('distribution PE CPU/format mismatch')
+
+
+def resource(binary, notice, compressed):
+ expected = MARKER + len(compressed).to_bytes(8, 'little') + compressed
+ if _extract(binary)[0] != notice or binary.count(expected) != 1:
+ raise ValueError('distribution resource differs from notice sidecars')
+
+
+def cargo_plain(bundle):
+ sections = [b'Ktav LSP third-party notices.\nConservative Cargo source inventory; not an exact linked-code count.\n']
+ for item in [*bundle['licenses'], *bundle['notices']]:
+ sections.extend([b'\n========================================\n', text(item)])
+ return b'\n'.join(sections)
+
+
+def core_identity(bundle, lock):
+ core = [item for item in tomllib.loads(lock.decode('utf-8'))['package'] if item['name'] == 'ktav']
+ own = [item for item in bundle['packages'] if item['name'] == 'ktav-lsp']
+ if len(core) != 1 or core[0].get('version') != '0.8.1' or core[0].get('checksum') != CORE_CHECKSUM or len(own) != 1 or own[0].get('version') != '0.8.1' or hashlib.sha256(lock).hexdigest() != bundle['cargo_lock_sha256']:
+ raise ValueError('distribution source/core/lock identity changed')
+
+
+def source_reference(bundle, target, source_ref):
+ runtimes = bundle.get('non_cargo_runtimes', [])
+ if 'linux' not in target:
+ return None
+ if len(runtimes) != 1:
+ raise ValueError('missing reviewed GNU startup runtime')
+ runtime = runtimes[0]
+ terms = runtime['startup_terms']
+ arm = target == 'aarch64-unknown-linux-gnu'
+ if terms.get('corresponding_source_required') is not arm or terms.get('compiled_linking_exception') is not (not arm):
+ raise ValueError('GNU startup source obligations differ from target')
+ if not arm:
+ return None
+ expected = 'ktav-lsp-source-' + target + '.tar.gz'
+ reference = runtime['corresponding_source']
+ if reference.get('archive') != expected or reference.get('source_ref') != source_ref:
+ raise ValueError('GNU corresponding-source identity mismatch')
+ return expected
+
+
+def report_identity(report, binary_sha, notice_sha, target):
+ if report.get('binary_sha256') != binary_sha or report.get('notice_sha256') != notice_sha or ('target' in report and report['target'] != target):
+ raise ValueError('target verification is not bound to distribution bytes')
+ if 'apple' in target and (report.get('dynamic_libraries') != ['/usr/lib/libSystem.B.dylib'] or report.get('iconv_symbol_imports') is not False):
+ raise ValueError('unreviewed macOS dynamic runtime')
+ return report
+
+
+def provider_report(evidence, binary_sha, notice_sha, target):
+ filename = 'native-windows-verification.json' if 'windows' in target else 'native-macos-verification.json' if 'apple' in target else 'native-resource-verification.json'
+ return report_identity(json.loads(_read(evidence / filename, MAX_JSON)), binary_sha, notice_sha, target)
+
+
+def stage(evidence, binary_path, target, source_directory, output):
+ if target not in TARGETS:
+ raise ValueError('unreviewed LSP distribution target')
+ if output.exists() and (output.is_symlink() or not output.is_dir() or any(output.iterdir())):
+ raise ValueError('distribution output must be a new empty directory')
+ platform, asset = TARGETS[target]
+ binary = _read(binary_path, MAX_BINARY)
+ cpu(binary, target)
+ notice = _read(evidence / 'NOTICE.json', MAX_JSON)
+ compressed = _read(evidence / 'NOTICE.json.gz', 4 * 1024 * 1024)
+ resource(binary, notice, compressed)
+ bundle = json.loads(notice)
+ if bundle.get('schema_version') != 1 or not bundle.get('packages'):
+ raise ValueError('invalid distribution notice schema')
+ lock = _read(evidence / 'Cargo.lock', MAX_JSON)
+ core_identity(bundle, lock)
+ provenance = json.loads(_read(evidence / 'source-provenance.json', MAX_JSON))
+ source_ref = provenance['source_ref']
+ if not re.fullmatch(r'[0-9a-f]{40}', source_ref):
+ raise ValueError('missing immutable distribution source reference')
+ binary_sha = hashlib.sha256(binary).hexdigest()
+ notice_sha = hashlib.sha256(notice).hexdigest()
+ report = provider_report(evidence, binary_sha, notice_sha, target)
+ stdlib = _read(evidence / 'COPYRIGHT-library.html', MAX_JSON)
+ if text(bundle['rust_standard_library']) != stdlib:
+ raise ValueError('original Rust standard-library report changed')
+ data = {
+ asset: binary,
+ asset + '.NOTICE.json': notice,
+ asset + '.NOTICE.json.gz': compressed,
+ asset + '.THIRD-PARTY-NOTICES.txt': cargo_plain(bundle),
+ asset + '.COPYRIGHT-library.html': stdlib,
+ asset + '.Cargo.lock': lock,
+ }
+ root = Path(__file__).resolve().parents[1]
+ for filename in ['LICENSE-MIT', 'LICENSE-APACHE']:
+ data[asset + '.' + filename] = _read(root / filename, MAX_JSON)
+ runtime_file = 'NOTICE.gnu-startup.txt' if 'linux' in target else 'NOTICE.windows-runtime.txt' if 'windows' in target else None
+ if runtime_file:
+ runtime_notice = _read(evidence / runtime_file, MAX_JSON)
+ if not runtime_notice.strip() or hashlib.sha256(runtime_notice).hexdigest() != report.get('plain_notice_sha256'):
+ raise ValueError('plain runtime notice is not bound to target verification')
+ data[asset + '.' + runtime_file] = runtime_notice
+ archive = source_reference(bundle, target, source_ref)
+ source_path = None
+ binding_file = None
+ if archive:
+ source_path = source_directory / name(archive)
+ source_info = file_info(source_path, MAX_SOURCE)
+ binding = json.loads(_read(evidence / 'native-source-binding.json', MAX_JSON))
+ if binding.get('target') != target or binding.get('source_ref') != source_ref or binding['binary']['sha256'] != binary_sha or binding['notice']['sha256'] != notice_sha or binding['corresponding_source'] != {'file': archive, 'sha256': source_info['sha256']}:
+ raise ValueError('corresponding source is not bound to distribution binary')
+ binding_file = asset + '.source-binding.json'
+ rebound = {**binding, 'binary': {'file': asset, 'sha256': binary_sha}, 'notice': {'file': asset + '.NOTICE.json', 'sha256': notice_sha}, 'coverage': 'Matching binary, readable notices and complete source/relink materials are delivered in this payload.'}
+ data[binding_file] = (json.dumps(rebound, sort_keys=True, indent=2) + '\n').encode('utf-8')
+ files = {name(filename): {'bytes': len(content), 'sha256': hashlib.sha256(content).hexdigest()} for filename, content in data.items()}
+ if archive:
+ files[archive] = source_info
+ if sum(item['bytes'] for item in files.values()) > MAX_PAYLOAD:
+ raise ValueError('LSP distribution payload exceeds bound')
+ manifest = {
+ 'schema_version': 1, 'target': target, 'platform': platform, 'asset': asset,
+ 'source_ref': source_ref, 'binary': asset, 'notice': asset + '.NOTICE.json',
+ 'notice_gzip': asset + '.NOTICE.json.gz', 'runtime_notice': asset + '.' + runtime_file if runtime_file else None,
+ 'stdlib_report': asset + '.COPYRIGHT-library.html', 'cargo_plain_notice': asset + '.THIRD-PARTY-NOTICES.txt',
+ 'cargo_lock': asset + '.Cargo.lock',
+ 'first_party_licenses': [asset + '.LICENSE-MIT', asset + '.LICENSE-APACHE'],
+ 'corresponding_source': archive, 'source_binding': binding_file,
+ 'files': files, 'verification': report,
+ }
+ output.mkdir(parents=True, exist_ok=True)
+ for filename, content in data.items():
+ with (output / filename).open('xb') as destination:
+ destination.write(content)
+ if source_path:
+ shutil.copyfile(source_path, output / archive)
+ if 'windows' not in target:
+ (output / asset).chmod(0o755)
+ with (output / (asset + '.distribution.json')).open('xb') as destination:
+ destination.write((json.dumps(manifest, sort_keys=True, indent=2) + '\n').encode('utf-8'))
+ verify(output)
+ return manifest
+
+
+def required_files(manifest):
+ target, asset = manifest['target'], manifest['asset']
+ binary_names = {asset, 'ktav-lsp.exe' if 'windows' in target else 'ktav-lsp'}
+ if manifest['binary'] not in binary_names or not re.fullmatch(r'[0-9a-f]{40}', manifest['source_ref']):
+ raise ValueError('invalid distribution binary/source identity')
+ runtime = asset + '.NOTICE.gnu-startup.txt' if 'linux' in target else asset + '.NOTICE.windows-runtime.txt' if 'windows' in target else None
+ source = 'ktav-lsp-source-' + target + '.tar.gz' if target == 'aarch64-unknown-linux-gnu' else None
+ fields = {
+ 'notice': asset + '.NOTICE.json', 'notice_gzip': asset + '.NOTICE.json.gz',
+ 'stdlib_report': asset + '.COPYRIGHT-library.html',
+ 'cargo_plain_notice': asset + '.THIRD-PARTY-NOTICES.txt',
+ 'cargo_lock': asset + '.Cargo.lock', 'runtime_notice': runtime,
+ 'corresponding_source': source,
+ 'source_binding': asset + '.source-binding.json' if source else None,
+ }
+ if any(manifest.get(key) != value for key, value in fields.items()) or manifest.get('first_party_licenses') != [asset + '.LICENSE-MIT', asset + '.LICENSE-APACHE']:
+ raise ValueError('required distribution legal/source role was dropped')
+ return {manifest['binary'], *manifest['first_party_licenses'], *(value for value in fields.values() if value)}
+
+
+def verify_payload(filenames, read, info):
+ manifests = [item for item in filenames if item.endswith('.distribution.json')]
+ if len(manifests) != 1:
+ raise ValueError('missing or duplicate distribution manifest')
+ manifest = json.loads(read(manifests[0], MAX_JSON))
+ target = manifest['target']
+ if manifest.get('schema_version') != 1 or target not in TARGETS or (manifest['platform'], manifest['asset']) != TARGETS[target]:
+ raise ValueError('invalid LSP distribution identity')
+ asset = manifest['asset']
+ if set(manifest['files']) != required_files(manifest):
+ raise ValueError('distribution file inventory omits required materials')
+ expected = {name(item) for item in manifest['files']} | {manifests[0]}
+ if manifests[0] != asset + '.distribution.json' or set(filenames) != expected:
+ raise ValueError('missing or unexpected distribution file')
+ total = 0
+ for filename, identity in manifest['files'].items():
+ limit = MAX_SOURCE if filename == manifest['corresponding_source'] else MAX_BINARY if filename == manifest['binary'] else MAX_JSON
+ actual = info(filename, limit)
+ if actual != identity:
+ raise ValueError('distribution file identity mismatch')
+ total += actual['bytes']
+ if total > MAX_PAYLOAD:
+ raise ValueError('LSP distribution payload exceeds bound')
+ binary = read(name(manifest['binary']), MAX_BINARY)
+ cpu(binary, target)
+ notice = read(name(manifest['notice']), MAX_JSON)
+ bundle = json.loads(notice)
+ core_identity(bundle, read(name(manifest['cargo_lock']), MAX_JSON))
+ report = report_identity(manifest['verification'], hashlib.sha256(binary).hexdigest(), hashlib.sha256(notice).hexdigest(), target)
+ if manifest['runtime_notice'] and (manifest['files'][manifest['runtime_notice']]['bytes'] == 0 or manifest['files'][manifest['runtime_notice']]['sha256'] != report.get('plain_notice_sha256')):
+ raise ValueError('staged plain runtime notice lost its verification binding')
+ if any(manifest['files'][item]['bytes'] == 0 for item in manifest['first_party_licenses']):
+ raise ValueError('empty first-party distribution licence')
+ resource(binary, notice, read(name(manifest['notice_gzip']), 4 * 1024 * 1024))
+ if read(name(manifest['stdlib_report']), MAX_JSON) != text(bundle['rust_standard_library']) or read(name(manifest['cargo_plain_notice']), MAX_JSON) != cargo_plain(bundle):
+ raise ValueError('readable original source notices changed')
+ source = source_reference(bundle, target, manifest['source_ref'])
+ if source != manifest['corresponding_source']:
+ raise ValueError('required corresponding source was dropped')
+ if source:
+ binding = json.loads(read(name(manifest['source_binding']), MAX_JSON))
+ if binding['target'] != target or binding['source_ref'] != manifest['source_ref'] or binding['binary'] != {'file': manifest['binary'], 'sha256': manifest['files'][manifest['binary']]['sha256']} or binding['notice'] != {'file': manifest['notice'], 'sha256': manifest['files'][manifest['notice']]['sha256']} or binding['corresponding_source'] != {'file': source, 'sha256': manifest['files'][source]['sha256']}:
+ raise ValueError('staged corresponding-source binding mismatch')
+ return manifest
+
+
+def verify(directory):
+ manifests = list(directory.glob('*.distribution.json'))
+ if len(manifests) != 1 or manifests[0].is_symlink():
+ raise ValueError('missing or duplicate distribution manifest')
+ filenames = [item.name for item in directory.iterdir()]
+ return verify_payload(
+ filenames,
+ lambda filename, limit: _read(directory / filename, limit),
+ lambda filename, limit: file_info(directory / filename, limit),
+ )
+
+
+if __name__ == '__main__':
+ if len(sys.argv) == 3 and sys.argv[1] == 'verify':
+ result = verify(Path(sys.argv[2]))
+ elif len(sys.argv) == 7 and sys.argv[1] == 'stage':
+ result = stage(Path(sys.argv[2]), Path(sys.argv[3]), sys.argv[4], Path(sys.argv[5]), Path(sys.argv[6]))
+ else:
+ raise SystemExit('usage: lsp_distribution.py stage EVIDENCE BINARY TARGET SOURCE_DIRECTORY OUTPUT | verify PAYLOAD')
+ print(json.dumps({'target': result['target'], 'asset': result['asset'], 'files': len(result['files']), 'corresponding_source': result['corresponding_source']}, sort_keys=True, indent=2))
diff --git a/scripts/lsp_gnullvm_notices.py b/scripts/lsp_gnullvm_notices.py
new file mode 100644
index 0000000..34369a6
--- /dev/null
+++ b/scripts/lsp_gnullvm_notices.py
@@ -0,0 +1,133 @@
+"""Подготовить Windows runtime notices из проверенных оригинальных исходников."""
+
+import gzip
+import hashlib
+import json
+from pathlib import Path
+import re
+import sys
+import urllib.error
+import urllib.request
+
+SDK_SHA256 = 'fd5462b7f5d93b2ff981fcd3f9c7e427e47f3203c64ea91c27bcc444eebd74cd'
+REVISIONS = {
+ 'mingw-w64/mingw-w64': '0d6dfbc348dfad714761c0a7151615767f96bcb5',
+ 'llvm/llvm-project': '7a941dfb2877a0b8cf30323fefa85ad019e0b0f5',
+}
+TARGETS = {'x86_64-pc-windows-gnullvm', 'aarch64-pc-windows-gnullvm'}
+DATA_ONLY = {'mingw-w64-crt/crt/cinitexe.c', 'mingw-w64-crt/misc/mingw_matherr.c'}
+MAX_FILE = 4 * 1024 * 1024
+MAX_TOTAL = 64 * 1024 * 1024
+
+
+def original(url):
+ if not any(url.startswith('https://raw.githubusercontent.com/' + repo + '/' + revision + '/') for repo, revision in REVISIONS.items()):
+ raise ValueError('unreviewed runtime source URL')
+ for attempt in range(3):
+ try:
+ with urllib.request.urlopen(url, timeout=90) as response:
+ data = response.read(MAX_FILE + 1)
+ break
+ except urllib.error.HTTPError as error:
+ if error.code not in {500, 502, 503, 504} or attempt == 2:
+ raise
+ except (TimeoutError, urllib.error.URLError):
+ if attempt == 2:
+ raise
+ if len(data) > MAX_FILE:
+ raise ValueError('runtime source exceeds size bound')
+ return data
+
+
+def catalogue(root):
+ data = (root / 'ci/lsp-gnullvm-runtime-catalog.json').read_bytes()
+ if len(data) > MAX_FILE:
+ raise ValueError('runtime catalogue exceeds bound')
+ result = json.loads(data)
+ if result.get('schema_version') != 1 or result.get('sdk_archive_sha256') != SDK_SHA256 or result.get('sdk_version') != '20261020':
+ raise ValueError('unreviewed Windows runtime SDK')
+ if result.get('mingw_revision') != REVISIONS['mingw-w64/mingw-w64'] or result.get('llvm_revision') != REVISIONS['llvm/llvm-project']:
+ raise ValueError('unreviewed Windows runtime source revisions')
+ if set(result['targets']) != TARGETS or len(result['source_files']) != 55 or len(result['original_documents']) != 6:
+ raise ValueError('Windows runtime source inventory changed')
+ return result, hashlib.sha256(data).hexdigest()
+
+
+def verify_sources(catalog, read=original):
+ seen = set()
+ total = 0
+ for item in [*catalog['source_files'], *catalog['original_documents']]:
+ url = item['source']
+ if url in seen:
+ raise ValueError('duplicate runtime source record')
+ seen.add(url)
+ data = read(url)
+ total += len(data)
+ if len(data) > MAX_FILE or total > MAX_TOTAL or hashlib.sha256(data).hexdigest() != item['sha256']:
+ raise ValueError('runtime source bytes differ from review')
+ if 'text' in item:
+ if item['text'].encode('utf-8') != data:
+ raise ValueError('runtime legal document differs from original')
+ continue
+ comments = re.findall(r'/\*.*?\*/|(?:^[ \t]*//[^\n]*(?:\n|$))+', data.decode('utf-8'), re.M | re.S)
+ expected = [text for text in comments if re.search(r'copyright|licens|public domain|permission|redistribution', text, re.I)]
+ if item.get('source_notices') != expected or (not expected and item['path'] not in DATA_ONLY):
+ raise ValueError('runtime source notices differ from original')
+
+
+def augment(bundle, catalog, target, digest):
+ if target not in TARGETS or bundle.get('schema_version') != 1 or 'non_cargo_runtimes' in bundle:
+ raise ValueError('unexpected Windows notice preparation state')
+ runtime = {
+ 'name': 'LLVM-MinGW executable startup, MinGW runtime and LLVM libunwind',
+ 'target': target,
+ 'sdk_archive_sha256': SDK_SHA256,
+ 'sdk_recipe_revision': catalog['sdk_recipe_revision'],
+ 'mingw_revision': catalog['mingw_revision'],
+ 'llvm_revision': catalog['llvm_revision'],
+ 'catalog_sha256': digest,
+ 'source_files': catalog['source_files'],
+ 'original_documents': catalog['original_documents'],
+ 'coverage': catalog['coverage'],
+ 'license_document_scope': 'Original source terms determine applicability. Including the SDK runtime legal collection does not classify every SDK component as linked code.',
+ }
+ return {**bundle, 'non_cargo_runtimes': [runtime], 'coverage': bundle['coverage'] + ' Includes reviewed Windows GNU/LLVM source notices; retained linker inputs require a separate final-binary gate.'}
+
+
+def plain_notice(catalog):
+ sections = ['Ktav LSP Windows GNU/LLVM runtime notices.\nOriginal upstream terms follow unchanged.\n']
+ for item in catalog['original_documents']:
+ sections.extend(['\n===== ' + item['source'] + ' =====\n', item['text']])
+ for item in catalog['source_files']:
+ sections.extend(['\n===== ' + item['source'] + ' =====\n', '\n'.join(item['source_notices'])])
+ return '\n'.join(sections).encode('utf-8')
+
+
+def prepare(evidence, target):
+ root = Path(__file__).resolve().parents[1]
+ catalog, digest = catalogue(root)
+ verify_sources(catalog)
+ notice = evidence / 'NOTICE.json'
+ data = notice.read_bytes()
+ if len(data) > MAX_TOTAL:
+ raise ValueError('Cargo/std notice exceeds size bound')
+ bundle = augment(json.loads(data), catalog, target, digest)
+ combined = (json.dumps(bundle, ensure_ascii=False, sort_keys=True, indent=2) + '\n').encode('utf-8')
+ payload = gzip.compress(combined, mtime=0)
+ if len(combined) > MAX_TOTAL or len(payload) > MAX_FILE:
+ raise ValueError('Windows runtime notice resource exceeds bound')
+ original_notice = evidence / 'NOTICE.cargo-std.json'
+ if original_notice.exists():
+ raise ValueError('Windows runtime notices already prepared')
+ original_notice.write_bytes(data)
+ notice.write_bytes(combined)
+ (evidence / 'NOTICE.json.gz').write_bytes(payload)
+ (evidence / 'NOTICE.windows-runtime.txt').write_bytes(plain_notice(catalog))
+ (evidence / 'lsp-gnullvm-runtime-catalog.json').write_bytes((root / 'ci/lsp-gnullvm-runtime-catalog.json').read_bytes())
+ print(f'Prepared {len(catalog["source_files"])} source-backed Windows runtime records for {target}')
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 3:
+ raise SystemExit('usage: lsp_gnullvm_notices.py EVIDENCE TARGET')
+ prepare(Path(sys.argv[1]), sys.argv[2])
diff --git a/scripts/lsp_runtime_notices.py b/scripts/lsp_runtime_notices.py
new file mode 100644
index 0000000..74d658f
--- /dev/null
+++ b/scripts/lsp_runtime_notices.py
@@ -0,0 +1,120 @@
+"""Связать LSP runtime notices с exact SDK source и source/relink artifact."""
+
+import gzip
+import hashlib
+import json
+from pathlib import Path, PurePosixPath
+import re
+import subprocess
+import sys
+
+REVISION = '5ad91a646a753cc3eecd8751e61cf458dadd9ac4'
+GNU = {'LGPL-2.1.txt': '20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95', 'GPL-2.0.txt': 'edaef632cbb643e4e7a221717a6c441a4c1a7c918e6e4d56debc3d8739b233f6', 'GPL-3.0.txt': '8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903'}
+
+
+def read(path, limit=4 * 1024 * 1024):
+ with path.open('rb') as source:
+ data = source.read(limit + 1)
+ if len(data) > limit:
+ raise ValueError('LSP runtime input exceeds limit')
+ return data
+
+
+def sources(lib, catalog):
+ if catalog.get('source_revision') != REVISION or catalog.get('zig_version') != '0.14.0':
+ raise ValueError('unreviewed LSP Zig source identity')
+ lib = lib.resolve()
+ seen = set()
+ for item in catalog['files']:
+ relative = PurePosixPath(item['path'])
+ if relative.is_absolute() or '..' in relative.parts or '\\' in item['path'] or item['path'] in seen:
+ raise ValueError('invalid LSP runtime source path')
+ seen.add(item['path'])
+ if item['path'] == 'LICENSE':
+ source, boundary = lib.parent / 'LICENSE', lib.parent
+ elif relative.parts and relative.parts[0] == 'lib':
+ source, boundary = lib.joinpath(*relative.parts[1:]), lib
+ else:
+ raise ValueError('unexpected LSP source location')
+ if not source.resolve().is_relative_to(boundary):
+ raise ValueError('LSP runtime source escapes SDK')
+ data = read(source)
+ if hashlib.sha256(data).hexdigest() != item['sha256']:
+ raise ValueError('LSP runtime source bytes differ from review')
+ if 'license_text' in item:
+ if item['license_text'].encode('utf-8') != data:
+ raise ValueError('runtime license text differs from original source')
+ else:
+ comments = re.findall(r'/\*.*?\*/|(?:^[ \t]*//[^\n]*(?:\n|$))+', data.decode('utf-8'), re.M | re.S)
+ expected = [text for text in comments if re.search(r'copyright|SPDX-License-Identifier|redistribution|permission is hereby|licens', text, re.I)]
+ if not expected or item.get('source_notices') != expected:
+ raise ValueError('runtime copyright notices differ from original source')
+ return catalog['files']
+
+
+def startup_terms(catalog, target):
+ if target not in {'x86_64-unknown-linux-gnu', 'aarch64-unknown-linux-gnu'}:
+ raise ValueError('unreviewed LSP runtime target')
+ terms = catalog['startup_terms'][target]
+ arm = target == 'aarch64-unknown-linux-gnu'
+ if terms.get('license') != 'LGPL-2.1-or-later' or terms.get('compiled_linking_exception') is not (not arm) or terms.get('corresponding_source_required') is not arm:
+ raise ValueError('startup licensing conditions changed')
+ expected = 'lib/libc/glibc/sysdeps/' + ('aarch64' if arm else 'x86_64') + '/start-2.33.S'
+ if terms.get('source') != expected:
+ raise ValueError('startup source differs from glibc baseline')
+ return terms
+
+
+def prepare(evidence, target):
+ root = Path(__file__).resolve().parents[1]
+ catalog_bytes = read(root / 'ci/lsp-zig-runtime-catalog.json')
+ catalog = json.loads(catalog_bytes)
+ terms = startup_terms(catalog, target)
+ if len(catalog['files']) != 42:
+ raise ValueError('LSP runtime source inventory changed')
+ version = subprocess.check_output(['zig', 'version'], text=True).strip()
+ if version != '0.14.0':
+ raise ValueError('unexpected LSP Zig version')
+ environment = json.loads(subprocess.check_output(['zig', 'env']))
+ records = sources(Path(environment['lib_dir']), catalog)
+ provenance = json.loads(read(evidence / 'source-provenance.json'))
+ if not re.fullmatch('[0-9a-f]{40}', provenance['source_ref']):
+ raise ValueError('missing immutable LSP source reference')
+ documents = json.loads(read(root / 'ci/licenses/gnu-source-texts.json'))['licenses']
+ if {item['file'] for item in documents} != set(GNU) or len(documents) != len(GNU):
+ raise ValueError('incomplete GNU source license documents')
+ texts = []
+ for item in documents:
+ data = read(root / 'ci/licenses' / item['file'])
+ if hashlib.sha256(data).hexdigest() != GNU[item['file']] or item['sha256'] != GNU[item['file']]:
+ raise ValueError('original GNU license document changed')
+ texts.append({**item, 'text': data.decode('utf-8')})
+ bundle = json.loads(read(evidence / 'NOTICE.json', 64 * 1024 * 1024))
+ if bundle.get('schema_version') != 1 or 'non_cargo_runtimes' in bundle:
+ raise ValueError('unexpected LSP notice preparation state')
+ runtime = {'name': 'Zig vendored LLVM libunwind, GNU nonshared runtime and executable startup', 'zig_version': version, 'source_revision': REVISION, 'catalog_sha256': hashlib.sha256(catalog_bytes).hexdigest(), 'files': records, 'credits': catalog['credits'], 'coverage': catalog['coverage'], 'startup_terms': terms, 'original_gnu_license_documents': texts, 'license_document_scope': 'Original source files determine applicable terms; inclusion of a document is not a blanket binary license.'}
+ if terms['corresponding_source_required']:
+ runtime['corresponding_source'] = {'source_ref': provenance['source_ref'], 'archive': 'ktav-lsp-source-' + target + '.tar.gz', 'conditions': 'Matching source and relink materials must be offered with equivalent access from the same final distribution location; a CI-only artifact is not sufficient.'}
+ bundle['non_cargo_runtimes'] = [runtime]
+ bundle['coverage'] += ' Includes source-verified GNU/LLVM runtime and startup notices; retained inputs and corresponding-source distribution require independent gates.'
+ data = (json.dumps(bundle, ensure_ascii=False, sort_keys=True, indent=2) + '\n').encode('utf-8')
+ payload = gzip.compress(data, mtime=0)
+ if len(data) > 64 * 1024 * 1024 or len(payload) > 4 * 1024 * 1024:
+ raise ValueError('LSP runtime notice resource exceeds bounds')
+ (evidence / 'NOTICE.json').write_bytes(data)
+ (evidence / 'NOTICE.json.gz').write_bytes(payload)
+ (evidence / 'lsp-zig-runtime-catalog.json').write_bytes(catalog_bytes)
+ notice = ('Ktav LSP includes GNU C Library startup code.\nOriginal per-file conditions and copyright notices are retained in NOTICE.json.\nStartup license: LGPL-2.1-or-later.\nCompiled-linking exception for this architecture: ' + str(terms['compiled_linking_exception']) + '\nSource reference: ' + provenance['source_ref'] + '\n')
+ if terms['corresponding_source_required']:
+ notice += 'Matching source/relink archive: ' + runtime['corresponding_source']['archive'] + '\nModification for personal use and reverse engineering for debugging such modifications are not contractually prohibited by Ktav.\n'
+ original_startup = next(item for item in records if item['path'] == terms['source'])
+ notice += '\n' + '\n'.join(original_startup['source_notices']) + '\n'
+ notice += '\n' + next(item['text'] for item in texts if item['file'] == 'LGPL-2.1.txt')
+ (evidence / 'NOTICE.gnu-startup.txt').write_text(notice, encoding='utf-8')
+ print(f'Prepared {len(records)} exact LSP runtime source records for {target}')
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 3:
+ raise SystemExit('usage: lsp_runtime_notices.py EVIDENCE TARGET')
+ prepare(Path(sys.argv[1]), sys.argv[2])
diff --git a/scripts/organize_lsp_distribution.py b/scripts/organize_lsp_distribution.py
new file mode 100644
index 0000000..7ca2620
--- /dev/null
+++ b/scripts/organize_lsp_distribution.py
@@ -0,0 +1,91 @@
+"""Перенести все legal/source материалы в прежние plugin binary directories."""
+
+import copy
+import hashlib
+import json
+from pathlib import Path
+import shutil
+import sys
+
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+from lsp_distribution import TARGETS, verify
+
+
+def empty_output(path):
+ if path.is_symlink() or (path.exists() and (not path.is_dir() or any(path.iterdir()))):
+ raise ValueError('plugin binary output must be new and empty')
+
+
+def copy_platform(source, output):
+ manifest = verify(source)
+ empty_output(output)
+ if output.resolve().is_relative_to(source.resolve()):
+ raise ValueError('plugin output overlaps distribution input')
+ client_name = 'ktav-lsp.exe' if 'windows' in manifest['target'] else 'ktav-lsp'
+ previous_name = manifest['binary']
+ if client_name != previous_name and client_name in manifest['files']:
+ raise ValueError('duplicate canonical plugin executable')
+ updated = copy.deepcopy(manifest)
+ identity = updated['files'].pop(previous_name)
+ updated['files'][client_name] = identity
+ updated['binary'] = client_name
+ binding_name = manifest['source_binding']
+ binding_data = None
+ if binding_name:
+ binding = json.loads((source / binding_name).read_bytes())
+ binding['binary'] = {'file': client_name, 'sha256': identity['sha256']}
+ binding_data = (json.dumps(binding, sort_keys=True, indent=2) + '\n').encode('utf-8')
+ updated['files'][binding_name] = {'bytes': len(binding_data), 'sha256': hashlib.sha256(binding_data).hexdigest()}
+ output.mkdir(parents=True, exist_ok=True)
+ for filename in manifest['files']:
+ if filename == binding_name:
+ continue
+ destination = output / (client_name if filename == previous_name else filename)
+ if destination.exists():
+ raise ValueError('plugin destination already exists')
+ shutil.copyfile(source / filename, destination)
+ if binding_data is not None:
+ with (output / binding_name).open('xb') as destination:
+ destination.write(binding_data)
+ if 'windows' not in manifest['target']:
+ (output / client_name).chmod(0o755)
+ with (output / (manifest['asset'] + '.distribution.json')).open('xb') as destination:
+ destination.write((json.dumps(updated, sort_keys=True, indent=2) + '\n').encode('utf-8'))
+ checked = verify(output)
+ if checked['files'][client_name] != manifest['files'][previous_name]:
+ raise ValueError('plugin executable bytes changed during organization')
+ return checked
+
+
+def organize(incoming, output):
+ if incoming.is_symlink() or not incoming.is_dir():
+ raise ValueError('distribution input must be a regular directory')
+ empty_output(output)
+ if output.resolve().is_relative_to(incoming.resolve()):
+ raise ValueError('plugin output overlaps distribution inputs')
+ inputs = {}
+ source_refs = set()
+ for directory in sorted(incoming.iterdir()):
+ if directory.is_symlink() or not directory.is_dir():
+ raise ValueError('unexpected non-directory distribution input')
+ manifest = verify(directory)
+ if manifest['target'] in inputs:
+ raise ValueError('duplicate plugin target distribution')
+ inputs[manifest['target']] = directory
+ source_refs.add(manifest['source_ref'])
+ if set(inputs) != set(TARGETS) or len(source_refs) != 1:
+ raise ValueError('plugin requires six matching-source platform payloads')
+ output.mkdir(parents=True, exist_ok=True)
+ records = []
+ for target, (platform, _) in TARGETS.items():
+ manifest = copy_platform(inputs[target], output / platform)
+ records.append({'target': target, 'platform': platform, 'binary_sha256': manifest['files'][manifest['binary']]['sha256'], 'source_archive': manifest['corresponding_source']})
+ if {path.name for path in output.iterdir()} != {value[0] for value in TARGETS.values()}:
+ raise ValueError('unexpected plugin platform directory')
+ return {'source_ref': next(iter(source_refs)), 'platforms': records}
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 3:
+ raise SystemExit('usage: organize_lsp_distribution.py DOWNLOADED_PAYLOADS PLUGIN_BIN_DIRECTORY')
+ print(json.dumps(organize(Path(sys.argv[1]), Path(sys.argv[2])), sort_keys=True, indent=2))
diff --git a/scripts/prepare_lsp_notices.py b/scripts/prepare_lsp_notices.py
new file mode 100644
index 0000000..7ff9db4
--- /dev/null
+++ b/scripts/prepare_lsp_notices.py
@@ -0,0 +1,78 @@
+"""Подготовить source-backed Cargo/std notices для существующего locked LSP source."""
+
+import gzip
+import json
+from pathlib import Path
+import shutil
+import subprocess
+import sys
+
+from cargo_notice_bundle import MAX_BUNDLE_BYTES, _build
+from supplement_lsp_license import supplement, supplement_fallbacks
+from rust_compiler_notices import collect as compiler_notices
+
+
+def prepare(evidence):
+ root = Path.cwd().resolve()
+ evidence = evidence.resolve()
+ lock = root / 'Cargo.lock'
+ if evidence.is_relative_to(root) or (evidence.exists() and (not evidence.is_dir() or any(evidence.iterdir()))):
+ raise ValueError('LSP evidence must be empty and outside source')
+ if not lock.is_file() or lock.is_symlink():
+ raise ValueError('LSP requires the existing regular Cargo.lock')
+ original = lock.read_bytes()
+ raw = subprocess.check_output(['cargo', 'metadata', '--locked', '--all-features', '--format-version', '1'])
+ metadata = json.loads(raw)
+ own = [item for item in metadata['packages'] if Path(item['manifest_path']).resolve().parent == root]
+ if len(own) != 1 or own[0].get('name') != 'ktav-lsp' or own[0].get('license') != 'MIT OR Apache-2.0':
+ raise ValueError('unexpected first-party LSP license')
+ for name in ('LICENSE-MIT', 'LICENSE-APACHE'):
+ source = root.parent / name
+ target = root / name
+ if target.is_symlink():
+ raise ValueError('LSP license copy must not be a symlink')
+ if target.exists():
+ if target.read_bytes() != source.read_bytes():
+ raise ValueError('LSP own license differs from repository license')
+ else:
+ shutil.copyfile(source, target)
+ for item in metadata['packages']:
+ if evidence.is_relative_to(Path(item['manifest_path']).resolve().parent):
+ raise ValueError('LSP evidence overlaps a package source')
+ evidence.mkdir(parents=True, exist_ok=True)
+ (evidence / 'metadata.json').write_bytes(raw)
+ (evidence / 'Cargo.lock').write_bytes(original)
+ (evidence / 'rustc.txt').write_bytes(subprocess.check_output(['rustc', '--version', '--verbose']))
+ sysroot = subprocess.check_output(['rustc', '--print', 'sysroot'], text=True).strip()
+ shutil.copyfile(Path(sysroot) / 'share/doc/rust/COPYRIGHT-library.html', evidence / 'COPYRIGHT-library.html')
+ report = subprocess.check_output(['cargo', 'about', 'generate', '--locked', '--all-features', '--fail', '--config', '../ci/about.toml', '--format', 'json'])
+ (evidence / 'licenses-cargo-about.json').write_bytes(report)
+ combined, provenance = supplement(metadata, json.loads(report), original,
+ root.parent / 'ci/licenses/valuable-0.1.1.LICENSE')
+ combined, fallback_provenance = supplement_fallbacks(metadata, combined, original,
+ root.parent / 'ci/licenses/lsp-source-supplements.json')
+ provenance.extend(fallback_provenance)
+ combined['source_license_supplements'] = provenance
+ (evidence / 'licenses.json').write_text(json.dumps(combined, ensure_ascii=False, indent=2) + '\n', encoding='utf-8')
+ bundle = json.loads(_build(evidence))
+ bundle['rust_compiler_builtins'] = compiler_notices(root.parent, bundle['rustc'])
+ bundle['source_license_supplements'] = provenance
+ bundle['license_report_origin'] = 'cargo-about plus explicit reviewed source supplements'
+ data = (json.dumps(bundle, ensure_ascii=False, sort_keys=True, indent=2) + '\n').encode('utf-8')
+ if len(data) > MAX_BUNDLE_BYTES:
+ raise ValueError('LSP notice bundle exceeds decoded size limit')
+ compressed = gzip.compress(data, mtime=0)
+ if len(compressed) > 4 * 1024 * 1024 or lock.read_bytes() != original:
+ raise ValueError('LSP notice resource exceeds limit or Cargo.lock changed')
+ (evidence / 'NOTICE.json').write_bytes(data)
+ (evidence / 'NOTICE.json.gz').write_bytes(compressed)
+ print(f'Prepared locked LSP notices: {len(data)} JSON bytes, {len(compressed)} gzip bytes')
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 2:
+ raise SystemExit('usage: prepare_lsp_notices.py EMPTY_EVIDENCE_DIRECTORY')
+ try:
+ prepare(Path(sys.argv[1]))
+ except (OSError, ValueError, KeyError, TypeError, subprocess.CalledProcessError) as error:
+ raise SystemExit(str(error)) from error
diff --git a/scripts/prepare_lsp_source_bundle.py b/scripts/prepare_lsp_source_bundle.py
new file mode 100644
index 0000000..fc7bce8
--- /dev/null
+++ b/scripts/prepare_lsp_source_bundle.py
@@ -0,0 +1,134 @@
+"""Собрать source/relink материалы без изменения исходного release tree."""
+
+import gzip
+import hashlib
+import json
+from pathlib import Path
+import shutil
+import subprocess
+import sys
+import tarfile
+import urllib.request
+
+ZIG_REVISION = '5ad91a646a753cc3eecd8751e61cf458dadd9ac4'
+ZIG_SOURCE_SHA = '30811b074ae10baaf9a8ad6494982d860c42eb73904d40116a18a5022721ef04'
+LGPL_SHA = '20e50fe7aae3e56378ebf0417d9de904f55a0e61e4df315333e632a4d3555d95'
+TARGETS = {'x86_64-unknown-linux-gnu', 'aarch64-unknown-linux-gnu'}
+
+
+def digest(path):
+ result = hashlib.sha256()
+ with path.open('rb') as source:
+ for chunk in iter(lambda: source.read(1024 * 1024), b''):
+ result.update(chunk)
+ return result.hexdigest()
+
+
+def copy_regular(source, target):
+ if source.is_symlink() or not source.is_file():
+ raise ValueError('source bundle requires regular files')
+ target.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copyfile(source, target)
+ shutil.copymode(source, target)
+
+
+def build(evidence, destination, target):
+ root = Path.cwd().resolve()
+ evidence = evidence.resolve()
+ destination = destination.resolve()
+ if target not in TARGETS or destination.exists() or destination.is_relative_to(root):
+ raise ValueError('invalid new source bundle destination or target')
+ destination.mkdir(parents=True)
+ bundle = destination / 'lsp-source'
+ project = bundle / 'project'
+ project.mkdir(parents=True)
+ paths = subprocess.check_output(['git', 'ls-files', '-z', '--', 'lsp/']).decode().split('\0')
+ paths = {path for path in paths if path}
+ paths.update({'lsp/build.rs', 'lsp/LICENSE-MIT', 'lsp/LICENSE-APACHE', 'lsp/Cargo.lock'})
+ for path in sorted(paths):
+ source = root / path
+ relative = Path(path).relative_to('lsp')
+ if '..' in relative.parts:
+ raise ValueError('unsafe source bundle member')
+ copy_regular(source, project / relative)
+ if (project / 'Cargo.lock').read_bytes() != (evidence / 'Cargo.lock').read_bytes():
+ raise ValueError('source bundle lock differs from build evidence')
+ subprocess.run(['cargo', 'vendor', '--locked', '--versioned-dirs', '--manifest-path', str(project / 'Cargo.toml'), str(project / 'vendor')], check=True, stdout=subprocess.PIPE)
+ if (project / 'Cargo.lock').read_bytes() != (evidence / 'Cargo.lock').read_bytes():
+ raise ValueError('vendoring changed release lock')
+ config = project / '.cargo/config.toml'
+ if config.exists():
+ raise ValueError('source already has Cargo configuration requiring review')
+ config.parent.mkdir(exist_ok=True)
+ config.write_text('[source.crates-io]\nreplace-with = "vendored-sources"\n[source.vendored-sources]\ndirectory = "vendor"\n[net]\noffline = true\n', encoding='utf-8')
+ legal = bundle / 'legal'
+ legal.mkdir()
+ for name in ('NOTICE.json', 'NOTICE.json.gz', 'NOTICE.gnu-startup.txt', 'lsp-zig-runtime-catalog.json', 'COPYRIGHT-library.html', 'rustc.txt', 'source-provenance.json'):
+ copy_regular(evidence / name, legal / name)
+ license_path = root / 'ci/licenses/LGPL-2.1.txt'
+ if digest(license_path) != LGPL_SHA:
+ raise ValueError('GNU license text differs from reviewed original')
+ copy_regular(license_path, legal / 'LGPL-2.1.txt')
+ for name, checksum in [('GPL-2.0.txt', 'edaef632cbb643e4e7a221717a6c441a4c1a7c918e6e4d56debc3d8739b233f6'), ('GPL-3.0.txt', '8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903')]:
+ source = root / 'ci/licenses' / name
+ if digest(source) != checksum:
+ raise ValueError('GNU SDK source license differs from reviewed original')
+ copy_regular(source, legal / name)
+ for name in ('valuable-0.1.1.LICENSE', 'lsp-source-supplements.json', 'gnu-source-texts.json'):
+ copy_regular(root / 'ci/licenses' / name, legal / name)
+ upstream = bundle / 'upstream'
+ upstream.mkdir()
+ archive = upstream / 'zig-source.tar.gz'
+ with urllib.request.urlopen('https://codeload.github.com/ziglang/zig/tar.gz/' + ZIG_REVISION, timeout=120) as response, archive.open('xb') as output:
+ total = 0
+ while chunk := response.read(1024 * 1024):
+ total += len(chunk)
+ if total > 256 * 1024 * 1024:
+ raise ValueError('Zig source archive exceeds limit')
+ output.write(chunk)
+ if digest(archive) != ZIG_SOURCE_SHA:
+ raise ValueError('Zig corresponding source archive changed')
+ sysroot = Path(subprocess.check_output(['rustc', '--print', 'sysroot'], text=True).strip())
+ libraries = sysroot / 'lib/rustlib' / target / 'lib'
+ if not libraries.is_dir() or libraries.is_symlink():
+ raise ValueError('matching target standard libraries missing')
+ for source in sorted(libraries.rglob('*')):
+ if source.is_symlink():
+ raise ValueError('unreviewed target library symlink')
+ if source.is_file():
+ copy_regular(source, bundle / 'toolchain/lib/rustlib' / target / 'lib' / source.relative_to(libraries))
+ copy_regular(root / 'scripts/rebuild_lsp_source.sh', bundle / 'rebuild.sh')
+ copy_regular(root / 'ci/lsp-source-README.txt', bundle / 'README.txt')
+ resource = json.loads((evidence / 'native-resource-verification.json').read_text(encoding='utf-8'))
+ if resource['notice_sha256'] != digest(legal / 'NOTICE.json'):
+ raise ValueError('source package notice differs from actual executable verification')
+ record = {'schema_version': 1, 'target': target, 'notice_sha256': resource['notice_sha256'], 'original_binary_sha256': resource['binary_sha256'], 'source_ref': json.loads((legal / 'source-provenance.json').read_text())['source_ref'], 'cargo_lock_sha256': digest(project / 'Cargo.lock'), 'zig_revision': ZIG_REVISION, 'zig_source_sha256': ZIG_SOURCE_SHA, 'rustc': (legal / 'rustc.txt').read_text(), 'coverage': 'Source/relink prototype; publication together with final distribution remains required.'}
+ (bundle / 'provenance.json').write_text(json.dumps(record, sort_keys=True, indent=2), encoding='utf-8')
+ manifest = []
+ for path in sorted(bundle.rglob('*')):
+ if path.is_symlink():
+ raise ValueError('source archive must not contain unreviewed symlinks')
+ if path.is_file():
+ manifest.append({'path': path.relative_to(bundle).as_posix(), 'sha256': digest(path), 'bytes': path.stat().st_size, 'mode': 0o755 if path.stat().st_mode & 0o111 else 0o644})
+ (bundle / 'MANIFEST.json').write_text(json.dumps(manifest, sort_keys=True, indent=2), encoding='utf-8')
+ output_path = destination / ('ktav-lsp-source-' + target + '.tar.gz')
+ with output_path.open('xb') as output, gzip.GzipFile(filename='', fileobj=output, mode='wb', mtime=0) as compressed, tarfile.open(fileobj=compressed, mode='w') as tar:
+ for path in sorted(bundle.rglob('*')):
+ if path.is_file():
+ info = tar.gettarinfo(str(path), arcname='lsp-source/' + path.relative_to(bundle).as_posix())
+ info.uid = info.gid = info.mtime = 0
+ info.uname = info.gname = ''
+ info.mode = 0o755 if path.stat().st_mode & 0o111 else 0o644
+ with path.open('rb') as source:
+ tar.addfile(info, source)
+ report = {**record, 'archive_sha256': digest(output_path), 'archive_bytes': output_path.stat().st_size, 'files': len(manifest) + 1}
+ (evidence / 'corresponding-source.json').write_text(json.dumps(report, sort_keys=True, indent=2), encoding='utf-8')
+ binding = {'schema_version': 1, 'target': target, 'source_ref': record['source_ref'], 'binary': {'file': resource['binary'], 'sha256': resource['binary_sha256']}, 'notice': {'file': 'NOTICE.json', 'sha256': resource['notice_sha256']}, 'corresponding_source': {'file': output_path.name, 'sha256': report['archive_sha256']}, 'coverage': 'Exact prototype artifact binding; final distribution must publish all matching materials together.'}
+ (evidence / 'native-source-binding.json').write_text(json.dumps(binding, sort_keys=True, indent=2), encoding='utf-8')
+ print(json.dumps(report, sort_keys=True))
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 4:
+ raise SystemExit('usage: prepare_lsp_source_bundle.py EVIDENCE NEW_DESTINATION TARGET')
+ build(Path(sys.argv[1]), Path(sys.argv[2]), sys.argv[3])
diff --git a/scripts/rebuild_lsp_source.sh b/scripts/rebuild_lsp_source.sh
new file mode 100644
index 0000000..6911904
--- /dev/null
+++ b/scripts/rebuild_lsp_source.sh
@@ -0,0 +1,44 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+root="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
+target="${1:?usage: bash rebuild.sh TARGET}"
+case "$target" in
+ x86_64-unknown-linux-gnu|aarch64-unknown-linux-gnu) ;;
+ *) printf '%s\n' 'unsupported source/relink target' >&2; exit 1 ;;
+esac
+if [[ "$(zig version)" != '0.14.0' ]]; then
+ printf '%s\n' 'Zig 0.14.0 is required' >&2
+ exit 1
+fi
+python3 - "$root" "$target" <<'PY'
+import hashlib
+import json
+from pathlib import Path
+import sys
+import tarfile
+
+root, target = Path(sys.argv[1]), sys.argv[2]
+record = json.loads((root / 'provenance.json').read_text())
+if record['target'] != target:
+ raise SystemExit('source package target differs from supplied Rust libraries')
+archive = root / 'upstream/zig-source.tar.gz'
+if hashlib.sha256(archive.read_bytes()).hexdigest() != record['zig_source_sha256']:
+ raise SystemExit('original Zig source archive differs from provenance')
+source = root / 'upstream' / ('zig-' + record['zig_revision'])
+if not source.exists():
+ with tarfile.open(archive, 'r:gz') as incoming:
+ prefix = 'zig-' + record['zig_revision'] + '/lib/'
+ members = [item for item in incoming if item.name.startswith(prefix)]
+ incoming.extractall(root / 'upstream', members=members, filter='data')
+if not (source / 'lib').is_dir():
+ raise SystemExit('Zig source SDK is incomplete')
+PY
+export ZIG_LIB_DIR="$root/upstream/zig-5ad91a646a753cc3eecd8751e61cf458dadd9ac4/lib"
+export KTAV_NATIVE_NOTICES="$root/legal/NOTICE.json.gz"
+unset RUSTFLAGS CARGO_ZIGBUILD_ZIG_COMMAND CARGO_ZIGBUILD_ZIG_COMMAND_ARGS
+export CARGO_ENCODED_RUSTFLAGS="$(printf '%s\037%s' --sysroot "$root/toolchain")"
+cd -- "$root/project"
+# Изменения SDK должны вызывать повторную линковку.
+touch -- build.rs
+cargo +1.99.1 zigbuild --locked --offline --release --target "$target.2.17" --target-dir "$root/target-relinked"
diff --git a/scripts/rust_compiler_notices.py b/scripts/rust_compiler_notices.py
new file mode 100644
index 0000000..51b7dca
--- /dev/null
+++ b/scripts/rust_compiler_notices.py
@@ -0,0 +1,40 @@
+"""Сохранить полные compiler grants для exact Rust source revision."""
+
+import hashlib
+import json
+from pathlib import Path, PurePosixPath
+
+PROFILE_SHA256 = '39cbf18420d5e0c0a35fb2d5e5fbed4db755488ea0ca11414944ead9fbabab92'
+RUST_REVISION = '58cf8f9c35b355199727627d07ae34a4e2846d67'
+
+
+def read(path, limit):
+ if path.is_symlink() or not path.is_file():
+ raise ValueError('missing or symlinked compiler notice input')
+ with path.open('rb') as source:
+ raw = source.read(limit + 1)
+ if len(raw) > limit:
+ raise ValueError('compiler notice input exceeds bound')
+ return raw
+
+
+def collect(root, rustc):
+ if not rustc.startswith('rustc 1.99.1 ') or '\nrelease: 1.99.1\n' not in rustc or '\ncommit-hash: ' + RUST_REVISION + '\n' not in rustc:
+ raise ValueError('unreviewed Rust compiler source identity')
+ root = root.resolve()
+ raw = read(root / 'ci/rust-compiler-notices.json', 1024 * 1024)
+ if hashlib.sha256(raw).hexdigest() != PROFILE_SHA256:
+ raise ValueError('compiler notice profile differs from review')
+ profile = json.loads(raw)
+ materials = []
+ for item in profile['materials']:
+ relative = PurePosixPath(item['path'])
+ path = root / item['path']
+ if relative.is_absolute() or '..' in relative.parts or '\\' in item['path'] or not path.resolve().is_relative_to(root):
+ raise ValueError('unsafe compiler notice source path')
+ original = read(path, 4 * 1024 * 1024)
+ blob = hashlib.sha1(b'blob ' + str(len(original)).encode() + b'\0' + original).hexdigest()
+ if len(original) != item['bytes'] or hashlib.sha256(original).hexdigest() != item['sha256'] or blob != item['git_blob']:
+ raise ValueError('compiler notice original identity differs')
+ materials.append({**item, 'text': original.decode('utf-8')})
+ return {'schema_version': 1, 'profile_sha256': PROFILE_SHA256, 'rust_revision': profile['rust_revision'], 'llvm_revision': profile['llvm_revision'], 'compiler_builtins_license': 'MIT AND Apache-2.0 WITH LLVM-exception', 'libm_license': 'MIT', 'coverage': profile['coverage'], 'materials': materials}
diff --git a/scripts/stage_lsp_release_assets.py b/scripts/stage_lsp_release_assets.py
new file mode 100644
index 0000000..a8d83ed
--- /dev/null
+++ b/scripts/stage_lsp_release_assets.py
@@ -0,0 +1,52 @@
+"""Сохранить проверенные raw assets и legal/source sidecars для GitHub Release."""
+
+import json
+from pathlib import Path
+import shutil
+import sys
+
+sys.path.insert(0, str(Path(__file__).resolve().parent))
+from lsp_distribution import MAX_SOURCE, TARGETS, file_info, verify
+from organize_lsp_distribution import empty_output
+
+
+def stage(incoming, output, source_ref):
+ if incoming.is_symlink() or not incoming.is_dir():
+ raise ValueError('release input must be a regular directory')
+ empty_output(output)
+ if output.resolve().is_relative_to(incoming.resolve()):
+ raise ValueError('release output overlaps distribution inputs')
+ targets = set()
+ sources = {}
+ for directory in sorted(incoming.iterdir()):
+ if directory.is_symlink() or not directory.is_dir():
+ raise ValueError('unexpected release input')
+ manifest = verify(directory)
+ if manifest['target'] in targets or manifest['source_ref'] != source_ref or manifest['binary'] != manifest['asset']:
+ raise ValueError('release requires unique matching-source raw platform payloads')
+ targets.add(manifest['target'])
+ for filename, identity in manifest['files'].items():
+ if filename in sources:
+ raise ValueError('duplicate release asset filename')
+ sources[filename] = (directory / filename, identity)
+ filename = manifest['asset'] + '.distribution.json'
+ if filename in sources:
+ raise ValueError('duplicate release manifest filename')
+ path = directory / filename
+ sources[filename] = (path, file_info(path, MAX_SOURCE))
+ if targets != set(TARGETS):
+ raise ValueError('release requires all six platform payloads')
+ output.mkdir(parents=True, exist_ok=True)
+ for filename, (source, identity) in sources.items():
+ destination = output / filename
+ with destination.open('xb') as writer, source.open('rb') as reader:
+ shutil.copyfileobj(reader, writer)
+ if file_info(destination, MAX_SOURCE) != identity:
+ raise ValueError('release asset bytes changed while staging')
+ return {'source_ref': source_ref, 'files': {filename: identity for filename, (_, identity) in sources.items()}}
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 4:
+ raise SystemExit('usage: stage_lsp_release_assets.py INPUT_PAYLOADS OUTPUT SOURCE_REF')
+ print(json.dumps(stage(Path(sys.argv[1]), Path(sys.argv[2]), sys.argv[3]), sort_keys=True, indent=2))
diff --git a/scripts/supplement_lsp_license.py b/scripts/supplement_lsp_license.py
new file mode 100644
index 0000000..178be93
--- /dev/null
+++ b/scripts/supplement_lsp_license.py
@@ -0,0 +1,94 @@
+"""Дополнить один проверенный cfg-only crate, сохранив оригинальный tool report."""
+
+import copy
+import hashlib
+import json
+from pathlib import Path
+import tomllib
+
+PACKAGE = 'registry+https://github.com/rust-lang/crates.io-index#valuable@0.1.1'
+CHECKSUM = 'ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65'
+VCS = '9efc29b6e58cef28f6566a47aa7e142a55fead77'
+LICENSE_SHA = 'ed60d479b8fd1f64e9cbc3de449a16a53ac1b3d1b6aeb9bf9d190a8e93061b44'
+
+
+def supplement(metadata, report, lock_bytes, license_path):
+ packages = {item['id']: item for item in metadata['packages']}
+ reported = {item['package']['id'] for item in report['crates']}
+ licensed = {item['crate']['id'] for license in report['licenses'] for item in license['used_by']}
+ missing = set(packages) - reported
+ if len(packages) != len(metadata['packages']) or len(reported) != len(report['crates']):
+ raise ValueError('duplicate package identity in license evidence')
+ if not missing and set(packages) == licensed and reported == set(packages):
+ return report, []
+ if missing != {PACKAGE} or set(packages) - licensed != {PACKAGE} or reported - set(packages) or licensed - set(packages):
+ raise ValueError('unreviewed Cargo/license coverage mismatch')
+ package = packages[PACKAGE]
+ if package.get('name') != 'valuable' or package.get('version') != '0.1.1' or package.get('license') != 'MIT' or package.get('source') != 'registry+https://github.com/rust-lang/crates.io-index':
+ raise ValueError('unreviewed cfg-only source package')
+ locks = [item for item in tomllib.loads(lock_bytes.decode('utf-8'))['package'] if item['name'] == 'valuable']
+ if len(locks) != 1 or locks[0].get('version') != '0.1.1' or locks[0].get('checksum') != CHECKSUM:
+ raise ValueError('cfg-only package checksum changed')
+ incoming = [dependency for item in metadata['packages'] for dependency in item['dependencies'] if dependency['name'] == 'valuable']
+ if len(incoming) != 2 or any(not item.get('optional') or item.get('target') != 'cfg(tracing_unstable)' for item in incoming):
+ raise ValueError('cfg-only dependency activation requires review')
+ vcs_path = Path(package['manifest_path']).parent / '.cargo_vcs_info.json'
+ vcs = json.loads(vcs_path.read_text(encoding='utf-8'))
+ if vcs.get('git', {}).get('sha1') != VCS or vcs.get('path_in_vcs') != 'valuable':
+ raise ValueError('cfg-only published source VCS identity changed')
+ if license_path.is_symlink() or not license_path.is_file() or license_path.stat().st_size > 16 * 1024:
+ raise ValueError('invalid reviewed upstream license file')
+ license_bytes = license_path.read_bytes()
+ if hashlib.sha256(license_bytes).hexdigest() != LICENSE_SHA:
+ raise ValueError('reviewed upstream cfg-only license changed')
+ provenance = {'package': {'name': 'valuable', 'version': '0.1.1', 'source': package['source']}, 'crate_checksum': CHECKSUM, 'vcs_revision': VCS, 'license': 'MIT', 'license_sha256': LICENSE_SHA,
+ 'license_source': 'https://raw.githubusercontent.com/tokio-rs/valuable/' + VCS + '/LICENSE', 'reason': 'Conservative metadata includes optional tracing_unstable-only package excluded by cargo-about; full source-backed terms retained explicitly.'}
+ combined = copy.deepcopy(report)
+ combined['crates'].append({'package': package, 'license': {'origin': 'reviewed-source-supplement', 'spdx': 'MIT'}})
+ combined['licenses'].append({'name': 'MIT', 'id': 'MIT', 'first_of_kind': False, 'text': license_bytes.decode('utf-8'), 'source_path': str(license_path), 'used_by': [{'crate': package, 'path': str(license_path)}]})
+ combined['source_license_supplements'] = [provenance]
+ combined['report_origin'] = 'cargo-about plus explicit reviewed source supplement; original cargo-about bytes preserved separately'
+ return combined, [provenance]
+
+
+def supplement_fallbacks(metadata, report, lock_bytes, catalog_path):
+ catalog = json.loads(catalog_path.read_text(encoding='utf-8'))
+ reviewed = {item['name']: item for item in catalog['packages']}
+ if len(reviewed) != len(catalog['packages']):
+ raise ValueError('duplicate source supplement review')
+ packages = {item['id']: item for item in metadata['packages']}
+ locks = tomllib.loads(lock_bytes.decode('utf-8'))['package']
+ combined = copy.deepcopy(report)
+ verified = []
+ licenses = []
+ for entry in combined['licenses']:
+ if entry.get('source_path'):
+ licenses.append(entry)
+ continue
+ if entry.get('id') != 'MIT' or not entry.get('used_by'):
+ raise ValueError('unreviewed license fallback')
+ for use in entry['used_by']:
+ package = packages[use['crate']['id']]
+ review = reviewed.get(package['name'])
+ if review is None or package['version'] != review['version'] or package.get('license') != review['declared_license'] or package.get('source') != 'registry+https://github.com/rust-lang/crates.io-index':
+ raise ValueError('unreviewed fallback package identity')
+ locked = [item for item in locks if item['name'] == review['name'] and item['version'] == review['version']]
+ if len(locked) != 1 or locked[0].get('checksum') != review['crate_checksum']:
+ raise ValueError('fallback source checksum changed')
+ root = Path(package['manifest_path']).parent
+ vcs = json.loads((root / '.cargo_vcs_info.json').read_text(encoding='utf-8'))
+ if vcs != review['vcs']:
+ raise ValueError('fallback source VCS changed')
+ text = review['license_text']
+ if hashlib.sha256(text.encode('utf-8')).hexdigest() != review['license_sha256']:
+ raise ValueError('fallback source license changed')
+ if review.get('crate_license_path'):
+ source = root / review['crate_license_path']
+ if source.is_symlink() or not source.resolve().is_relative_to(root.resolve()) or source.read_bytes() != text.encode('utf-8'):
+ raise ValueError('published fallback license differs from review')
+ licenses.append({'name': 'MIT', 'id': 'MIT', 'first_of_kind': False, 'text': text,
+ 'source_path': str(catalog_path), 'used_by': [use],
+ 'origin': 'reviewed-source-supplement'})
+ verified.append({key: value for key, value in review.items() if key != 'license_text'})
+ combined['licenses'] = licenses
+ return combined, verified
diff --git a/scripts/verify_lsp_source_bundle.py b/scripts/verify_lsp_source_bundle.py
new file mode 100644
index 0000000..8139e1f
--- /dev/null
+++ b/scripts/verify_lsp_source_bundle.py
@@ -0,0 +1,59 @@
+"""Проверить actual source archive до распаковки и relink."""
+
+import hashlib
+import json
+from pathlib import Path, PurePosixPath
+import sys
+import tarfile
+
+
+def inspect(archive_path):
+ with tarfile.open(archive_path, 'r:gz') as archive:
+ members = archive.getmembers()
+ if len(members) > 100000:
+ raise ValueError('source archive member limit exceeded')
+ names = set()
+ total = 0
+ for member in members:
+ path = PurePosixPath(member.name)
+ total += member.size
+ if not member.isfile() or path.is_absolute() or '..' in path.parts or '\\' in member.name or not path.parts or path.parts[0] != 'lsp-source' or path.as_posix() != member.name or member.name in names or total > 2 * 1024 * 1024 * 1024:
+ raise ValueError('unsafe source archive member')
+ names.add(member.name)
+ manifest_member = archive.getmember('lsp-source/MANIFEST.json')
+ if manifest_member.size > 32 * 1024 * 1024:
+ raise ValueError('source manifest size limit exceeded')
+ manifest = json.load(archive.extractfile(manifest_member))
+ expected = {item['path']: item for item in manifest}
+ if len(expected) != len(manifest) or names != {'lsp-source/' + name for name in expected} | {'lsp-source/MANIFEST.json'}:
+ raise ValueError('source archive inventory differs from manifest')
+ for name, entry in expected.items():
+ member = archive.getmember('lsp-source/' + name)
+ if member.size != entry['bytes'] or member.mode != entry['mode']:
+ raise ValueError('source file size or mode differs from manifest')
+ checksum = hashlib.sha256()
+ with archive.extractfile(member) as source:
+ for chunk in iter(lambda: source.read(1024 * 1024), b''):
+ checksum.update(chunk)
+ if checksum.hexdigest() != entry['sha256']:
+ raise ValueError('source file checksum differs from manifest')
+ required = {'project/Cargo.toml', 'project/Cargo.lock', 'project/build.rs', 'project/src/main.rs', 'project/.cargo/config.toml', 'project/LICENSE-MIT', 'project/LICENSE-APACHE', 'legal/LGPL-2.1.txt', 'legal/NOTICE.json', 'legal/NOTICE.json.gz', 'legal/NOTICE.gnu-startup.txt', 'legal/lsp-zig-runtime-catalog.json', 'upstream/zig-source.tar.gz', 'rebuild.sh', 'provenance.json', 'README.txt'}
+ if not required <= set(expected) or not any(name.startswith('project/vendor/') for name in expected) or not any(name.startswith('toolchain/lib/rustlib/') and name.endswith('.rlib') for name in expected):
+ raise ValueError('incomplete corresponding source materials')
+ return {'files': len(expected), 'verified_manifest': True}
+
+
+def verify_and_extract(archive_path, destination):
+ result = inspect(archive_path)
+ if destination.exists():
+ raise ValueError('source verification destination must be new')
+ destination.mkdir(parents=True)
+ with tarfile.open(archive_path, 'r:gz') as archive:
+ archive.extractall(destination, filter='data')
+ return result
+
+
+if __name__ == '__main__':
+ if len(sys.argv) != 3:
+ raise SystemExit('usage: verify_lsp_source_bundle.py ARCHIVE NEW_DESTINATION')
+ print(json.dumps(verify_and_extract(*map(Path, sys.argv[1:])), sort_keys=True))
diff --git a/tests/npm-license-policy.test.mjs b/tests/npm-license-policy.test.mjs
new file mode 100644
index 0000000..370133b
--- /dev/null
+++ b/tests/npm-license-policy.test.mjs
@@ -0,0 +1,41 @@
+import assert from 'node:assert/strict';
+import { createHash } from 'node:crypto';
+import test from 'node:test';
+import { allowedExpression, dependencyFreeManifest, inspectLock, isReviewedSigningPackage, verifySigningBytes } from '../ci/check-npm-licenses.mjs';
+
+const signingPath = 'node_modules/@vscode/vsce-sign';
+const signing = { dev: true, version: '2.0.9', license: 'SEE LICENSE IN LICENSE.txt' };
+const lock = (packages) => ({ lockfileVersion: 3, packages: { '': {}, ...packages } });
+
+test('evaluates SPDX alternatives and combined obligations', () => {
+ assert.equal(allowedExpression('MIT OR GPL-3.0-or-later', false), true);
+ assert.equal(allowedExpression('MIT AND GPL-3.0-only', false), false);
+ assert.equal(allowedExpression('MIT AND Zlib', false), true);
+ assert.equal(allowedExpression('EPL-2.0', false), false);
+ assert.equal(allowedExpression('EPL-2.0', true), true);
+ assert.equal(allowedExpression('UNKNOWN', true), false);
+});
+
+test('limits signing-tool exception to the reviewed development packages', () => {
+ assert.equal(isReviewedSigningPackage(signingPath, signing), true);
+ assert.equal(isReviewedSigningPackage(signingPath, { ...signing, dev: false }), false);
+ assert.equal(isReviewedSigningPackage(signingPath, { ...signing, version: '2.0.10' }), false);
+ assert.equal(isReviewedSigningPackage(`${signingPath}-fake`, { ...signing, version: '2.0.6' }), false);
+ assert.equal(inspectLock(lock({ [signingPath]: { ...signing, license: 'MIT' } })).failures.length, 1);
+ assert.equal(inspectLock(lock({ [signingPath]: signing })).restricted.length, 1);
+});
+
+test('rejects unreviewed VSIX driver dependencies', () => {
+ assert.equal(dependencyFreeManifest({}), true);
+ assert.equal(dependencyFreeManifest({ dependencies: { x: '1' } }), false);
+ assert.equal(dependencyFreeManifest({ workspaces: ['packages/*'] }), false);
+});
+
+test('does not accept unknown, substituted, or unverified data', () => {
+ assert.equal(inspectLock(lock({ 'node_modules/x': {} })).failures.length, 1);
+ assert.throws(() => inspectLock({ lockfileVersion: 2, packages: {} }));
+ const archive = Buffer.from('archive');
+ const integrity = `sha512-${createHash('sha512').update(archive).digest('base64')}`;
+ assert.equal(verifySigningBytes({ integrity }, archive, Buffer.from('unapproved')), false);
+ assert.equal(verifySigningBytes({ integrity: 'sha256-x' }, archive, Buffer.from('unapproved')), false);
+});
diff --git a/vscode/src/test/runTest.ts b/vscode/src/test/runTest.ts
index 36c0a91..49fd1d4 100644
--- a/vscode/src/test/runTest.ts
+++ b/vscode/src/test/runTest.ts
@@ -1,8 +1,11 @@
+import * as net from "net";
import * as path from "path";
import { runTests } from "@vscode/test-electron";
async function main(): Promise {
try {
+ // Не прерывать IPv4 handshake через стандартные 250 ms при недоступном IPv6.
+ net.setDefaultAutoSelectFamilyAttemptTimeout(2_500);
// out/test/runTest.js -> extension root is two levels up from compiled file.
const extensionDevelopmentPath = path.resolve(__dirname, "..", "..");
const extensionTestsPath = path.resolve(__dirname, "./suite/index");