Create a package for studying module structuring
This commit is contained in:
parent
4f0fdba18e
commit
480c36382e
3 changed files with 28 additions and 0 deletions
7
restaurant/Cargo.lock
generated
Normal file
7
restaurant/Cargo.lock
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "restaurant"
|
||||
version = "0.1.0"
|
6
restaurant/Cargo.toml
Normal file
6
restaurant/Cargo.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "restaurant"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
15
restaurant/src/lib.rs
Normal file
15
restaurant/src/lib.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
mod front_of_house {
|
||||
mod hosting {
|
||||
fn add_to_waitlist() {}
|
||||
|
||||
fn seat_at_table() {}
|
||||
}
|
||||
|
||||
mod serving {
|
||||
fn take_order() {}
|
||||
|
||||
fn serve_order() {}
|
||||
|
||||
fn take_payment() {}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue