tree: c1a11d113f8283f88f988174446a9c70a977dfb8 [search]
  1. host-comparison/
  2. licenses/
  3. benchmark-long-task.py
  4. browser-handoff-smoke.py
  5. build-cli.mjs
  6. build-cli.test.mjs
  7. build-v8.mjs
  8. build-v8.test.mjs
  9. cargo.mjs
  10. check-cua-build.mjs
  11. compat-capsule.mjs
  12. compat-capsule.test.mjs
  13. compile-v8.mjs
  14. compile-v8.test.mjs
  15. dependencies.mjs
  16. dependencies.test.mjs
  17. license-files.mjs
  18. license-files.test.mjs
  19. license-source.mjs
  20. license-source.test.mjs
  21. migration-lock.mjs
  22. migration-lock.test.mjs
  23. migrations.lock.json
  24. nightly-manifest.mjs
  25. nightly-manifest.test.mjs
  26. notices-sources.json
  27. notices.mjs
  28. notices.test.mjs
  29. package-ios.mjs
  30. package-ios.test.mjs
  31. package-nightly.mjs
  32. package-nightly.test.mjs
  33. product.mjs
  34. product.test.mjs
  35. README.md
  36. README.zh-CN.md
  37. run-cli.mjs
  38. run-cli.test.mjs
  39. v8-cache.mjs
  40. v8-cache.test.mjs
  41. v8-notices.mjs
  42. v8-prebuilt.mjs
  43. v8-prebuilt.test.mjs
  44. v8-prebuilts.json
  45. v8-source.json
  46. verify-windows-dpi.ps1
scripts/rust/README.md

Native Build and CI Tooling

简体中文

Scripts under scripts/rust/ and scripts/ci/ manage native cross-platform packaging, V8 prebuilt caching, third-party license/notice verification, and CI suite execution. See packages/cli for end-to-end release commands.

Toolchain and V8 prebuilts

  • macOS — Xcode 26+ and libclang (required by SQLite preupdate-hook bindgen).
  • Linux — GLib, X11/XCB, xkbcommon, Wayland, Fontconfig, FreeType dev headers, libclang, cargo-zigbuild, and Zig (exact versions match .github/workflows/nightly.yml).
  • V8 cache — Release builds pull pinned V8 archives (with LGPL glibc math disabled) from v8-prebuilts.json into target/v8 ($CARGO_TARGET_DIR/v8) and verify SHA-256 digests. A missing pin falls back to a full V8 source build (requires Python, Git, Clang/libclang 19+, and significant disk/CPU).

Dependency and notice inventories

After changing Cargo or bundled JavaScript dependencies, regenerate and verify the license inventories:

node scripts/rust/dependencies.mjs generate
node scripts/rust/notices.mjs generate
node scripts/rust/dependencies.mjs check
node scripts/rust/notices.mjs check

notices.json tracks reviewed Rust and bundled JS components across all distribution targets; notices-sources.json records reviewed upstream license URLs.

CI

Suite definitions live in scripts/ci/suites.mjs and run identically in local just recipes, .github/workflows/pr.yml, and .github/workflows/ci.yml via scripts/ci.mjs:

node scripts/ci.mjs check pr
node scripts/ci.mjs plan --base origin/main
node scripts/ci.mjs run bridge

Pull requests run the fast test gate (node scripts/ci.mjs check pr). Pushes to main trace reverse Cargo dependencies plus declared runtime assets (skills/, product bundles, helper binaries) with full root coverage, and a daily schedule runs the full suite matrix. The root build job produces a single cargo nextest archive (including embedded runtime assets) that downstream OS test runners partition and execute.

Benchmarks

host-comparison/ provides an offline Linux harness for comparing end-to-end Host throughput, RSS, and CPU usage against a local loopback SSE model fixture.

Windows State Root ownership recovery

Maka creates State Root directories under %LOCALAPPDATA%\Maka owned by the current Windows user with a private ACL. If an older elevated process left state-root-owners or runtime-hosts owned by Administrators (S-1-5-32-544), Maka refuses to adopt it automatically and prints both SIDs. To recover your own directory after stopping all local Hosts, run in an elevated PowerShell:

$path = 'C:\Users\YOUR_ACCOUNT\AppData\Local\Maka\state-root-owners'
$acl = Get-Acl -LiteralPath $path
if ($acl.GetOwner([System.Security.Principal.SecurityIdentifier]).Value -ne 'S-1-5-32-544') {
    throw 'Expected an Administrators-owned directory.'
}
$backup = [System.IO.Path]::GetTempFileName()
$acl.Sddl | Set-Content -LiteralPath $backup
$acl.SetOwner([System.Security.Principal.WindowsIdentity]::GetCurrent().User)
Set-Acl -LiteralPath $path -AclObject $acl
Write-Output "Backed up previous SDDL to: $backup"