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