crate-ify serialization. crate-ification is now complete!

This commit is contained in:
Carter Anderson 2020-04-06 16:09:58 -07:00
parent 398c89d307
commit b1c583f500
6 changed files with 21 additions and 12 deletions

View file

@ -16,6 +16,7 @@ bevy_derive = { path = "bevy_derive" }
bevy_diagnostic = { path = "bevy_diagnostic" }
bevy_input = { path = "bevy_input" }
bevy_render = { path = "bevy_render" }
bevy_serialization = { path = "bevy_serialization" }
bevy_transform = { path = "bevy_transform" }
bevy_ui = { path = "bevy_ui" }
bevy_window = { path = "bevy_window" }
@ -23,21 +24,15 @@ bevy_wgpu = { path = "bevy_wgpu", optional = true }
bevy_winit = { path = "bevy_winit", optional = true }
legion = { path = "bevy_legion", features = ["serialize"] }
# logging
# other
log = { version = "0.4", features = ["release_max_level_info"] }
# misc
glam = "0.8.6"
serde = { version = "1", features = ["derive"]}
erased-serde = "0.3"
type-uuid = "0.1"
# TODO: replace once_cell with std equivalent if/when this lands: https://github.com/rust-lang/rfcs/pull/2788
once_cell = "1.3.1"
uuid = { version = "0.8", features = ["v4"] }
[dev-dependencies]
rand = "0.7.2"
serde = { version = "1", features = ["derive"]}
serde_json = "1.0"
type-uuid = "0.1"
env_logger = "0.7"
[profile.dev]

View file

@ -0,0 +1,15 @@
[package]
name = "bevy_serialization"
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]
legion = { path = "../bevy_legion", features = ["serialize"] }
serde = { version = "1", features = ["derive"]}
erased-serde = "0.3"
type-uuid = "0.1"
uuid = { version = "0.8", features = ["v4"] }

View file

@ -1,6 +1,5 @@
#![feature(min_specialization)]
pub mod prelude;
pub mod serialization;
pub use bevy_app as app;
pub use bevy_asset as asset;
@ -8,13 +7,13 @@ pub use bevy_core as core;
pub use bevy_diagnostic as diagnostic;
pub use bevy_input as input;
pub use bevy_render as render;
pub use bevy_serialization as serialization;
pub use bevy_transform as transform;
pub use bevy_ui as ui;
pub use bevy_window as window;
pub use glam as math;
pub use legion;
pub use once_cell;
use app::AppBuilder;

View file

@ -2,7 +2,7 @@
duration='3'
run_example() {
timeout "$duration" cargo run --release --example $1
timeout "$duration" cargo run --example $1
}
for entry in examples/*