# 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 = "rust_pixel" version = "0.5.9" authors = ["zipxing@hotmail.com"] build = false exclude = [ "/screen-shot", "/doc", "/test", "/assets", "/web-template", ] autobins = false autoexamples = false autotests = false autobenches = false description = "2d pixel art game engine & rapid prototype tools support terminal, sdl2, and web..." readme = "README.md" categories = [ "game-engines", "gui", "graphics", ] license = "Apache-2.0" repository = "https://github.com/zipxing/rust_pixel" [profile.release] opt-level = "s" [lib] name = "rust_pixel" path = "src/lib.rs" [[bin]] name = "cargo-pixel" path = "tools/cargo-pixel/src/main.rs" [dependencies.bincode] version = "1.3.1" [dependencies.bitflags] version = "2.3" features = ["serde"] [dependencies.clap] version = "3.2" features = ["derive"] [dependencies.crossterm] version = "0.22" optional = true [dependencies.deltae] version = "0.3.0" [dependencies.dirs-next] version = "2.0.0" [dependencies.flate2] version = "1.0.25" [dependencies.glow] version = "0.14.2" [dependencies.image] version = "0.24.6" optional = true [dependencies.itertools] version = "0.13.0" [dependencies.keyframe] version = "=1.1.1" [dependencies.keyframe_derive] version = "1.0.0" [dependencies.lab] version = "0.11.0" [dependencies.lazy_static] version = "1.4.0" [dependencies.log] version = "0.4.6" [dependencies.log4rs] version = "1.2.0" optional = true [dependencies.num-derive] version = "0.2" [dependencies.num-traits] version = "0.2" [dependencies.pixel_macro] version = "0.2.0" [dependencies.rand] version = "0.8.5" [dependencies.rand_xoshiro] version = "0.6.0" [dependencies.regex] version = "1.5.6" [dependencies.sdl2] version = "0.36.0" features = [ "image", "gfx", "unsafe_textures", ] optional = true [dependencies.serde] version = "1.0.114" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.serde_yaml] version = "0.9" [dependencies.toml] version = "0.5" [dependencies.unicode-segmentation] version = "1.2" [dependencies.unicode-width] version = "0.1" [dependencies.web-sys] version = "0.3.4" features = [ "CanvasRenderingContext2d", "CssStyleDeclaration", "Document", "Element", "EventTarget", "HtmlCanvasElement", "HtmlElement", "KeyboardEvent", "MouseEvent", "Node", "Window", "WebGlBuffer", "WebGl2RenderingContext", "WebGlProgram", "WebGlShader", "WebGlUniformLocation", "console", "Event", "MouseEventInit", ] [features] base = ["log4rs"] default = [ "log4rs", "crossterm", "rodio", "image", ] sdl = [ "log4rs", "rodio", "sdl2", "image", ] term = [ "log4rs", "crossterm", "rodio", "image", ] web = [] [target.'cfg(not(any(target_os = "android", target_os = "ios", target_arch = "wasm32")))'.dependencies.rodio] version = "0.18.1" optional = true [target.'cfg(target_arch = "wasm32")'.dependencies.console_error_panic_hook] version = "0.1.1" optional = true [target.'cfg(target_arch = "wasm32")'.dependencies.getrandom] version = "0.2" features = ["js"] [target.'cfg(target_arch = "wasm32")'.dependencies.js-sys] version = "0.3.69" [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen] version = "0.2.92" [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-logger] version = "0.2.0"