[package]
edition = "2024"
rust-version = "1.88"
name = "retroglyph-widgets"
version = "0.3.0"
authors = ["Matan Lurey <matan@lurey.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Immediate-mode drawing helpers for retroglyph (panels, gauges, tables, sparklines)"
readme = "README.md"
keywords = [
"roguelike",
"terminal",
"grid",
"gamedev",
]
categories = [
"game-development",
"graphics",
]
license = "MIT"
repository = "https://github.com/crates-lurey-io/retroglyph"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
egc = ["retroglyph-core/egc"]
[lib]
name = "retroglyph_widgets"
path = "src/lib.rs"
[[bench]]
name = "hit_testing"
path = "benches/hit_testing.rs"
harness = false
[[bench]]
name = "layout_solve"
path = "benches/layout_solve.rs"
harness = false
[[bench]]
name = "list_sparkline_render"
path = "benches/list_sparkline_render.rs"
harness = false
[[bench]]
name = "table_render"
path = "benches/table_render.rs"
harness = false
[[bench]]
name = "text_truncate"
path = "benches/text_truncate.rs"
harness = false
[dependencies.retroglyph-core]
version = "0.3.0"
features = [
"std",
"gem",
]
default-features = false
[dependencies.unicode-width]
version = "0.2"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.fastrand]
version = "2"
[lints.clippy]
missing_errors_doc = "deny"
missing_panics_doc = "deny"
module_name_repetitions = "allow"
must_use_candidate = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_qualifications = "warn"