Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
[profile.debug]
# rustc spends an inordinate amount of time on LLVM
rustflags = ["-C", "no-prepopulate-passes"]
[profile.dev]
# recommendation coming from
# https://doc.rust-lang.org/nightly/cargo/guide/build-performance.html#reduce-amount-of-generated-debug-information
# for our normal dev work, line-tables are good enough to see line numbers in backtraces.
debug = "line-tables-only"
# mostly for mac os, splits debug info into separate files to speed up incremental builds
# https://corrode.dev/blog/tips-for-faster-rust-compile-times/#macos-only-faster-incremental-debug-builds
split-debuginfo = "unpacked"

[profile.dev.build-override]
# optimize proc macros & build scripts, make them execute faster
# https://corrode.dev/blog/tips-for-faster-rust-compile-times/#avoid-procedural-macro-crates
opt-level = 3

[profile.dev.package."*"]
# no debug information for dependencies
debug = false

[profile.debugging]
# big "debugging" profile, if you need to do real interactive debugging
inherits = "dev"
debug = true
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:

env:
RUST_CACHE_KEY: rust-cache-20241114
# disable incremental builds in CI, it's not needed
CARGO_INCREMENTAL: 0


jobs:
sqlx:
Expand Down
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ aws-smithy-http = "0.62.0"
indoc = "2.0.0"
pretty_assertions = "1.4.0"

[profile.dev.package."*"]
opt-level = 2
debug = "line-tables-only"

[build-dependencies]
time = "0.3"
md5 = "0.8.0"
Expand Down
Loading