init start modules
This commit is contained in:
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!()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user