Skip to content

Commit 977337f

Browse files
authored
build: Disable debug in dev again (#66)
This seems to have been removed unintentionally as a drive-by refactor. Brings back our usual profile management that we also use in Relay and Symbolicator. By default, debug information is disabled in development to speed up the build and reduce the target folder size. In a `dev-debug` profile or in `release`, debug information is enabled.
1 parent 791113a commit 977337f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ resolver = "3"
33
members = ["objectstore-*", "stresstest"]
44
default-members = ["objectstore-server"]
55

6+
[profile.dev]
7+
# Debug information slows down the build and increases caches in the
8+
# target folder, but we don't require stack traces in most cases.
9+
debug = false
10+
11+
[profile.dev-debug]
12+
# A version of the dev profile with debug information enabled, for e.g. local
13+
# debugging.
14+
inherits = "dev"
15+
debug = true
16+
617
[profile.release]
718
# In release, however, we do want full debug information to report
819
# panic and error stack traces to Sentry.

0 commit comments

Comments
 (0)