From 6d77ac17b4414d30384473c667e08199f428d94e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 30 Oct 2021 16:20:52 +0200 Subject: driver: replace dependency cutoff with stub tasks Instead of having the resolver decide whether a dependency is included in the rootfs, let the context replace the task definition with an empty stub. --- crates/driver/src/task.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/driver/src/task.rs') diff --git a/crates/driver/src/task.rs b/crates/driver/src/task.rs index 6b9083b..8f3c7d6 100644 --- a/crates/driver/src/task.rs +++ b/crates/driver/src/task.rs @@ -50,14 +50,14 @@ pub struct OutputDep { pub output: String, } -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Default)] pub struct Output { pub path: Option, #[serde(default)] pub runtime_depends: HashSet, } -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Default)] pub struct Action { #[serde(default)] pub run: String, @@ -69,7 +69,7 @@ impl Action { } } -#[derive(Clone, Debug, Deserialize)] +#[derive(Clone, Debug, Deserialize, Default)] pub struct TaskDef { #[serde(skip)] pub meta: RecipeMeta, -- cgit v1.2.3