# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "blue_engine"
version = "0.3.99"
authors = ["Elham Aryanpur <elhamaryanpur5@gmail.com>"]
description = "General-Purpose, Easy-to-use, Fast, Secure, and Portable graphics engine"
documentation = "https://github.com/ElhamAryanpur/BlueEngine/wiki"
readme = "README.md"
keywords = [
    "gamedev",
    "graphics",
    "3D",
    "2D",
    "game",
]
categories = [
    "game-development",
    "gui",
    "graphics",
    "rendering",
]
license = "Apache-2.0"
repository = "https://github.com/ElhamAryanpur/BlueEngine"
resolver = "2"

[lib]
name = "blue_engine"
crate-type = [
    "lib",
    "cdylib",
]

[[example]]
name = "triangle"
path = "examples/shapes/triangle.rs"

[[example]]
name = "square"
path = "examples/shapes/square.rs"

[[example]]
name = "cube"
path = "examples/shapes/cube.rs"

[[example]]
name = "rotate_around"
path = "examples/camera/rotate_around.rs"

[[example]]
name = "fly_camera"
path = "examples/camera/fly_camera.rs"

[[example]]
name = "hello_gui"
path = "examples/gui/hello_gui.rs"

[[example]]
name = "styling_gui"
path = "examples/gui/styling.rs"

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

[dependencies.anyhow]
version = "1.0.57"

[dependencies.bytemuck]
version = "1.10.0"
features = ["derive"]

[dependencies.env_logger]
version = "0.9.0"

[dependencies.futures]
version = "0.3.21"

[dependencies.gltf]
version = "1.0.0"
optional = true

[dependencies.image]
version = "0.24.2"

[dependencies.imgui]
version = "0.8.2"
optional = true

[dependencies.imgui-wgpu]
version = "0.20.0"
optional = true

[dependencies.imgui-winit-support]
version = "0.8.2"
features = ["winit-26"]
optional = true

[dependencies.nalgebra-glm]
version = "0.17.0"

[dependencies.wgpu]
version = "0.13.0"

[dependencies.winit]
version = "0.26.1"

[dependencies.winit_input_helper]
version = "0.12.0"

[features]
NON_FILL_POLYGON_MODE = []
default = []
gui = [
    "dep:imgui-winit-support",
    "dep:imgui-wgpu",
    "dep:imgui",
]
model_loader = ["dep:gltf"]

[target."cfg(target_arch = \"wasm32\")".dependencies.wgpu]
version = "0.13.0"
features = ["webgl"]
