chore: Add dbg profile and improve profile comments
@@ -29,13 +29,14 @@ uniffi_build = { git = "https://github.com/mozilla/uniffi-rs", rev = "779e955f21
vodozemac = "0.3.0"
zeroize = "1.3.0"
+# Default release profile, select with `--release`
[profile.release]
lto = true
+# Default development profile; default for most Cargo commands, otherwise
+# selected with `--debug`
[profile.dev]
-# Copied from rust-analyzer. Saves a lot of disk space and hopefully
-# compilation time / mem usage too, at the expense of potentially having to
-# change this setting here when you want to use a debugger.
+# Saves a lot of disk space. If symbols are needed, use the dbg profile.
debug = 0
[profile.dev.package]
@@ -43,3 +44,8 @@ debug = 0
# for the extra time of optimizing it for a clean build of matrix-sdk-ffi.
quote = { opt-level = 2 }
sha2 = { opt-level = 2 }
+
+# Custom profile with full debugging info, use `--profile debug` to select
+[profile.dbg]
+inherits = "dev"
+debug = 2
