-
Notifications
You must be signed in to change notification settings - Fork 11
/
Cargo.toml
91 lines (82 loc) · 2.61 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[package]
name = "fontkit"
version = "0.6.0-beta.9"
edition = "2021"
authors = ["Zimon Dai <[email protected]>"]
description = "A simple library for font loading and indexing"
repository = "https://github.com/alibaba/font-toolkit"
license = "MIT OR Apache-2.0"
readme = "Readme.md"
[lib]
crate-type = ["cdylib", "rlib"]
[package.metadata.component]
package = "alibaba:fontkit"
[package.metadata.component.bindings]
derives = ["Clone", "Hash", "PartialEq", "PartialOrd", "Eq", "Default"]
with = { "alibaba:fontkit/commons" = "crate::font" }
[dependencies]
ab_glyph_rasterizer = { version = "0.1.5", optional = true }
arc-swap = "1.6.0"
brotli-decompressor = { version = "2.3.2", optional = true }
byteorder = { version = "1.4.3", optional = true }
dashmap = "5.3.4"
flate2 = { version = "1.0.22", optional = true }
log = "0.4.17"
ordered-float = "3.9.1"
ouroboros = "0.18.4"
pathfinder_content = { version = "0.5.0", optional = true, default-features = false }
pathfinder_geometry = { version = "0.5.1", optional = true }
pathfinder_simd = { version = "0.5.2", optional = true, features = [
"pf-no-simd",
] }
textwrap = { version = "0.16.1", optional = true, default-features = false, features = [
"smawk",
"unicode-linebreak",
] }
thiserror = "1.0.30"
tiny-skia-path = "0.11.1"
ttf-parser = "0.25.0"
unicode-bidi = { version = "0.3.7", optional = true }
unicode-normalization = { version = "0.1.19", optional = true }
unicode-script = { version = "0.5.4", optional = true }
woff2-patched = { version = "0.3.0", optional = true }
png = { version = "0.17.13", optional = true }
inflections = "1.1.1"
indexmap = "2.6.0"
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.133"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wit-bindgen-rt = { version = "0.24.0", optional = true }
resize = { version = "0.8.6", default-features = false, features = ["std"] }
rgb = "0.8.48"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
fast_image_resize = { version = "3.0.4", optional = true, features = [
"only_u8x4",
] }
[features]
default = ["parse", "metrics", "ras", "wit"]
parse = ["byteorder", "flate2", "woff2-patched"]
metrics = [
"unicode-bidi",
"unicode-normalization",
"unicode-script",
"textwrap",
]
ras = [
"ab_glyph_rasterizer",
"pathfinder_content",
"pathfinder_geometry",
"pathfinder_simd",
"png",
"fast_image_resize",
]
optimize_stroke_broken = []
wit = ["wit-bindgen-rt"]
[profile.release]
codegen-units = 1
opt-level = "s"
debug = false
strip = true
lto = true
[patch.crates-io]
pathfinder_simd = { git = "https://github.com/pbdeuchler/pathfinder", branch = "patch-1" }