Create a package for studying module structuring

This commit is contained in:
Manuel Thalmann 2025-01-08 11:17:47 +01:00
parent 4f0fdba18e
commit 480c36382e
3 changed files with 28 additions and 0 deletions

7
restaurant/Cargo.lock generated Normal file
View 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
View file

@ -0,0 +1,6 @@
[package]
name = "restaurant"
version = "0.1.0"
edition = "2021"
[dependencies]

15
restaurant/src/lib.rs Normal file
View 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() {}
}
}