diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Cargo.toml | 9 | ||||
-rw-r--r-- | src/lib.rs | 40 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6936990 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/target +**/*.rs.bk +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..3bfe654 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "roadmap" +version = "0.1.0" +authors = ["Lars Wirzenius <liw@liw.fi>"] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..3cb7e43 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,40 @@ +pub struct Step { + pub name: String, + pub label: String, + pub depends: Vec<String>, +} + +impl Step { + pub fn new() -> Step { + Step { + name: "".to_string(), + label: "".to_string(), + depends: vec![], + } + } +} + +pub struct Roadmap { + pub steps: Vec<Step>, +} + + +impl Roadmap { + pub fn new() -> Roadmap { + Roadmap { + steps: vec![], + } + } + + pub fn from_yaml(_yaml: String) -> Option<Roadmap> { + None + } + + pub fn get_step(self, _name: &str) -> Option<Step> { + None + } + + pub fn as_dot(self) -> Option<String> { + None + } +} |