cosmic-text/Cargo.toml
valadaptive 355b7febb1
Update and fix cargo-deny (#421)
* Update and fix cargo-deny

* We are not free of syn

* More cargo-deny fixes
2025-09-09 07:51:08 -06:00

89 lines
2.2 KiB
TOML

[package]
name = "cosmic-text"
description = "Pure Rust multi-line text handling"
version = "0.14.2"
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.80"
[dependencies]
bitflags = "2.4.1"
core_maths = { version = "0.1.1", optional = true }
cosmic_undo_2 = { version = "0.2.0", optional = true }
fontdb = { version = "0.23", default-features = false }
harfrust = { version = "0.2.0", default-features = false }
hashbrown = { version = "0.15", optional = true, default-features = false }
libm = { version = "0.2.8", optional = true }
log = "0.4.20"
modit = { version = "0.1.4", optional = true }
rangemap = "1.4.0"
rustc-hash = { version = "1.1.0", default-features = false }
self_cell = "1.0.1"
skrifa = { version = "0.36.0", default-features = false }
smol_str = { version = "0.2.2", default-features = false }
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"
[dependencies.swash]
version = "0.2.0"
default-features = false
features = ["render", "scale"]
optional = true
[dependencies.unicode-bidi]
version = "0.3.13"
default-features = false
features = ["hardcoded-data"]
[dependencies.peniko]
version = "0.4.0"
optional = true
[features]
default = ["std", "swash", "fontconfig"]
fontconfig = ["fontdb/fontconfig", "std"]
monospace_fallback = []
no_std = ["hashbrown", "dep:libm", "skrifa/libm", "core_maths"]
peniko = ["dep:peniko"]
shape-run-cache = []
std = [
"fontdb/memmap",
"fontdb/std",
"harfrust/std",
"skrifa/std",
"swash?/std",
"sys-locale",
"unicode-bidi/std",
]
vi = ["modit", "syntect", "cosmic_undo_2"]
wasm-web = ["sys-locale?/js"]
warn_on_missing_glyphs = []
[[bench]]
name = "layout"
harness = false
[[bench]]
name = "text_shaping_benchmarks"
harness = false
[workspace]
members = ["examples/*"]
[dev-dependencies]
tiny-skia = "0.11.2"
criterion = { version = "0.5.1", default-features = false, features = [
"cargo_bench_support",
] }
[profile.test]
opt-level = 1
[package.metadata.docs.rs]
features = ["vi"]