diff --git a/crates/dagger-rust/src/source.rs b/crates/dagger-rust/src/source.rs index bb90ee1..61937d6 100644 --- a/crates/dagger-rust/src/source.rs +++ b/crates/dagger-rust/src/source.rs @@ -1,6 +1,4 @@ -use std::{ - path::{Path, PathBuf}, -}; +use std::path::{Path, PathBuf}; use eyre::Context; @@ -118,7 +116,10 @@ impl RustSource { .map(|c| format!("**/*{}*", c.replace('-', "_"))) .collect::>(); - let exclude = exclude.iter().map(|c| c.as_str()).collect(); + let original_crates = crates.clone(); + original_crates.extend(exclude); + + let exclude = original_crates.iter().map(|c| c.as_str()).collect(); let incremental_dir = self.client.directory().with_directory_opts( ".",