From 07279d85665df6bd3bddd4225df204498cbeccbe Mon Sep 17 00:00:00 2001 From: John Tennant Date: Mon, 31 Aug 2026 16:16:33 -0400 Subject: [PATCH] perf(dev): reduce Rust debug build cost Signed-off-by: John Tennant --- .cargo/config.toml | 5 +++++ .gitignore | 3 ++- .vscode/settings.json | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .cargo/config.toml create mode 100644 .vscode/settings.json diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 000000000..efc793e32 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[profile.dev] +# Preserve file and line information for backtraces while avoiding the cost of +# generating per-variable debug information. Override with +# CARGO_PROFILE_DEV_DEBUG=2 when inspecting locals in a native debugger. +debug = "line-tables-only" diff --git a/.gitignore b/.gitignore index e2614571d..c847af6fc 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,8 @@ dist/ # Editor / IDE .idea/ -.vscode/ +.vscode/* +!.vscode/settings.json *.swp *.swo *~ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..c39504ebc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "rust-analyzer.cargo.targetDir": true +}