From 603d95a6cb16ee8e5a42643f9e2e024881b8b3e4 Mon Sep 17 00:00:00 2001 From: skyeshroom <61299664+skyeshroom@users.noreply.github.com> Date: Wed, 11 Aug 2021 12:31:15 -0700 Subject: [PATCH] changed to a library --- src/{main.rs => lib.rs} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/{main.rs => lib.rs} (99%) diff --git a/src/main.rs b/src/lib.rs similarity index 99% rename from src/main.rs rename to src/lib.rs index ee48b15..0b5943e 100644 --- a/src/main.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ const REALTIME: bool = true; const DEBUG_LOOP: bool = false; const DEBUG_TIME: bool = true; -fn main() { +pub fn run_simulation() { // allow the simulation to be stopped from within the loop (by setting simulate to false) let mut simulate: bool = true;