Dev builds keep line tables only, so test binaries are smaller and link faster
Browse files at this commit2f69218e21c96542c7a7ffe3365b221811f007e7Parent: 5f0038c- perf
- dev builds keep line tables only, so test binaries are smaller and link faster
1 changed file +4 -0
- Cargo.toml +4 -0
Cargo.tomlmodified+4 -0
| @@ -118,6 +118,10 @@ similar = "3.2.0" | |||
| 118 | semver = "1.0.28" | 118 | semver = "1.0.28" |
| 119 | zip = { version = "9.0.3", default-features = false, features = ["deflate"] } | 119 | zip = { version = "9.0.3", default-features = false, features = ["deflate"] } |
| 120 | 120 | ||
| 121 | +[profile.dev] | ||
| 122 | +# Line tables keep file:line in backtraces but drop variable info; binaries and links are much smaller. | ||
| 123 | +debug = "line-tables-only" | ||
| 124 | + | ||
| 121 | [profile.dev.package.sha2] | 125 | [profile.dev.package.sha2] |
| 122 | # self-update hashes the ~1 GB debug binary at boot; unoptimized sha2 takes ~26 s. | 126 | # self-update hashes the ~1 GB debug binary at boot; unoptimized sha2 takes ~26 s. |
| 123 | opt-level = 3 | 127 | opt-level = 3 |