diff --git a/the_book/restaurant/Cargo.toml b/the_book/restaurant/Cargo.toml new file mode 100644 index 0000000..678b365 --- /dev/null +++ b/the_book/restaurant/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "restaurant" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/the_book/restaurant/src/front_of_house.rs b/the_book/restaurant/src/front_of_house.rs new file mode 100644 index 0000000..d0a8154 --- /dev/null +++ b/the_book/restaurant/src/front_of_house.rs @@ -0,0 +1 @@ +pub mod hosting; diff --git a/the_book/restaurant/src/front_of_house/hosting.rs b/the_book/restaurant/src/front_of_house/hosting.rs new file mode 100644 index 0000000..d65f3af --- /dev/null +++ b/the_book/restaurant/src/front_of_house/hosting.rs @@ -0,0 +1 @@ +pub fn add_to_waitlist() {} diff --git a/the_book/restaurant/src/lib.rs b/the_book/restaurant/src/lib.rs new file mode 100644 index 0000000..5bb71b2 --- /dev/null +++ b/the_book/restaurant/src/lib.rs @@ -0,0 +1,15 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + let result = 2 + 2; + assert_eq!(result, 4); + } +} +mod front_of_house; + +pub use crate::front_of_house::hosting; + +pub fn eat_at_restaurant() { + hosting::add_to_waitlist(); +}