diff --git a/.gitignore b/.gitignore index eaef0d0..7d09c71 100644 --- a/.gitignore +++ b/.gitignore @@ -9,9 +9,7 @@ *.exe # Generated by Cargo -/target/ - - -/target +*/target/ **/*.rs.bk Cargo.lock +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..780a0c0 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "CookAssistant" +version = "0.1.0" +authors = ["artus "] +edition = "2018" + +[dependencies] +cookbook = { path = "cookbook/" } +planner = { path = "planner/" } diff --git a/cookbook/Cargo.toml b/cookbook/Cargo.toml new file mode 100644 index 0000000..a460661 --- /dev/null +++ b/cookbook/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "cookbook" +version = "0.1.0" +authors = ["artus "] +edition = "2018" + +[dependencies] diff --git a/cookbook/src/lib.rs b/cookbook/src/lib.rs new file mode 100644 index 0000000..31e1bb2 --- /dev/null +++ b/cookbook/src/lib.rs @@ -0,0 +1,7 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +} diff --git a/cookbook/src/meals.rs b/cookbook/src/meals.rs new file mode 100644 index 0000000..e1561d4 --- /dev/null +++ b/cookbook/src/meals.rs @@ -0,0 +1,11 @@ + +enum Meal { + FullMeal, + Composed, +} + +fn retrieve_all() -> Vec { + vec!() +} + + diff --git a/planner/Cargo.toml b/planner/Cargo.toml new file mode 100644 index 0000000..019aa81 --- /dev/null +++ b/planner/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "planner" +version = "0.1.0" +authors = ["artus "] +edition = "2018" + +[dependencies] +cookbook = { path = "../cookbook/" } diff --git a/planner/src/lib.rs b/planner/src/lib.rs new file mode 100644 index 0000000..31e1bb2 --- /dev/null +++ b/planner/src/lib.rs @@ -0,0 +1,7 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + assert_eq!(2 + 2, 4); + } +} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}