Init
This commit is contained in:
		
							
								
								
									
										8
									
								
								lib-utils/Cargo.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								lib-utils/Cargo.toml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
[package]
 | 
			
		||||
name = "lib-utils"
 | 
			
		||||
version = { workspace = true }
 | 
			
		||||
edition = { workspace = true }
 | 
			
		||||
 | 
			
		||||
[dependencies]
 | 
			
		||||
bevy = { workspace = true }
 | 
			
		||||
log = { workspace = true }
 | 
			
		||||
							
								
								
									
										13
									
								
								lib-utils/src/lib.rs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								lib-utils/src/lib.rs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
use bevy::prelude::*;
 | 
			
		||||
 | 
			
		||||
pub fn print_hello_world() {
 | 
			
		||||
    println!("Hello from utils crate!");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
pub struct UtilsPlugin;
 | 
			
		||||
 | 
			
		||||
impl Plugin for UtilsPlugin {
 | 
			
		||||
    fn build(&self, app: &mut App) {
 | 
			
		||||
        app.add_systems(Startup, print_hello_world);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user