cosmic-text/Cargo.toml
Dov Reshef 8db03fe3cf Add image render tests
Add tests that will match rendered words/paragraphs against reference
images.

Use env var `GENERATE_IMAGES` to write the initial reference images to
the repository.
2023-09-27 11:57:18 +03:00

62 lines
1.6 KiB
TOML

[package]
name = "cosmic-text"
description = "Pure Rust multi-line text handling"
version = "0.9.0"
authors = ["Jeremy Soller <jeremy@system76.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/cosmic-text/latest/cosmic_text/"
repository = "https://github.com/pop-os/cosmic-text"
rust-version = "1.65"
[dependencies]
fontdb = { version = "0.14.1", default-features = false }
libm = "0.2.7"
log = "0.4.20"
rustybuzz = { version = "0.10.0", default-features = false, features = ["libm"] }
swash = { version = "0.1.8", optional = true }
syntect = { version = "5.1.0", optional = true }
sys-locale = { version = "0.3.1", optional = true }
unicode-linebreak = "0.1.5"
unicode-script = "0.5.5"
unicode-segmentation = "1.10.1"
rangemap = "1.3.0"
hashbrown = { version = "0.14.0", optional = true, default-features = false }
rustc-hash = { version = "1.1.0", default-features = false }
self_cell = "1.0.1"
[dependencies.unicode-bidi]
version = "0.3.13"
default-features = false
features = ["hardcoded-data"]
[features]
default = ["std", "swash", "fontconfig"]
no_std = ["rustybuzz/libm", "hashbrown"]
std = [
"fontdb/memmap",
"fontdb/std",
"rustybuzz/std",
"sys-locale",
"unicode-bidi/std",
]
vi = ["syntect"]
wasm-web = ["sys-locale?/js"]
warn_on_missing_glyphs = []
fontconfig = ["fontdb/fontconfig", "std"]
[[bench]]
name = "layout"
harness = false
[workspace]
members = ["examples/*"]
[dev-dependencies]
tiny-skia = "0.11"
criterion = { version = "0.5.1", default-features = false, features = [
"cargo_bench_support",
] }
[profile.test]
opt-level = 1