crate-ify bevy_diagnostic

This commit is contained in:
Carter Anderson 2020-04-06 00:12:54 -07:00
parent 819c7708f9
commit 1471cc84c5
6 changed files with 18 additions and 7 deletions

View file

@ -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" }

View 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"] }

View file

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

View file

@ -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};

View file

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