[package]
name = "diffenator3-lib"
version = "1.1.4"
edition = "2021"
authors = ["The Diffenator3 Authors"]
homepage = "https://github.com/googlefonts/diffenator3"
repository = "https://github.com/googlefonts/diffenator3"
description = "A font comparison tool that will not stop until your fonts are exhaustively compared"
license = "Apache-2.0"

[target.'cfg(not(target_family = "wasm"))'.dependencies]
rayon = { version = "1.11.0" }
indicatif = { version = "0.18.0", features = ["rayon"] }
thread_local = "1.1"

[lib]
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"

[features]
html = ["dep:tera", "dep:homedir", "dep:walkdir"]
typescript = ["dep:typescript-type-def"]

[dependencies]
read-fonts = { workspace = true }
skrifa = { workspace = true }
indexmap = { workspace = true }
serde_json = { workspace = true }
serde = { workspace = true }

ttj = { path = "../ttj", version = "1" }
cfg-if = "1.0.0"
ab_glyph = "0.2.21"
ab_glyph_rasterizer = "0.1.8"
image = { version = "0.24.6", default-features = false }
harfrust = { workspace = true }
ucd = "0.1.1"
unicode_names2 = "0.6.0"
brotli = "6.0.0"
lazy_static = "1.4.0"
zeno = "0.3.1"
tiny-skia = "0.12"
log = "0.4"

static-lang-word-lists = { version = "0.3.0", features = ["rayon"] }

# HTML reporter shared code
tera = { version = "1", optional = true }
homedir = { version = "0.3.3", optional = true }
walkdir = { version = "2.5.0", optional = true }

# Code for emitting TypeScript types
typescript-type-def = { version = "0.5.13", optional = true, features = [
    "json_value",
] }
