mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
crate-ify bevy_diagnostic
This commit is contained in:
parent
819c7708f9
commit
1471cc84c5
6 changed files with 18 additions and 7 deletions
|
@ -13,6 +13,7 @@ bevy_app = { path = "bevy_app" }
|
|||
bevy_asset = { path = "bevy_asset" }
|
||||
bevy_core = { path = "bevy_core" }
|
||||
bevy_derive = { path = "bevy_derive" }
|
||||
bevy_diagnostic = { path = "bevy_diagnostic" }
|
||||
bevy_input = { path = "bevy_input" }
|
||||
bevy_render = { path = "bevy_render" }
|
||||
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 crate::{
|
||||
core::time::Time,
|
||||
prelude::{Resources, SystemBuilder},
|
||||
};
|
||||
use legion::prelude::Schedulable;
|
||||
use bevy_core::time::Time;
|
||||
use legion::prelude::*;
|
||||
use std::time::Duration;
|
||||
use uuid::Uuid;
|
||||
|
|
@ -2,7 +2,7 @@ mod diagnostic;
|
|||
pub mod diagnostics;
|
||||
pub use diagnostic::*;
|
||||
|
||||
use crate::app::{AppPlugin, AppBuilder};
|
||||
use bevy_app::{AppPlugin, AppBuilder};
|
||||
use std::time::Duration;
|
||||
use diagnostics::{print_diagnostics_system, frame_time_diagnostic_system};
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
#![feature(specialization)]
|
||||
pub mod diagnostic;
|
||||
pub mod ecs;
|
||||
pub mod prelude;
|
||||
pub mod serialization;
|
||||
|
@ -7,6 +6,7 @@ pub mod ui;
|
|||
|
||||
pub use bevy_transform as transform;
|
||||
pub use bevy_core as core;
|
||||
pub use bevy_diagnostic as diagnostic;
|
||||
pub use bevy_asset as asset;
|
||||
pub use bevy_render as render;
|
||||
pub use bevy_app as app;
|
||||
|
|
Loading…
Reference in a new issue