GitShow/withastro/compiler-rs
withastro

compiler-rs

The Astro compiler

by withastro
Star on GitHubFork

Rust

80 stars15 forks54 contributorsActive · 4d agoSince 2026@astrojs/compiler-binding@0.4.0MIT

Meet the team

See all 54 on GitHub →
natemoo-re
natemoo-re240 contributions
github-actions[bot]Bot
github-actions[bot]232 contributions
Princesseuh
Princesseuh127 contributions
matthewp
matthewp111 contributions
drwpow
drwpow42 contributions
MoustaphaDev
MoustaphaDev33 contributions
ematipico
ematipico27 contributions
bluwy
bluwy14 contributions

Languages

View on GitHub →
Rust77.8%
TypeScript17.2%
JavaScript4.2%
Astro0.8%

Commit activity

Last 12 weeks · 55 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
87
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent PRs & issues

Active · Last activity 4d ago
See all on GitHub →
omribz156
fix(codegen): emit source annotationsOpenPR

Changes emit and when is enabled match the legacy compiler by skipping Astro/framework components and never-scoped elements while annotating custom elements add regression coverage for disabled behavior, UTF-16 source locations, exclusions, and custom elements Fixes #96 Testing Added focused regression tests for the annotation behavior. Local Rust execution is unavailable in this environment, so this draft uses the repository CI as the build, formatting, Clippy, and test verification gate. Docs Updated the documentation to reflect that the option is implemented. No public documentation changes are needed. Prepared with ChatGPT’s assistance.

omribz156 · 6d ago

Recent fixes

View closed PRs →
Princesseuh
fix(napi): skip mimalloc allocator on Android targetsMergedPR

Changes mimalloc isn't available on Android, so we need to skip like we do on many platforms. Additionally, NAPI's cross compilation don't support Android, we shouldn't use it to build Testing We'll see if it builds! Docs N/A

Princesseuh · 5d ago
ognirmal
Android (Termux): @astrojs/compiler-binding-android-arm64 is missingClosedIssue

Astro Info If this issue only occurs in one browser, which browser is a problem? _No response_ Describe the Bug On Android (Termux, ), a fresh Astro installation fails to start because the Android native compiler binding cannot be found. Running astro dev or astro build after a normal npm install results in: During investigation, I found that already contains logic to load an Android binding ( or ), but no Android binding appears to be distributed. I built compiler-rs locally for , copied the resulting N-API module to , and Astro worked normally afterward. I verified this on both an existing project and a brand-new Astro project. After adding the locally built binding, astro dev, Hot Module Reload, astro build, and static site generation all worked successfully. What's the expected result? A normal npm install should install a working Android native compiler binding (or otherwise provide official Android support if intended), allowing astro dev and astro build to run on Android (Termux) without requiring users to build and manually copy the native binding themselves. Link to Minimal Reproducible Example https://github.com/ognirmal/astro-android-repro.git Participation [x] I am willing to submit a pull request for this issue.

ognirmal · 6d ago
ognirmal
feat: add Android ARM64 compiler binding targetMergedPR

Closes #111 Changes Add the "aarch64-linux-android" target to the N-API build targets. Add an Android ARM64 build job to the CI matrix. Enable generation and publishing of the "@astrojs/compiler-binding-android-arm64" package, which is already expected by the runtime loader. Testing Built "astro_napi" for "aarch64-linux-android". Verified "napi create-npm-dirs" generates the "@astrojs/compiler-binding-android-arm64" package. Tested the generated binding on Android (Termux) by replacing the missing native module. Confirmed "astro dev" and production builds work successfully with the Android binding. Docs No documentation changes. This is a bug fix that enables an existing runtime code path for Android ARM64.

ognirmal · 6d ago
Structured data for AI agents

Repository: withastro/compiler-rs. Description: The Astro compiler Stars: 80, Forks: 15. Primary language: Rust. Languages: Rust (77.8%), TypeScript (17.2%), JavaScript (4.2%), Astro (0.8%). License: MIT. Latest release: @astrojs/compiler-binding@0.4.0 (2w ago). Open PRs: 15, open issues: 7. Last activity: 4d ago. Community health: 87%. Top contributors: natemoo-re, github-actions[bot], Princesseuh, matthewp, drwpow, MoustaphaDev, ematipico, bluwy, jasikpark, delucis and others.

·@ofershap

Replace github.com with gitshow.dev