Enable Rust compiler for Astro build pipeline#163
Merged
Conversation
Add @astrojs/compiler-rs and enable experimental.rustCompiler flag. Build time reduced ~11.5% (85.5s → 75.7s) for 553 pages with no errors. https://claude.ai/code/session_01Ti8xsyKusFiCdfDbsF5QEN
4bbf501 to
168aa86
Compare
Deploying apg-patterns-examples with
|
| Latest commit: |
168aa86
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b78adc5e.apg-patterns-examples.pages.dev |
| Branch Preview URL: | https://claude-test-astro-rust-compi.apg-patterns-examples.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
概要
Astro の Rust コンパイラを有効化し、ビルドパフォーマンスを向上させます。
変更内容
具体的な変更
astro.config.mjsにexperimental.rustCompiler: trueを設定@astrojs/compiler-rsv0.1.4 を依存関係に追加APGパターン準拠チェック
(本変更はビルドツール設定のため、アクセシビリティ対応は不要)
テスト
ビルドが正常に完了し、既存の機能に影響がないことを確認しました。
破壊的変更
その他
Rust コンパイラは Astro の実験的機能です。本設定により、JavaScript コンパイラの代わりに Rust 実装を使用することで、ビルド速度の向上が期待できます。
https://claude.ai/code/session_01Ti8xsyKusFiCdfDbsF5QEN