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!(