[package]
edition = "2021"
rust-version = "1.90"
name = "densa-paragraph"
version = "0.2.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Paragraph layout for densa on parley: shaping, wrapping, bidi, alignment, hit-testing and selection"
homepage = "https://densa.dev"
readme = "README.md"
keywords = [
"text",
"layout",
"paragraph",
"bidi",
"selection",
]
categories = [
"gui",
"text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/densa-rs/densa"
[features]
complex-scripts = ["parley/complex-scripts"]
default = ["system-fonts"]
system-fonts = [
"parley/system",
"dep:fontique",
"fontique/fontconfig-dlopen",
]
[lib]
name = "densa_paragraph"
path = "src/lib.rs"
[[example]]
name = "editor"
path = "examples/editor.rs"
[[example]]
name = "paragraphs"
path = "examples/paragraphs.rs"
[[test]]
name = "editor"
path = "tests/editor.rs"
[[test]]
name = "fonts"
path = "tests/fonts.rs"
[[test]]
name = "gpu"
path = "tests/gpu.rs"
[[test]]
name = "paragraph"
path = "tests/paragraph.rs"
[[test]]
name = "selection"
path = "tests/selection.rs"
[[test]]
name = "zero_alloc"
path = "tests/zero_alloc.rs"
[dependencies.densa-core]
version = "0.2.5"
[dependencies.densa-text]
version = "0.2.5"
[dependencies.fontique]
version = "0.12.0"
optional = true
default-features = false
[dependencies.parley]
version = "0.12.0"
features = ["std"]
default-features = false
[dependencies.rustc-hash]
version = "2.1.3"
[dev-dependencies.densa-alloc]
version = "0.2.5"
[dev-dependencies.densa-draw]
version = "0.2.5"
[dev-dependencies.densa-grid]
version = "0.2.5"
[dev-dependencies.densa-render]
version = "0.2.5"
[dev-dependencies.pollster]
version = "1.0.1"
[dev-dependencies.wgpu]
version = "30.0.1"
[dev-dependencies.winit]
version = "0.30.13"
[lints.clippy]
undocumented_unsafe_blocks = "deny"
[lints.rust]
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]