{"id":29194685,"url":"https://github.com/0xadafang/fastfoodsimulator","last_synced_at":"2025-07-02T04:31:26.890Z","repository":{"id":299703212,"uuid":"971636438","full_name":"0xAdafang/FastFoodSimulator","owner":"0xAdafang","description":"FastFoodSimulator is a Rust-based simulation of a fast-food workflow, built to practice concurrency with tokio, Arc\u003cMutex\u003c\u003e\u003e, and async task loops. It’s a modular sandbox for learning real-time systems and shared-state logic.","archived":false,"fork":false,"pushed_at":"2025-06-17T21:35:15.000Z","size":48281,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T22:27:42.863Z","etag":null,"topics":["async","cli","multithreading","mutex","rust","simulator","threads","tokio"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xAdafang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-23T20:32:16.000Z","updated_at":"2025-06-17T21:31:44.000Z","dependencies_parsed_at":"2025-06-17T22:38:39.253Z","dependency_job_id":null,"html_url":"https://github.com/0xAdafang/FastFoodSimulator","commit_stats":null,"previous_names":["0xadafang/fastfoodsimulator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/0xAdafang/FastFoodSimulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAdafang%2FFastFoodSimulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAdafang%2FFastFoodSimulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAdafang%2FFastFoodSimulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAdafang%2FFastFoodSimulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xAdafang","download_url":"https://codeload.github.com/0xAdafang/FastFoodSimulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAdafang%2FFastFoodSimulator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263074225,"owners_count":23409721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","cli","multithreading","mutex","rust","simulator","threads","tokio"],"created_at":"2025-07-02T04:30:36.402Z","updated_at":"2025-07-02T04:31:26.877Z","avatar_url":"https://github.com/0xAdafang.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🍔 FastFoodSimulator (Rust Edition)\n\nFastFoodSimulator est une simulation console minimaliste d’un restaurant de type fast-food, **réécrite en Rust**. Le projet modélise le flux opérationnel de base : arrivée des clients, prise de commande, préparation en cuisine et service — chaque étape étant gérée **asynchronement** et de manière **concurrente**.\n\n\u003e 🎯 Ce projet m’a permis de pratiquer des concepts essentiels en Rust comme `Arc`, `Mutex`, `tokio::sleep`, la gestion de tâches asynchrones, ainsi que la séparation logique en modules.\n\n---\n\n## ✨ Fonctionnalités\n\n- ⏱️ Simulation temps réel avec `tokio::time`\n- 🧱 Workflow complet : `OrderTaker → Cook → Server`\n- 🧵 Concurrence avec `Arc\u003cMutex\u003c\u003e\u003e`\n- 📦 Code modulaire, lisible, et extensible\n- 🧠 Structure idéale pour expérimenter la logique asynchrone en Rust\n\n---\n\n## 🧩 Architecture\n\n| Composant              | Rôle                                                      |\n|------------------------|-----------------------------------------------------------|\n| `OrderTaker`           | Génère une commande toutes les X secondes                |\n| `Cook`                 | Prépare les commandes en attente                          |\n| `Server`               | Délivre les commandes prêtes aux clients                  |\n| `Customer` (optionnel) | Peut être simulé comme récupérant les commandes servies   |\n| `Simulation`           | Lance et coordonne toutes les tâches                      |\n| `utils/timer.rs`       | Centralise les constantes temporelles                     |\n| `models/order.rs`      | Définit la structure `Order`                              |\n\n---\n\n## 📸 Aperçu (Console)\n\n\u003e Exemple d'exécution :\n\n![FastFoodSimulator Demo](./images/test.JPG)\n\n---\n\n## 📦 Prérequis\n\n- Rust 1.70+\n- Cargo\n- VS Code ou tout autre IDE compatible Rust\n\n---\n\n## 🚀 Comment lancer\n\n```bash\ngit clone https://github.com/0xAdafang/FastFoodSimulator.git\ncd FastFoodSimulator\ncargo run\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xadafang%2Ffastfoodsimulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xadafang%2Ffastfoodsimulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xadafang%2Ffastfoodsimulator/lists"}