fontkit 0.1.0

A simple library for font loading and indexing
Documentation
[package]
name = "fontkit"
version = "0.1.0"
edition = "2021"
authors = ["Zimon Dai <daizhuoxian@gmail.com>"]
description = "A simple library for font loading and indexing"
repository = "https://github.com/alibaba/font-toolkit"
license = "MIT OR Apache-2.0"

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
ab_glyph_rasterizer = { version = "0.1.5", optional = true }
arc-swap = "1.5.0"
brotli-decompressor = { version = "2.3.2", optional = true }
byteorder = { version = "1.4.3", optional = true }
flate2 = { version = "1.0.22", optional = true }
fontdb = { version = "0.9.1", optional = true }
infer = "0.7.0"
log = "0.4.17"
ouroboros = "0.14.2"
pathfinder_content = { version = "0.5.0", optional = true }
pathfinder_geometry = { version = "0.5.1", optional = true }
pathfinder_simd = { version = "0.5.1", optional = true, features = [
    "pf-no-simd",
] }
serde = { version = "1.0.136", optional = true }
thiserror = "1.0.30"
ttf-parser = "0.15.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 }
usvg = { version = "0.22.0", optional = true }

[target.'cfg(not(all(target_os = "unknown", target_arch = "wasm32")))'.dependencies]
dirs = "3.0.0"
walkdir = "2.3.1"
console_error_panic_hook = "0.1.7"
wasm-logger = "0.2.0"

[target.'cfg(all(target_os = "unknown", target_arch = "wasm32"))'.dependencies]
wasm-bindgen = "0.2.79"
js-sys = "0.3.56"
console_error_panic_hook = "0.1.7"
wasm-logger = "0.2.0"

[features]
default = ["serde", "woff", "woff2", "fontdb", "metrics", "ras"]
woff2 = ["byteorder", "brotli-decompressor"]
woff = ["byteorder", "flate2"]
metrics = ["unicode-bidi", "unicode-normalization", "unicode-script"]
ras = [
    "ab_glyph_rasterizer",
    "pathfinder_content",
    "pathfinder_geometry",
    "pathfinder_simd",
    "usvg",
]

[build-dependencies]
cfg_aliases = "0.1.1"