From 7dd93ab825e9c73aa55460feaf454e70d8c1e5e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Fri, 4 Apr 2025 02:35:19 +0200 Subject: [PATCH] Reduce the compilation time by so much --- Cargo.toml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 34b270c..66e813b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,11 +10,18 @@ path = "main.rs" [dependencies] ab_glyph = "0.2.29" calamine = "0.26.1" -chrono = "0.4.40" image = "0.25.6" imageproc = "0.25.0" printpdf = { version = "0.8.2", features = ["png"] } serde = "1.0.217" -small_uid = "0.2.4" structopt = "0.3.26" -tempfile = "3.19.1" + +[profile.dev] +opt-level = 1 +[profile.dev.package."*"] +opt-level = 3 + + +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]