From e188de555712c3dc55a40a8ab9c70ae7fce198f9 Mon Sep 17 00:00:00 2001 From: fbachus Date: Fri, 8 Nov 2024 18:54:34 +0100 Subject: [PATCH] add cargo settings --- .cargo/config.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..664d6e8 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,13 @@ +[profile.dev] +opt-level = 1 + +[profile.dev.package."*"] +opt-level = 3 + +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-C", "target-cpu=native", "-C", + "link-arg=-fuse-ld=/usr/bin/mold"] + +[build] +rustc-wrapper = "sccache"