Skip to content

Rust rewrite baseline#145

Merged
jayhack merged 230 commits into
developfrom
rust-rewrite
Jun 21, 2026
Merged

Rust rewrite baseline#145
jayhack merged 230 commits into
developfrom
rust-rewrite

Conversation

@jayhack

@jayhack jayhack commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Summary

This merges the Rust rewrite baseline so future work can fan out from a faster, lower-memory compact backend. The Python API shell remains in place for now, but the branch adds the Rust/PyO3 indexing path, compact Python handles, CLI/uvx packaging work, docs/site scaffolding, large-repo proof tooling, and merge-readiness handoff docs.

Latest final-pass addition:

  • Added compact TypeScript JSX element records in Rust.
  • Exposed targeted PyO3 JSX lookups.
  • Added read-only compact Python APIs for file.jsx_elements, symbol.jsx_elements, symbol.is_jsx, and nested JSX traversal.
  • Added rust-rewrite/agent-handoff.md for future agents.

Validation

Local checks on 1e3da93d:

  • uv run ruff check
  • cargo fmt --check
  • cargo test -p graph-sitter-engine --lib
  • cargo test -p graph-sitter-py --lib
  • uv run pytest tests/unit/sdk/codebase/test_rust_backend.py::test_rust_compact_typescript_jsx_elements_do_not_materialize_python_graph -q
  • rust-rewrite/tools/check_fast.sh

Hosted checks on 1e3da93d:

  • Rust Rewrite Fast Checks: passed
  • Rust Rewrite Extension Builds: passed
  • Rust Rewrite Large Repos: passed

Known Gaps

This is mergeable as the new development baseline, but not a full correctness claim yet. The main follow-up lanes are documented in rust-rewrite/agent-handoff.md and rust-rewrite/p0-parity-coverage.json:

  • Full graph-wide semantic parity.
  • Full TypeScript expression/type-system parity.
  • JSX prop and mutation parity.
  • Promise-chain async conversion parity.
  • Default-backend/removal sequencing for the old Python backend.

jayhack added 30 commits June 18, 2026 11:46
@codecov

codecov Bot commented Jun 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@jayhack

jayhack commented Jun 21, 2026

Copy link
Copy Markdown
Contributor Author
image

@jayhack jayhack merged commit f9e9ab5 into develop Jun 21, 2026
27 checks passed
@jayhack jayhack deleted the rust-rewrite branch June 21, 2026 00:52
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