[package] description = "A simple typography engine for CJK languages, especially designed for game rich-text." edition = "2021" exclude = [ "examples", ] license = "Apache-2.0" name = "huozi" repository = "https://github.com/Icemic/huozi-rs" version = "0.7.0" [features] ab_glyph = ["dep:ab_glyph"] charsets = [] default = ["fontdue", "wgpu", "charsets", "sdf", "layout", "parser"] fontdue = ["dep:fontdue"] layout = [] parser = ["dep:nom"] sdf = [] wgpu = ["dep:wgpu"] [dependencies] ab_glyph = {version = "0.2", optional = true} anyhow = "1" bytemuck = {version = "1.4", features = ["derive"]} csscolorparser = {version = "0.6", features = ["serde"]} fontdue = {version = "0.9.2", optional = true} image = {version = "0.25", default-features = false, features = ["png"]} log = "0.4" lru = "0.12.0" nom = {version = "7.1", optional = true} serde = {version = "1", features = ["derive"]} wgpu = {version = "22.0", optional = true} [dev-dependencies] cfg-if = "1" env_logger = "0.11" pollster = "0.3" wgpu = "22.0" winit = "0.29" [target.'cfg(target_arch = "wasm32")'.dev-dependencies] console_error_panic_hook = "0.1" console_log = "1.0" wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" web-sys = {version = "0.3", features = [ "Document", "Window", "Element", ]} wgpu = {version = "22.0", features = ["webgl"]} [target.'cfg(target_os = "android")'.dev-dependencies] android_logger = "0.14.1" winit = {version = "0.29", features = ["android-game-activity"]} [[example]] name = "render" path = "examples/render/main.rs" [[example]] crate-type = ["cdylib"] name = "render-lib" path = "examples/render/main.rs"