# 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" rust-version = "1.72.1" name = "pixel-game-lib" version = "0.8.1" authors = ["Thomas Versteeg "] description = "Utility library for 2D pixel-based games" homepage = "https://github.com/tversteeg/pixel-game-lib" documentation = "https://docs.rs/pixel-game-lib" readme = "README.md" keywords = [ "gamedev", "utility", ] categories = [ "games", "game-engines", ] license = "AGPL-3.0" repository = "https://github.com/tversteeg/pixel-game-lib.git" [profile.dev.package.cpal] opt-level = 3 [profile.dev.package.kira] opt-level = 3 [profile.dev.package.symphonia] opt-level = 3 [profile.dev.package.symphonia-codec-vorbis] opt-level = 3 [profile.dev.package.symphonia-format-ogg] opt-level = 3 [[example]] name = "window" [[example]] name = "font" [[example]] name = "gui" required-features = [ "default-font", "default-gui", ] [[example]] name = "physics" required-features = [ "default-font", "physics", ] [[example]] name = "dialogue" required-features = [ "default-font", "default-gui", "dialogue", ] [[example]] name = "audio" required-features = [ "default-font", "audio", ] [dependencies.blit] version = "0.8.4" features = ["serde"] [dependencies.bvh-arena] version = "1.1.3" optional = true [dependencies.bytemuck] version = "1.14.3" [dependencies.clipline] version = "0.2.0" [dependencies.derive-where] version = "1.2.7" [dependencies.game-loop] version = "1.1.0" [dependencies.hecs] version = "0.10.4" features = ["macros"] optional = true [dependencies.image] version = "0.24.9" [dependencies.kira] version = "0.8.7" features = [ "cpal", "ogg", "serde", ] optional = true default-features = false [dependencies.miette] version = "7.1.0" [dependencies.parry2d-f64] version = "0.13.6" features = ["simd-stable"] optional = true [dependencies.pixels] version = "0.13.0" [dependencies.puffin] version = "0.19.0" [dependencies.serde] version = "1.0.197" features = ["derive"] [dependencies.taffy] version = "0.4.0" [dependencies.vek] version = "0.16.1" [dependencies.winit] version = "0.29.14" features = ["rwh_05"] [dependencies.winit_input_helper] version = "0.16.0" [dependencies.yarnspinner] version = "0.2.0" optional = true [features] audio = ["dep:kira"] default = [ "hot-reloading-assets", "physics", ] default-font = [] default-gui = [] dialogue = ["dep:yarnspinner"] embedded-assets = ["assets_manager/embedded"] hot-reloading-assets = ["assets_manager/hot-reloading"] physics = [ "dep:hecs", "dep:bvh-arena", "dep:parry2d-f64", ] [target."cfg(not(target_arch = \"wasm32\"))".dependencies.assets_manager] version = "0.11.3" features = [ "toml", "png", "ahash", "macros", ] default-features = false [target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio] version = "1.36.0" features = [ "macros", "sync", "rt-multi-thread", ] optional = true [target."cfg(target_arch = \"wasm32\")".dependencies.assets_manager] version = "0.11.3" features = [ "toml", "png", "embedded", "macros", ] default-features = false [target."cfg(target_arch = \"wasm32\")".dependencies.console_error_panic_hook] version = "0.1.7" [target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen] version = "0.2.92" [target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen-futures] version = "0.4.42" [target."cfg(target_arch = \"wasm32\")".dependencies.web-sys] version = "0.3.69" features = [ "CanvasRenderingContext2d", "Document", "Element", "HtmlCanvasElement", "ImageData", "Window", ]