Separate library and binary crates

This commit is contained in:
Jarrod Doyle 2024-02-04 09:51:26 +00:00
parent bc101702aa
commit 9b5fd86a7c
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
mod element;
mod rules;
pub mod rules;
mod systems;
use bevy::{

2
src/lib.rs Normal file
View File

@ -0,0 +1,2 @@
pub mod falling_sand;
pub mod util;

View File

@ -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 {