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