From 9b5fd86a7c70c5db468de2dd44c82fd00a21b05b Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 4 Feb 2024 09:51:26 +0000 Subject: [PATCH] Separate library and binary crates --- src/falling_sand/mod.rs | 2 +- src/lib.rs | 2 ++ src/main.rs | 4 +--- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 src/lib.rs diff --git a/src/falling_sand/mod.rs b/src/falling_sand/mod.rs index c09d31d..2d83d59 100644 --- a/src/falling_sand/mod.rs +++ b/src/falling_sand/mod.rs @@ -1,5 +1,5 @@ mod element; -mod rules; +pub mod rules; mod systems; use bevy::{ diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..f831731 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,2 @@ +pub mod falling_sand; +pub mod util; diff --git a/src/main.rs b/src/main.rs index 03c8da7..4c216a1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,11 +1,9 @@ -mod falling_sand; -mod util; - use bevy::{ diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin}, prelude::*, window::PresentMode, }; +use haranae_rs::falling_sand; fn main() { let window_plugin = WindowPlugin {