Skip to content

Commit 3b21674

Browse files
authored
build: turn off debug-info (#140)
it's mostly useless anyway, but could be overriden if needed. OTOH, it improves the build times and reduces the artifact sizes significantly which is very important in our case.
1 parent 81a55ad commit 3b21674

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Cargo.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
[profile.release]
2+
panic = "unwind"
3+
incremental = true
4+
debug = 0 # Set this to 1 or 2 to get more useful backtraces in debugger.
5+
6+
[profile.dev]
7+
# Disabling debug info speeds up builds a bunch,
8+
# and we don't rely on it for debugging that much.
9+
debug = 0
10+
111
[workspace]
212
resolver = "2"
313
members = [
@@ -13,6 +23,3 @@ members = [
1323
"sugondat-shim/common/sovereign",
1424
"sugondat-subxt"
1525
]
16-
17-
[profile.release]
18-
panic = "unwind"

0 commit comments

Comments
 (0)