Skip to content

Enable Rust compiler for Astro build pipeline#163

Merged
masuP9 merged 1 commit intomainfrom
claude/test-astro-rust-compiler-FcqUw
Mar 16, 2026
Merged

Enable Rust compiler for Astro build pipeline#163
masuP9 merged 1 commit intomainfrom
claude/test-astro-rust-compiler-FcqUw

Conversation

@masuP9
Copy link
Copy Markdown
Owner

@masuP9 masuP9 commented Mar 16, 2026

Pull Request

概要

Astro の Rust コンパイラを有効化し、ビルドパフォーマンスを向上させます。

変更内容

  • 新機能追加

具体的な変更

  • astro.config.mjsexperimental.rustCompiler: true を設定
  • @astrojs/compiler-rs v0.1.4 を依存関係に追加

APGパターン準拠チェック

  • ARIA属性の適切な使用
  • キーボードナビゲーション対応
  • スクリーンリーダー対応
  • フォーカス管理の実装
  • 色・コントラストの考慮

(本変更はビルドツール設定のため、アクセシビリティ対応は不要)

テスト

  • 手動テスト完了
  • 自動テスト追加/更新
  • アクセシビリティテスト実施
  • 複数ブラウザでの動作確認

ビルドが正常に完了し、既存の機能に影響がないことを確認しました。

破壊的変更

  • 破壊的変更あり
  • 破壊的変更なし

その他

Rust コンパイラは Astro の実験的機能です。本設定により、JavaScript コンパイラの代わりに Rust 実装を使用することで、ビルド速度の向上が期待できます。

https://claude.ai/code/session_01Ti8xsyKusFiCdfDbsF5QEN

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
@masuP9 masuP9 force-pushed the claude/test-astro-rust-compiler-FcqUw branch from 4bbf501 to 168aa86 Compare March 16, 2026 13:43
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 16, 2026

Deploying apg-patterns-examples with  Cloudflare Pages  Cloudflare Pages

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

View logs

@masuP9 masuP9 merged commit 734dcee into main Mar 16, 2026
17 checks passed
@masuP9 masuP9 deleted the claude/test-astro-rust-compiler-FcqUw branch March 16, 2026 13: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.

2 participants