| Crates.io | restaurant_jolah |
| lib.rs | restaurant_jolah |
| version | 0.1.1 |
| created_at | 2025-05-20 20:27:44.709465+00 |
| updated_at | 2025-05-20 22:09:52.106821+00 |
| description | A reusable restaurant library |
| homepage | |
| repository | https://github.com/jolah1/restaurant |
| max_upload_size | |
| id | 1682245 |
| size | 3,928 |
This is a simple and educational reusable Rust library.
It demonstrates how to:
pubfront_of_house vs back_of_houseeat_at_restaurant() or individual module APIsrestaurant/ ├── Cargo.toml ├── src/ │ ├── lib.rs # Library root │ ├── front_of_house.rs # Handles customer interactions │ ├── back_of_house.rs # Kitchen logic │ └── bin/ │ └── main.rs # Binary example that uses the library
git clone https://github.com/jolah1/restaurant.git
cd restaurant
cargo run --bin main
use restaurant::eat_at_restaurant;
fn main() {
eat_at_restaurant();
}
Added to waitlist.
Added to waitlist.
I'd like Wheat toast please
Building Rust libraries with clear public APIs
Managing code with modular file structure
Using privacy rules to protect internal logic
Preparing codebases for scalability and reusability