feat: add fast Tauri build profile and trim tokio features#861
Merged
Conversation
- 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>
This was referenced Mar 16, 2026
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.
Summary
[profile.fast]Cargo build profile for faster Tauri builds (no LTO, parallel codegen, incremental)fullto only the 5 needed featuresnpm run tauri:build:fastconvenience scriptworkflow_dispatchinput)spawnSync npm.cmd EINVALon Windows CI (shell:true needed for .cmd files)CI Timing Results
Locally with incremental compilation enabled, rebuild speedups would be much larger (~3-5x).
Test plan
🤖 Generated with Claude Code