Skip to content

feat: add thin stdlib facade over external LLRT dependencies - #23

Closed
huacnlee wants to merge 3 commits into
mainfrom
quickjs-jit-stdlib
Closed

feat: add thin stdlib facade over external LLRT dependencies#23
huacnlee wants to merge 3 commits into
mainfrom
quickjs-jit-stdlib

Conversation

@huacnlee

@huacnlee huacnlee commented Sep 7, 2026

Copy link
Copy Markdown
Member

Summary

Add quickjs-jit-stdlib as a thin facade over external LLRT buffer, crypto, path, url, and zlib crates. Consumers use one entry point for module definitions, loaders and global initialization. LLRT remains a Git dependency pinned to 7b95c82a9b15e7ddfb2778eca4b5a63111e74f51; no LLRT implementation sources are copied into this repository.

The facade follows LLRT's rquickjs package identity. JIT applications retain their application-owned compatibility crate and root Cargo patch so the host and LLRT share the same quickjs-jit types. No compatibility package is shipped here. RustCrypto and compression features match GPUI Shell's current integration.

This package is Git-only (publish = false). It does not solve crates.io publication: compatible registry dependencies and binding integration are still required. GPUI Shell migration instructions are included; this PR does not modify GPUI Shell.

Test Plan

Locally passed on macOS Apple Silicon:

  • cargo test -p quickjs-jit-stdlib and --all-features: four integration tests and one documentation example each.
  • python3 scripts/check-stdlib-jit.py (Python 3.11+): four tests each with default and parallel features in an isolated external JIT host. Checks one JIT binding stack, external LLRT dependency sources, shared runtime types, Buffer/URL, hashing, sync compression, asynchronous Blob/WebCrypto/compression and loader composition.
  • cargo +1.89 check -p quickjs-jit-stdlib.
  • cargo fmt --all --check and git diff --check.

CI covers Linux, macOS and Windows plus Rust 1.89. Remote results are pending.

huacnlee and others added 3 commits September 7, 2026 16:06
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Replace vendored sources with a thin facade and verify host-owned JIT compatibility. Keep stdlib Git-only until compatible registry dependencies are available.

Co-authored-by: Codex <codex@openai.com>
@huacnlee huacnlee changed the title feat: add single-package quickjs-jit stdlib feat: add thin stdlib facade over external LLRT dependencies Sep 7, 2026
@huacnlee huacnlee closed this Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant