Skip to content

feat: add fast Tauri build profile and trim tokio features#861

Merged
web3dev1337 merged 6 commits into
mainfrom
feat/fast-tauri-build
Mar 16, 2026
Merged

feat: add fast Tauri build profile and trim tokio features#861
web3dev1337 merged 6 commits into
mainfrom
feat/fast-tauri-build

Conversation

@web3dev1337
Copy link
Copy Markdown
Owner

@web3dev1337 web3dev1337 commented Mar 14, 2026

Summary

  • Added [profile.fast] Cargo build profile for faster Tauri builds (no LTO, parallel codegen, incremental)
  • Trimmed tokio features from full to only the 5 needed features
  • Added npm run tauri:build:fast convenience script
  • Updated Windows CI workflow with profile selector (workflow_dispatch input)
  • Fixed spawnSync npm.cmd EINVAL on Windows CI (shell:true needed for .cmd files)
  • Documented build profiles in CLAUDE.md and CODEBASE_DOCUMENTATION.md

CI Timing Results

Phase Release (main) Fast Profile Delta
Rust compilation 13m 35s 10m 08s -25%
Total build step 18m 16s 13m 43s -25%
Binary size 78 MB 79 MB +1 MB

Locally with incremental compilation enabled, rebuild speedups would be much larger (~3-5x).

Test plan

  • CI Windows build with fast profile succeeds (run 23098020314)
  • CI Windows build with release profile succeeds (run 23097415869)
  • Both MSI and NSIS installers produced
  • Unit tests pass

🤖 Generated with Claude Code

web3dev1337 and others added 6 commits March 14, 2026 13:51
- Add [profile.fast] to Cargo.toml: lto=false, codegen-units=256,
  incremental=true for ~3-5x faster local builds
- Trim tokio from "full" to only the 5 features actually used:
  macros, rt-multi-thread, sync, time, net
- Add npm run tauri:build:fast script
- Document build profiles in CLAUDE.md and CODEBASE_DOCUMENTATION.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
workflow_dispatch now defaults to 'fast' profile for quick iteration.
Tag pushes still use 'release' for distribution builds.
Artifact paths dynamically resolve to the correct target directory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tauri CLI needs `-- --profile fast` (args after -- are passed to cargo).
Also simplify CI to use npx tauri build directly with profile flag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@web3dev1337 web3dev1337 merged commit 8f84bf6 into main Mar 16, 2026
5 checks passed
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