Skip to main content

max / alloy_tui

2.7 KB · 65 lines History Blame Raw
1 [package]
2 name = "alloy_tui"
3 version = "9.0.0"
4 description = "Alloy design system: makeover intents rendered as ratatui Color/Style, plus themed widgets for the alloy console and siblings."
5 edition = "2024"
6 # 1.88 is ratatui 0.30.2's floor, and 0.30.2 is where `Block::shadow` lands.
7 rust-version = "1.88"
8 license = "MIT"
9 repository = "https://makenot.work/git/max/alloy_tui"
10 authors = ["Max Johnson <me@maxj.phd>"]
11
12 [dependencies]
13 ratatui = "0.30"
14 # 2.2.0 is the release carrying the bevel intents and the 256-color palette,
15 # both of which this crate resolves at load. A [patch.crates-io] stanza stood
16 # here while they were unpublished; it is gone, and so is the last reason this
17 # crate could not be published from a clean checkout.
18 makeover = "3.0"
19 makeover-geometry = "0.7"
20 # The family's terminal renderer, which owns the bevel painting, the fill, and
21 # the reading of what the terminal can show. 0.4.0 and not 0.3.0 because the
22 # half-block glyphs are what makes delegating here an improvement rather than a
23 # downgrade: 0.3.0 draws box-drawing, which is a line and not a lit edge. 0.4.1
24 # because this crate quantises a whole theme off `Fidelity::detect`, and before
25 # that release an unrecognised TERM answered Ansi16, which cost a heavier frame
26 # when the renderer was the only consumer and costs a flattened theme now.
27 #
28 # Pinned exactly, and moved in lockstep with the renderer: a 0.x minor is a
29 # semver boundary, so a stale pin here holds the whole console on an old
30 # renderer rather than resolving forward. `Fidelity` and `Theme` are re-exported
31 # from this crate, so the renderer's public types are part of ours.
32 makeover-tui = { version = "0.29.0", features = ["theme"] }
33
34 [lints.rust]
35 unused = "warn"
36 unreachable_pub = "warn"
37
38 [lints.clippy]
39 pedantic = { level = "warn", priority = -1 }
40 # Allow-list tuned from a measured breakdown across server/multithreaded/pter
41 # (2026-07-22). These are the high-churn / low-signal pedantic lints; everything
42 # else in `pedantic` stays a warning. Keep this block identical across repos.
43 module_name_repetitions = "allow"
44 # Doc lints. No docs-completeness push is underway.
45 missing_errors_doc = "allow"
46 missing_panics_doc = "allow"
47 doc_markdown = "allow"
48 # Numeric casts. Endemic and mostly intentional in size and byte math.
49 cast_possible_truncation = "allow"
50 cast_sign_loss = "allow"
51 cast_precision_loss = "allow"
52 cast_possible_wrap = "allow"
53 cast_lossless = "allow"
54 # Subjective structure and style nags. High churn, low signal.
55 must_use_candidate = "allow"
56 too_many_lines = "allow"
57 struct_excessive_bools = "allow"
58 similar_names = "allow"
59 items_after_statements = "allow"
60 single_match_else = "allow"
61 # Frequent false-positives in TUI and router-heavy code.
62 match_same_arms = "allow"
63 unnecessary_wraps = "allow"
64 type_complexity = "allow"
65