# 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 = "shura" version = "0.6.0" exclude = [ "arch_android_setup.sh", "docs", ] description = "A fast cross-plattform 2D component-based game framework" documentation = "https://docs.rs/shura" readme = "README.md" keywords = [ "graphics", "physics", "game", "android", "wasm", ] categories = [ "wasm", "rendering::engine", "graphics", "game-engines", "game-development", ] license = "Apache-2.0" repository = "https://github.com/AndriBaal/shura" [lib] crate-type = [ "lib", "cdylib", ] [dependencies.bincode] version = "1.3.3" optional = true [dependencies.bytemuck] version = "1.12.2" features = ["derive"] [dependencies.crossbeam] version = "0.8.2" [dependencies.delaunator] version = "1" [dependencies.downcast-rs] version = "1.2.0" [dependencies.egui] version = "0.22" features = [ "bytemuck", "default_fonts", "mint", ] optional = true default-features = false [dependencies.egui-wgpu] version = "0.22" features = ["winit"] optional = true [dependencies.env_logger] version = "0.10" [dependencies.futures-intrusive] version = "0.5.0" [dependencies.gilrs] version = "0.10" optional = true [dependencies.glyph_brush] version = "0.7" optional = true [dependencies.image] version = "0.24" features = [ "png", "jpeg", ] default-features = false [dependencies.instant] version = "0.1.12" [dependencies.log] version = "0.4" features = ["std"] optional = true [dependencies.mint] version = "0.5" [dependencies.nalgebra] version = "0.32" features = [ "convert-bytemuck", "mint", ] [dependencies.pollster] version = "0.3.0" [dependencies.rand] version = "0.8.5" [dependencies.rapier2d] version = "0.17" optional = true [dependencies.rustc-hash] version = "1.1" [dependencies.serde] version = "1" features = [ "derive", "rc", ] optional = true [dependencies.shura_proc] version = "0.4.0" [dev-dependencies.egui_demo_lib] version = "0.22" [features] animation = [] audio = ["dep:rodio"] default = [ "animation", "gamepad", "text", "audio", "physics", "serde", "gui", "log", ] gamepad = ["dep:gilrs"] gui = [ "dep:egui", "dep:egui-wgpu", "dep:egui-winit", ] log = ["dep:log"] physics = [ "dep:rapier2d", "shura_proc/physics", ] serde = [ "dep:serde", "dep:bincode", "wgpu/trace", "wgpu/serde", "wgpu/replay", "winit/serde", "gilrs?/serde-serialize", "egui?/serde", "nalgebra/serde-serialize", "rapier2d?/serde-serialize", ] text = ["dep:glyph_brush"] [target."cfg(not(target_arch = \"wasm32\"))".dependencies.egui-winit] version = "0.22" features = ["links"] optional = true [target."cfg(not(target_arch = \"wasm32\"))".dependencies.rodio] version = "0.17" features = ["symphonia-all"] optional = true default-features = false [target."cfg(not(target_arch = \"wasm32\"))".dependencies.wgpu] version = "0.16" [target."cfg(not(target_os = \"android\"))".dependencies.winit] version = "0.28" features = ["mint"] [target."cfg(target_arch = \"wasm32\")".dependencies.console_error_panic_hook] version = "0.1" [target."cfg(target_arch = \"wasm32\")".dependencies.egui-winit] version = "0.22" features = ["links"] optional = true default-features = false [target."cfg(target_arch = \"wasm32\")".dependencies.getrandom] version = "0.2" features = ["js"] [target."cfg(target_arch = \"wasm32\")".dependencies.rodio] version = "0.17" features = [ "wasm-bindgen", "symphonia-all", ] optional = true default-features = false [target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen] version = "0.2" [target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen-futures] version = "0.4" [target."cfg(target_arch = \"wasm32\")".dependencies.web-sys] version = "0.3" features = [ "Document", "Window", "Element", "console", "Clipboard", ] [target."cfg(target_arch = \"wasm32\")".dependencies.wgpu] version = "0.16" features = [ "webgl", "glsl", ] [target."cfg(target_os = \"android\")".dependencies.winit] version = "0.28" features = [ "mint", "android-native-activity", ]