chore(build): optimize cargo dev profile and prune crate-type to reduce storage footprint - #17
Merged
Conversation
Owner
|
审查完成,整体 LGTM,没有发现需要阻塞合并的功能、安全或事务一致性问题。GitHub CI 6/6 通过;本地精确提交上 characters::activation_tests 35 项、commands::characters 39 项通过。非阻塞建议:建议在 src-tauri/src/characters/activation.rs:431 附近补一个 max_connections(1) + apply/restore failure 的回归测试,覆盖事务在 recover_committed_backend 前释放连接的死锁场景。除此之外可以合并。 |
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
Reduces local development storage overhead and prevents runaway build cache accumulation:
crate-typeinsrc-tauri/Cargo.tomlto["rlib"]for desktop builds, eliminating the redundant monolithicstaticlibarchive (~4 GB single file on Windows MSVC) and temporary.aoutputs.[profile.dev.package."*"] debug = 1to generate line-level debuginfo for third-party dependencies while preserving fulldebug = 2for the main crate so rich IDE variable inspection remains intact.clean:targetconvenience script topackage.json.Behavioral Impact
src-tauri/targetis reduced by tens of gigabytes across iterative runs without degrading local debugging capabilities.src-tauri/targetdrops to ~3.9 GB.Verification
cargo check --manifest-path src-tauri/Cargo.toml(Passed in 46.8s)npm run check:ipc(Passed: 171 registered commands)npm test(Passed: 69 test files, 617 tests)