-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
65 lines (56 loc) · 1.67 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
[package]
name = "kas-text"
version = "0.7.0"
authors = ["Diggory Hardy <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
description = "Text layout and font management"
readme = "README.md"
documentation = "https://docs.rs/kas-text/"
keywords = ["text", "bidi", "shaping"]
categories = ["text-processing"]
repository = "https://github.com/kas-gui/kas-text"
exclude = ["design"]
rust-version = "1.80.0"
[package.metadata.docs.rs]
# To build locally:
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --features num_glyphs,markdown,raster --no-deps --open
features = ["markdown", "raster", "num_glyphs"]
[features]
# Support num_glyphs method
num_glyphs = []
# Enable shaping with the default dependency.
shaping = ["rustybuzz"]
# Enable shaping via HarfBuzz.
harfbuzz = ["harfbuzz_rs"]
# Enable Markdown parsing
markdown = ["pulldown-cmark"]
# Serialization is optionally supported for some types:
serde = ["dep:serde", "bitflags/serde"]
# Glyph rastering is optionally supported; "raster" uses the default backend
# or a backend may be specified directly:
raster = ["ab_glyph"]
# ab_glyph
# fontdue
[dependencies]
cfg-if = "1.0.0"
easy-cast = "0.5.0"
bitflags = "2.4.2"
fontdb = "0.21.0"
ttf-parser = "0.24.1"
smallvec = "1.6.1"
xi-unicode = "0.3.0"
unicode-bidi = "0.3.4"
unicode-bidi-mirroring = "0.3.0"
thiserror = "1.0.20"
pulldown-cmark = { version = "0.12.0", optional = true }
log = "0.4"
serde = { version = "1.0.123", features = ["derive"], optional = true }
ab_glyph = { version = "0.2.10", optional = true }
fontdue = { version = "0.9.2", optional = true }
[dependencies.rustybuzz]
version = "0.18.0"
optional = true
[dependencies.harfbuzz_rs]
version = "2.0"
optional = true