Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -55,14 +55,6 @@ impl RustBuild {
|
||||
let target_str = target.to_string();
|
||||
let mut build_options = vec!["cargo", "build", "--target", &target_str, "--workspace"];
|
||||
|
||||
let entries = dep_src
|
||||
.directory("crates/example_bin/src")
|
||||
.entries()
|
||||
.await?;
|
||||
for entry in entries {
|
||||
println!("entry: {}", entry);
|
||||
}
|
||||
|
||||
if matches!(profile, BuildProfile::Release) {
|
||||
build_options.push("--release");
|
||||
}
|
||||
|
@@ -185,7 +185,10 @@ impl RustSource {
|
||||
if let Some(file_name) = rust_crate.file_name() {
|
||||
crate_names.push(file_name.to_str().unwrap().to_string());
|
||||
}
|
||||
directory = create_skeleton_files(directory, rust_crate.strip_prefix(source_path)?)?;
|
||||
directory = create_skeleton_files(
|
||||
directory,
|
||||
rust_crate.strip_prefix(source_path).unwrap_or(&rust_crate),
|
||||
)?;
|
||||
}
|
||||
|
||||
Ok((directory, crate_names))
|
||||
|
@@ -43,15 +43,6 @@ impl RustTest {
|
||||
let target_cache = self.client.cache_volume(format!("rust_target_test",));
|
||||
|
||||
let build_options = vec!["cargo", "build", "--workspace"];
|
||||
|
||||
let entries = dep_src
|
||||
.directory("crates/example_bin/src")
|
||||
.entries()
|
||||
.await?;
|
||||
for entry in entries {
|
||||
println!("entry: {}", entry);
|
||||
}
|
||||
|
||||
let rust_prebuild = rust_build_image
|
||||
.with_workdir("/mnt/src")
|
||||
.with_directory("/mnt/src", dep_src.id().await?)
|
||||
|
Reference in New Issue
Block a user