From 10956e7af4dce708398d7f53d0d3bff0ad0b6836 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 25 Nov 2023 12:44:26 +0100 Subject: [PATCH] feat: with mold Signed-off-by: kjuulh --- crates/dagger-rust/src/htmx.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/dagger-rust/src/htmx.rs b/crates/dagger-rust/src/htmx.rs index 87d3a7d..7ef182c 100644 --- a/crates/dagger-rust/src/htmx.rs +++ b/crates/dagger-rust/src/htmx.rs @@ -49,6 +49,11 @@ impl HtmxBuild { .with_exec(vec!["wget", "https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz"]) .with_exec("tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz".split_whitespace().collect()) .with_exec("mv cargo-binstall /usr/local/cargo/bin".split_whitespace().collect()) + + .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(vec!["cargo", "binstall", "sqlx-cli", "-y"]); let target_cache = self