init start modules
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -9,9 +9,7 @@
|
||||
*.exe
|
||||
|
||||
# Generated by Cargo
|
||||
/target/
|
||||
|
||||
|
||||
/target
|
||||
*/target/
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
||||
/target
|
||||
|
||||
9
Cargo.toml
Normal file
9
Cargo.toml
Normal file
@@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "CookAssistant"
|
||||
version = "0.1.0"
|
||||
authors = ["artus <artus@landoftheunicorn.hd.free.fr>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
cookbook = { path = "cookbook/" }
|
||||
planner = { path = "planner/" }
|
||||
7
cookbook/Cargo.toml
Normal file
7
cookbook/Cargo.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "cookbook"
|
||||
version = "0.1.0"
|
||||
authors = ["artus <artus@landoftheunicorn.hd.free.fr>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
7
cookbook/src/lib.rs
Normal file
7
cookbook/src/lib.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn it_works() {
|
||||
assert_eq!(2 + 2, 4);
|
||||
}
|
||||
}
|
||||
11
cookbook/src/meals.rs
Normal file
11
cookbook/src/meals.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
enum Meal {
|
||||
FullMeal,
|
||||
Composed,
|
||||
}
|
||||
|
||||
fn retrieve_all() -> Vec<Meal> {
|
||||
vec!()
|
||||
}
|
||||
|
||||
|
||||
8
planner/Cargo.toml
Normal file
8
planner/Cargo.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "planner"
|
||||
version = "0.1.0"
|
||||
authors = ["artus <artus@landoftheunicorn.hd.free.fr>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
cookbook = { path = "../cookbook/" }
|
||||
7
planner/src/lib.rs
Normal file
7
planner/src/lib.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn it_works() {
|
||||
assert_eq!(2 + 2, 4);
|
||||
}
|
||||
}
|
||||
3
src/main.rs
Normal file
3
src/main.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
Reference in New Issue
Block a user