[package]
edition = "2021"
rust-version = "1.85"
name = "rhythm-gpui"
version = "0.2.0"
authors = ["Peiwen Lu <hi@peiwen.lu>"]
build = false
exclude = [
"assets/recipes.png",
"tests/fonts/",
".github/",
".githooks/",
".gitignore",
"rustfmt.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Print-inspired vertical rhythm for gpui: baseline offsets computed from real font metrics"
documentation = "https://docs.rs/rhythm-gpui"
readme = "README.md"
keywords = [
"gpui",
"typography",
"vertical-rhythm",
"baseline",
"layout",
]
categories = [
"gui",
"graphics",
]
license = "MIT"
repository = "https://github.com/p233/rhythm-gpui"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["gpui"]
gpui = ["dep:gpui"]
test-support = [
"gpui",
"gpui/test-support",
]
[lib]
name = "rhythm_gpui"
path = "src/lib.rs"
[[example]]
name = "direct_paint"
path = "examples/direct_paint.rs"
required-features = ["gpui"]
[[example]]
name = "recipes"
path = "examples/recipes.rs"
test = true
required-features = ["gpui"]
[[test]]
name = "shaping"
path = "tests/shaping.rs"
harness = false
required-features = ["gpui"]
[[test]]
name = "zero_alloc"
path = "tests/zero_alloc.rs"
[[bench]]
name = "resolve"
path = "benches/resolve.rs"
harness = false
required-features = ["gpui"]
[dependencies.gpui]
version = "0.2"
optional = true
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.ureq]
version = "2"