crate-ify bevy_diagnostic
This commit is contained in:
		
							parent
							
								
									819c7708f9
								
							
						
					
					
						commit
						1471cc84c5
					
				| @ -13,6 +13,7 @@ bevy_app = { path = "bevy_app" } | |||||||
| bevy_asset = { path = "bevy_asset" } | bevy_asset = { path = "bevy_asset" } | ||||||
| bevy_core = { path = "bevy_core" } | bevy_core = { path = "bevy_core" } | ||||||
| bevy_derive = { path = "bevy_derive" } | bevy_derive = { path = "bevy_derive" } | ||||||
|  | bevy_diagnostic = { path = "bevy_diagnostic" } | ||||||
| bevy_input = { path = "bevy_input" } | bevy_input = { path = "bevy_input" } | ||||||
| bevy_render = { path = "bevy_render" } | bevy_render = { path = "bevy_render" } | ||||||
| bevy_transform = { path = "bevy_transform" } | bevy_transform = { path = "bevy_transform" } | ||||||
|  | |||||||
							
								
								
									
										13
									
								
								bevy_diagnostic/Cargo.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								bevy_diagnostic/Cargo.toml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | |||||||
|  | [package] | ||||||
|  | name = "bevy_diagnostic" | ||||||
|  | version = "0.1.0" | ||||||
|  | authors = ["Carter Anderson <mcanders1@gmail.com>"] | ||||||
|  | edition = "2018" | ||||||
|  | 
 | ||||||
|  | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||||||
|  | 
 | ||||||
|  | [dependencies] | ||||||
|  | bevy_app = { path = "../bevy_app" } | ||||||
|  | bevy_core = { path = "../bevy_core" } | ||||||
|  | legion = { path = "../bevy_legion" } | ||||||
|  | uuid = { version = "0.8", features = ["v4", "serde"] } | ||||||
| @ -1,9 +1,6 @@ | |||||||
| use super::{Diagnostic, DiagnosticId, Diagnostics}; | use super::{Diagnostic, DiagnosticId, Diagnostics}; | ||||||
| use crate::{ | use bevy_core::time::Time; | ||||||
|     core::time::Time, | use legion::prelude::*; | ||||||
|     prelude::{Resources, SystemBuilder}, |  | ||||||
| }; |  | ||||||
| use legion::prelude::Schedulable; |  | ||||||
| use std::time::Duration; | use std::time::Duration; | ||||||
| use uuid::Uuid; | use uuid::Uuid; | ||||||
| 
 | 
 | ||||||
| @ -2,7 +2,7 @@ mod diagnostic; | |||||||
| pub mod diagnostics; | pub mod diagnostics; | ||||||
| pub use diagnostic::*; | pub use diagnostic::*; | ||||||
| 
 | 
 | ||||||
| use crate::app::{AppPlugin, AppBuilder}; | use bevy_app::{AppPlugin, AppBuilder}; | ||||||
| use std::time::Duration; | use std::time::Duration; | ||||||
| use diagnostics::{print_diagnostics_system, frame_time_diagnostic_system}; | use diagnostics::{print_diagnostics_system, frame_time_diagnostic_system}; | ||||||
| 
 | 
 | ||||||
| @ -1,5 +1,4 @@ | |||||||
| #![feature(specialization)] | #![feature(specialization)] | ||||||
| pub mod diagnostic; |  | ||||||
| pub mod ecs; | pub mod ecs; | ||||||
| pub mod prelude; | pub mod prelude; | ||||||
| pub mod serialization; | pub mod serialization; | ||||||
| @ -7,6 +6,7 @@ pub mod ui; | |||||||
| 
 | 
 | ||||||
| pub use bevy_transform as transform; | pub use bevy_transform as transform; | ||||||
| pub use bevy_core as core; | pub use bevy_core as core; | ||||||
|  | pub use bevy_diagnostic as diagnostic; | ||||||
| pub use bevy_asset as asset; | pub use bevy_asset as asset; | ||||||
| pub use bevy_render as render; | pub use bevy_render as render; | ||||||
| pub use bevy_app as app; | pub use bevy_app as app; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Carter Anderson
						Carter Anderson