# 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 = "hai_core" version = "0.7.0" authors = ["Icemic "] description = "Core implementation of Hai game engine, and general 2D rendering library using WebGPU as well." license = "Apache-2.0" repository = "https://github.com/Icemic/hai" [dependencies.anyhow] version = "1.0" [dependencies.arc-swap] version = "1.6" [dependencies.bytemuck] version = "1.13" features = ["derive"] [dependencies.csscolorparser] version = "0.6" features = ["serde"] [dependencies.cursor-icon] version = "1" features = ["serde"] [dependencies.ffmpeg-rs] version = "5.2.1" optional = true [dependencies.futures] version = "0.3" [dependencies.glam] version = "0.27" features = ["bytemuck"] [dependencies.hai_js_runtime] version = "0.7" optional = true [dependencies.hai_macros] version = "0.7" default-features = false [dependencies.hai_pal] version = "0.7" [dependencies.hai_runtime] version = "0.7" optional = true [dependencies.huozi] version = "0.5" optional = true [dependencies.image] version = "0.25" features = [ "rayon", "avif", "bmp", "jpeg", "png", "webp", ] default-features = false [dependencies.log] version = "0.4" [dependencies.once_cell] version = "1.16" [dependencies.pollster] version = "0.2.5" optional = true [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde-wasm-bindgen] version = "0.4" optional = true [dependencies.tokio] version = "1" features = ["full"] optional = true [dependencies.wasm-bindgen] version = "0.2.83" optional = true default-features = false [dependencies.web-sys] version = "0.3.56" features = [ "Window", "Element", "Document", "HtmlElement", "HtmlCanvasElement", ] optional = true [dependencies.wgpu] version = "0.19.1" [dependencies.winit] version = "0.29" [features] default = [ "desktop", "js_runtime", "quickjs", ] desktop = [ "hai_pal/desktop", "dep:tokio", ] js_runtime = [] quickjs = [ "hai_runtime", "hai_macros/quickjs", ] v8 = [ "hai_js_runtime", "hai_macros/v8", ] video = ["dep:ffmpeg-rs"] web = [ "hai_pal/web", "wgpu/webgl", "dep:pollster", "dep:serde-wasm-bindgen", "dep:wasm-bindgen", "dep:web-sys", ]