# 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.4.2"
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"

[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.7.2"
optional = true

[dependencies.image]
version = "0.24.6"
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 = "0.19.1"
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 = "0.19.1"

[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 = "0.2"

[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 = "0.19.1"
features = ["webgl"]
