[package]
name = "bevy"
version = "0.1.0"
authors = ["Carter Anderson <mcanders1@gmail.com>"]
edition = "2018"

[features]
default = ["bevy_wgpu", "bevy_winit"]
profiler = ["bevy_ecs/profiler", "bevy_diagnostic/profiler"]

[workspace]
members = [
    "crates/*",
    "crates/bevy_ecs/hecs",
    "examples/app/dynamic_plugin_loading/example_plugin"
]

[dependencies]
# bevy
bevy_audio = { path = "crates/bevy_audio" }
bevy_app = { path = "crates/bevy_app" }
bevy_asset = { path = "crates/bevy_asset" }
bevy_type_registry = { path = "crates/bevy_type_registry" }
bevy_core = { path = "crates/bevy_core" }
bevy_diagnostic = { path = "crates/bevy_diagnostic" }
bevy_ecs = { path = "crates/bevy_ecs" }
bevy_gltf = { path = "crates/bevy_gltf" }
bevy_input = { path = "crates/bevy_input" }
bevy_math = { path = "crates/bevy_math" }
bevy_pbr = { path = "crates/bevy_pbr" }
bevy_property = { path = "crates/bevy_property" }
bevy_render = { path = "crates/bevy_render" }
bevy_scene = { path = "crates/bevy_scene" }
bevy_sprite = { path = "crates/bevy_sprite" }
bevy_transform = { path = "crates/bevy_transform" }
bevy_text = { path = "crates/bevy_text" }
bevy_ui = { path = "crates/bevy_ui" }
bevy_window = { path = "crates/bevy_window" }
bevy_wgpu = { path = "crates/bevy_wgpu", optional = true }
bevy_winit = { path = "crates/bevy_winit", optional = true }

[dev-dependencies]
rand = "0.7.2"
serde = { version = "1", features = ["derive"]}

[[example]]
name = "hello_world"
path = "examples/hello_world.rs"

[[example]]
name = "sprite"
path = "examples/2d/sprite.rs"

[[example]]
name = "sprite_sheet"
path = "examples/2d/sprite_sheet.rs"

[[example]]
name = "texture_atlas"
path = "examples/2d/texture_atlas.rs"

[[example]]
name = "load_model"
path = "examples/3d/load_model.rs"

[[example]]
name = "parenting"
path = "examples/3d/parenting.rs"

[[example]]
name = "3d_scene"
path = "examples/3d/3d_scene.rs"

[[example]]
name = "spawner"
path = "examples/3d/spawner.rs"

[[example]]
name = "texture"
path = "examples/3d/texture.rs"

[[example]]
name = "z_sort_debug"
path = "examples/3d/z_sort_debug.rs"

[[example]]
name = "dynamic_plugin_loading"
path = "examples/app/dynamic_plugin_loading/main.rs"

[[example]]
name = "empty_defaults"
path = "examples/app/empty_defaults.rs"

[[example]]
name = "empty"
path = "examples/app/empty.rs"

[[example]]
name = "headless"
path = "examples/app/headless.rs"

[[example]]
name = "plugin"
path = "examples/app/plugin.rs"

[[example]]
name = "hot_asset_reloading"
path = "examples/asset/hot_asset_reloading.rs"

[[example]]
name = "asset_loading"
path = "examples/asset/asset_loading.rs"

[[example]]
name = "audio"
path = "examples/audio/audio.rs"

[[example]]
name = "custom_diagnostic"
path = "examples/diagnostics/custom_diagnostic.rs"

[[example]]
name = "print_diagnostics"
path = "examples/diagnostics/print_diagnostics.rs"

[[example]]
name = "event"
path = "examples/ecs/event.rs"

[[example]]
name = "startup_system"
path = "examples/ecs/startup_system.rs"

[[example]]
name = "ecs_guide"
path = "examples/ecs/ecs_guide.rs"

[[example]]
name = "breakout"
path = "examples/game/breakout.rs"

[[example]]
name = "mouse_input"
path = "examples/input/mouse_input.rs"

[[example]]
name = "mouse_input_events"
path = "examples/input/mouse_input_events.rs"

[[example]]
name = "keyboard_input"
path = "examples/input/keyboard_input.rs"

[[example]]
name = "keyboard_input_events"
path = "examples/input/keyboard_input_events.rs"

[[example]]
name = "load_scene"
path = "examples/scene/load_scene.rs"

[[example]]
name = "properties"
path = "examples/scene/properties.rs"

[[example]]
name = "shader_custom_material"
path = "examples/shader/shader_custom_material.rs"

[[example]]
name = "shader_defs"
path = "examples/shader/shader_defs.rs"

[[example]]
name = "button"
path = "examples/ui/button.rs"

[[example]]
name = "text"
path = "examples/ui/text.rs"

[[example]]
name = "font_atlas_debug"
path = "examples/ui/font_atlas_debug.rs"

[[example]]
name = "ui"
path = "examples/ui/ui.rs"

[[example]]
name = "clear_color"
path = "examples/window/clear_color.rs"

[[example]]
name = "multiple_windows"
path = "examples/window/multiple_windows.rs"

[[example]]
name = "window_settings"
path = "examples/window/window_settings.rs"