diff --git a/crates/dagger-rust/src/leptos.rs b/crates/dagger-rust/src/leptos.rs index 8cdf886..4a25cda 100644 --- a/crates/dagger-rust/src/leptos.rs +++ b/crates/dagger-rust/src/leptos.rs @@ -107,9 +107,13 @@ impl LeptosBuild { ) .await?; - let binary_build = - build_container - .with_exec(vec!["cargo", "leptos", "build", "--release", "-vv"]); + let binary_build = build_container.with_exec(vec![ + "cargo", + "leptos", + "build", + "--release", + "-vv", + ]); self.build_debian_image( binary_build, @@ -146,7 +150,11 @@ impl LeptosBuild { "-p", bin_name, ]) - .file(format!("target/{}/release/{}", target.to_string(), bin_name)); + .file(format!( + "target/{}/release/{}", + target.to_string(), + bin_name + )); self.build_alpine_image( bin, diff --git a/crates/dagger-rust/src/source.rs b/crates/dagger-rust/src/source.rs index 4bca6ad..ee9a2e3 100644 --- a/crates/dagger-rust/src/source.rs +++ b/crates/dagger-rust/src/source.rs @@ -89,6 +89,7 @@ impl RustSource { let mut excludes = self.exclude.clone(); excludes.push("**/src".to_string()); + excludes.push("**/test".to_string()); let directory = self.client.host().directory_opts( source.display().to_string(),