Skip to content

Commit

Permalink
internal: Improve dev compile perf. (#1656)
Browse files Browse the repository at this point in the history
* Add dev configs.

* Bump

* Update CI.
  • Loading branch information
milesj authored Sep 21, 2024
1 parent d4d8be4 commit 21be013
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
# https://github.com/johnthagen/min-sized-rust
# https://corrode.dev/blog/tips-for-faster-rust-compile-times/
# https://davidlattimore.github.io/posts/2024/02/04/speeding-up-the-rust-edit-build-run-cycle.html
# https://eisel.me/lld

# [build]
# rustflags = ["--cfg", "tokio_unstable"]

[profile.dev]
split-debuginfo = "unpacked"
# Uncomment these 2 if using the debugger!
debug = 0
strip = "debuginfo"

[profile.release]
codegen-units = 1
lto = true
opt-level = "z"
panic = "abort"
strip = "debuginfo"

# [target.aarch64-apple-darwin]
# rustflags = ["-C", "link-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld"]

# [registries.crates-io]
# protocol = "sparse"
6 changes: 5 additions & 1 deletion .github/workflows/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- master
pull_request:
paths:
- .cargo/config.toml
- .github/workflows/moon.yml
- .moon/*.yml
- crates/**
Expand All @@ -14,6 +15,9 @@ on:
- website/**
- package.json
- yarn.lock
- Cargo.lock
- Cargo.toml
- rust-toolchain.toml

jobs:
ci:
Expand All @@ -22,7 +26,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18, 20]
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- tests/**
- Cargo.lock
- Cargo.toml
- Makefile.toml
- rust-toolchain.toml

concurrency:
Expand Down

0 comments on commit 21be013

Please sign in to comment.