From 2ccd472484bb282ab0e7ab5070f06bf1e8f77267 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Tue, 15 Oct 2024 21:52:39 +0200 Subject: [PATCH] build speedup --- .cargo/config.toml | 5 +++++ Cargo.toml | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..984714c --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ + +[target.x86_64-unknown-linux-gnu] +# linker = "/usr/bin/clang-15" +rustflags = ["-C", "link-arg=--ld-path=/home/dan/.nix-profile/bin/mold"] +# rustflags = ["-C", "link-arg=-fuse-ld=/home/dan/.nix-profile/bin/mold"] \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index b985823..0d59e3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,3 +27,7 @@ librespot-protocol = { git = "https://github.com/photovoltex/librespot.git", bra futures-util = { version = "0.3", features = ["alloc", "bilock", "sink", "unstable"] } rspotify = { version = "0.13.3" } oauth2 = "4.4" + +[profile.dev] +debug = 0 +strip = "debuginfo"