Skip to content

Commit

Permalink
crate-ify serialization. crate-ification is now complete!
Browse files Browse the repository at this point in the history
  • Loading branch information
cart committed Apr 6, 2020
1 parent 398c89d commit b1c583f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
13 changes: 4 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,23 @@ 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" }
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]
Expand Down
15 changes: 15 additions & 0 deletions bevy_serialization/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "bevy_serialization"
version = "0.1.0"
authors = ["Carter Anderson <[email protected]>"]
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"] }
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
#![feature(min_specialization)]
pub mod prelude;
pub mod serialization;

pub use bevy_app as app;
pub use bevy_asset as asset;
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;

Expand Down
2 changes: 1 addition & 1 deletion tools/example_showcase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down

0 comments on commit b1c583f

Please sign in to comment.