summaryrefslogtreecommitdiffstats
path: root/crates/driver/src/task.rs
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-10-30 16:20:52 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-10-30 16:51:42 +0200
commit6d77ac17b4414d30384473c667e08199f428d94e (patch)
treebd00f2b6c68f02bc9d632a46b6e1371afc05c1cb /crates/driver/src/task.rs
parent831c3c543e3df14697eb3f8dc89eaf0b08dd4b66 (diff)
downloadrebel-6d77ac17b4414d30384473c667e08199f428d94e.tar
rebel-6d77ac17b4414d30384473c667e08199f428d94e.zip
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.
Diffstat (limited to 'crates/driver/src/task.rs')
-rw-r--r--crates/driver/src/task.rs6
1 files changed, 3 insertions, 3 deletions
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<String>,
#[serde(default)]
pub runtime_depends: HashSet<OutputDep>,
}
-#[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,