summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-09-18 09:50:59 +0300
committerLars Wirzenius <liw@liw.fi>2019-09-18 09:50:59 +0300
commit1df01d1cf9caa2c134b3292b6d7efa6ad1386818 (patch)
tree84a7fc4d9eff76d8b705e70978772fe33f7005c9
downloadroadmap-1df01d1cf9caa2c134b3292b6d7efa6ad1386818.tar.gz
Add: first commit
-rw-r--r--.gitignore3
-rw-r--r--Cargo.toml9
-rw-r--r--src/lib.rs40
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
+ }
+}