From 5c69c3fa161bf2c1e0b3ca97daab800b34066b39 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 25 Nov 2023 12:47:43 +0100 Subject: [PATCH] feat: with mold Signed-off-by: kjuulh --- crates/dagger-rust/src/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/dagger-rust/src/build.rs b/crates/dagger-rust/src/build.rs index 5d61f2c..8329372 100644 --- a/crates/dagger-rust/src/build.rs +++ b/crates/dagger-rust/src/build.rs @@ -44,6 +44,9 @@ impl RustBuild { .from(rust_version.to_string()) .with_exec(vec!["rustup", "target", "add", &target.to_string()]) .with_exec(vec!["apt", "update"]) + .with_exec(vec!["wget", "https://github.com/rui314/mold/releases/latest/download/mold-2.3.3-x86_64-linux.tar.gz"]) + .with_exec("tar -xvf mold-2.3.3-x86_64-linux.tar.gz".split_whitespace().collect()) + .with_exec("mv mold /usr/bin/mold".split_whitespace().collect()) .with_exec(deps); let target_cache = self.client.cache_volume(format!(