aboutsummaryrefslogtreecommitdiff
path: root/.cargo
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-11-29 00:21:56 +0100
committerPolesznyák Márk <contact@pml68.dev>2025-11-29 00:36:55 +0100
commit3d340c689b39427f1b29b642baa108d7f5fc39ac (patch)
treed60483635a42e28278bb81c8c199cb5dad03c823 /.cargo
downloaddotfiles-3d340c689b39427f1b29b642baa108d7f5fc39ac.tar.gz
feat: initial commit
Diffstat (limited to '.cargo')
-rw-r--r--.cargo/config.toml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
new file mode 100644
index 0000000..385d1c4
--- /dev/null
+++ b/.cargo/config.toml
@@ -0,0 +1,35 @@
+[alias]
+lint = "clippy --no-deps -- -D warnings"
+lint-all = "clippy --no-deps -- -D clippy::pedantic"
+
+[unstable]
+gc = true
+# Cranelift backend
+#
+# codegen-backend = true
+#
+# [profile]
+# incremental = true
+#
+# [profile.dev]
+# codegen-backend = "cranelift"
+# debug = "line-tables-only"
+#
+# [profile.dev.package.'*']
+# codegen-backend = "llvm"
+#
+# [profile.test.package."*"]
+# codegen-backend = "llvm"
+#
+# [profile.release]
+# codegen-backend = "llvm"
+
+[target.x86_64-unknown-linux-gnu]
+linker = "clang"
+rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]
+
+[build]
+rustflags = [
+ "-Z", "threads=0",
+ "-Z", "share-generics=y"
+]