-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
68 lines (61 loc) · 1.74 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[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.8.0"
[features]
ab_glyph = ["dep:ab_glyph"]
charsets = []
default = ["fontdue", "wgpu", "charsets", "sdf", "layout", "parser"]
font_kit = ["dep:font-kit", "dep:pathfinder_geometry"]
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"]}
font-kit = {version = "0.14", optional = true}
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}
pathfinder_geometry = {version = "0.5.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"