Skip to content

Commit 3f09b9a

Browse files
Merge pull request #66 from FrameworkComputer/faster-tool-build
2 parents 60c72bc + 5206dab commit 3f09b9a

File tree

1 file changed

+11
-39
lines changed

1 file changed

+11
-39
lines changed

Cargo.toml

Lines changed: 11 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -45,55 +45,27 @@ tinybmp = "0.5.0"
4545
smart-leds = "0.3.0"
4646
ws2812-pio = "0.6.0"
4747

48-
# cargo build/run
49-
[profile.dev]
48+
[profile.dev.package.ledmatrix]
5049
codegen-units = 1
51-
debug = 2
52-
debug-assertions = true
53-
incremental = false
50+
incremental = true
5451
# To allow single-stepping through code use 0. Will cause timing issues, though
5552
opt-level = 3
56-
overflow-checks = true
5753

58-
# cargo build/run --release
59-
[profile.release]
54+
[profile.dev.package.c1minimal]
6055
codegen-units = 1
61-
debug = 2
62-
debug-assertions = false
63-
incremental = false
64-
lto = 'fat'
56+
incremental = true
57+
# To allow single-stepping through code use 0. Will cause timing issues, though
6558
opt-level = 3
66-
overflow-checks = false
67-
68-
# do not optimize proc-macro crates = faster builds from scratch
69-
[profile.dev.build-override]
70-
codegen-units = 8
71-
debug = false
72-
debug-assertions = false
73-
opt-level = 0
74-
overflow-checks = false
7559

76-
[profile.release.build-override]
77-
codegen-units = 8
78-
debug = false
79-
debug-assertions = false
80-
opt-level = 0
81-
overflow-checks = false
82-
83-
# cargo test
84-
[profile.test]
60+
[profile.dev.package.b1display]
8561
codegen-units = 1
86-
debug = 2
87-
debug-assertions = true
88-
incremental = false
62+
incremental = true
63+
# To allow single-stepping through code use 0. Will cause timing issues, though
8964
opt-level = 3
90-
overflow-checks = true
9165

92-
# cargo test --release
93-
[profile.bench]
66+
# Faster and smaller code but much slower to compile.
67+
# Increase in rebuild time from <1s to 20s
68+
[profile.release]
9469
codegen-units = 1
9570
debug = 2
96-
debug-assertions = false
97-
incremental = false
9871
lto = 'fat'
99-
opt-level = 3

0 commit comments

Comments
 (0)