summaryrefslogtreecommitdiffstats
path: root/src/recipe.rs
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-01-26 22:04:18 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-01-26 22:04:18 +0100
commite48108cdef9555565d0715f4b6f39228cfc45376 (patch)
treecc4d1bf88a2a7d407dda841108ea30778bece53d /src/recipe.rs
parent9e60d16555765a6cfc053798f56e5b914ea1834e (diff)
downloadrebel-e48108cdef9555565d0715f4b6f39228cfc45376.tar
rebel-e48108cdef9555565d0715f4b6f39228cfc45376.zip
Rewrite dependency resolution to reuse solutions
Diffstat (limited to 'src/recipe.rs')
-rw-r--r--src/recipe.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/recipe.rs b/src/recipe.rs
index d06b62b..20bca6d 100644
--- a/src/recipe.rs
+++ b/src/recipe.rs
@@ -1,14 +1,8 @@
-use im::HashMap;
use serde::Deserialize;
-use std::{fmt, fs::File, io, path::Path};
+use std::{collections::HashMap, fmt, fs::File, io, path::Path};
use walkdir::WalkDir;
-#[derive(Clone, Debug, Deserialize)]
-pub struct Task {
- #[serde(default)]
- pub depends: Vec<String>,
- pub run: String,
-}
+use crate::types::*;
#[derive(Clone, Debug, Deserialize)]
pub struct Recipe {