summaryrefslogtreecommitdiff
path: root/.cargo
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-08-30 06:37:20 +0200
committerHampusM <hampus@hampusmat.com>2026-08-30 06:37:20 +0200
commit80d2cee1b457fc25c32fa780fb349c97889e0df1 (patch)
treef9c9eebe8c6ac6d8a555bc7c35e4b9382a8b2ed3 /.cargo
parent5fbb20f595de6c62a86ae13abf094d70bf215e8b (diff)
build: add cargo config for ultra fast dev compilations
Diffstat (limited to '.cargo')
-rw-r--r--.cargo/config-nightly-fast-compile.toml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.cargo/config-nightly-fast-compile.toml b/.cargo/config-nightly-fast-compile.toml
new file mode 100644
index 0000000..3c29665
--- /dev/null
+++ b/.cargo/config-nightly-fast-compile.toml
@@ -0,0 +1,16 @@
+include = ["config.toml"]
+
+[unstable]
+codegen-backend = true
+
+[profile.dev]
+debug = "line-tables-only"
+backend = "cranelift"
+
+[build]
+rustflags = ["-Zthreads=16"]
+rustc-wrapper = "sccache"
+
+[target.'cfg(unix)']
+linker = "clang"
+rustflags = ["-Clink-arg=--ld-path=wild"]