Use Nightly + Cranelift for dev, only fail on warnings in CI (#4388)

* Switch to nightly + cranelift

* Fail on warnings only in CI

* Fix check errors

* Don't use mold on Linux to fix CI

* Pin nightly toolchain and add default rustup components

* Fix another CI thing

* PR comment
This commit is contained in:
aecsocket
2025-09-18 19:20:19 +01:00
committed by GitHub
parent 4def0e8407
commit 36d0760a3e
7 changed files with 30 additions and 24 deletions

View File

@@ -1,9 +1,16 @@
# Windows has stack overflows when calling from Tauri, so we increase the default stack size used by the compiler
[target.'cfg(windows)']
rustflags = ["-C", "link-args=/STACK:16777220", "--cfg", "tokio_unstable"]
# Enable Cranelift for debug builds, improving iterative compile times
[unstable]
codegen-backend = true
[target.x86_64-pc-windows-msvc]
linker = "rust-lld"
[profile.dev]
codegen-backend = "cranelift"
[build]
rustflags = ["--cfg", "tokio_unstable"]
# Windows has stack overflows when calling from Tauri, so we increase the default stack size used by the compiler
[target.'cfg(windows)']
rustflags = ["--cfg", "tokio_unstable", "-C", "link-args=/STACK:16777220"]
[target.x86_64-pc-windows-msvc]
linker = "rust-lld"