Skip to content

perf(panel): optimize panel build#274

Merged
Akinator31 merged 4 commits intomainfrom
273-optimize-panel-build
Dec 4, 2025
Merged

perf(panel): optimize panel build#274
Akinator31 merged 4 commits intomainfrom
273-optimize-panel-build

Conversation

@Akinator31
Copy link
Copy Markdown
Member

This pull request introduces optimizations for WebAssembly (WASM) assets and adds HTTP compression to the Rust backend, improving both frontend performance and backend efficiency. The main changes are grouped into WASM optimization and backend compression enhancements.

WASM Optimization:

  • Added a post-build hook in rustmail_panel/Trunk.toml to automatically run wasm-opt -Oz on generated WASM files, reducing their size for faster load times.
  • Updated the release CI workflow (.github/workflows/release-ci.yml) to install wasm-opt and optimize WASM files after building the frontend.

Backend Compression Enhancements:

  • Added tower-http with gzip and Brotli compression features to backend dependencies in rustmail/Cargo.toml.
  • Imported CompressionLayer from tower_http in rustmail/src/main.rs.
  • Applied CompressionLayer to the Axum router, enabling automatic HTTP response compression for static assets and API responses.

@Akinator31 Akinator31 self-assigned this Dec 4, 2025
@Akinator31 Akinator31 linked an issue Dec 4, 2025 that may be closed by this pull request
@Akinator31 Akinator31 merged commit 328d3d7 into main Dec 4, 2025
6 checks passed
@Akinator31 Akinator31 deleted the 273-optimize-panel-build branch December 4, 2025 10:54
Akinator31 added a commit that referenced this pull request Dec 4, 2025
Akinator31 added a commit that referenced this pull request Dec 4, 2025
Akinator31 added a commit that referenced this pull request Dec 4, 2025
Akinator31 added a commit that referenced this pull request Dec 4, 2025
Akinator31 added a commit that referenced this pull request Dec 4, 2025
Akinator31 added a commit that referenced this pull request Dec 4, 2025
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.

Optimize panel build

1 participant