From 6ffc4fe7118d85a8bcdc97c316fcd23b50d01122 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Mon, 29 Jan 2024 10:30:40 -0800 Subject: [PATCH] fix: linker and stripping --- backend/Cargo.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/backend/Cargo.toml b/backend/Cargo.toml index a4b93fd..92f0db4 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -5,6 +5,25 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profiles.release] +strip = "debuginfo" + +# Linker options +[target.x86_64-unknown-linux-gnu] +rustflags = [ + "-C", "link-arg=-fuse-ld=lld", +] + +[target.x86_64-apple-darwin] +rustflags = [ + "-C", "link-arg=-fuse-ld=lld", +] + +[target.aarch64-apple-darwin] +rustflags = [ + "-C", "link-arg=-fuse-ld=lld", +] + [dependencies] async-std = "1.12.0" chrono = "0.4.31"