Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
69 lines (62 loc) · 2.7 KB
/
Copy pathCargo.toml
File metadata and controls
69 lines (62 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[package]
name = "mossaic"
version = "0.9.0"
edition = "2021"
# Minimum supported Rust version. Verified by the `msrv` CI job, which reads this
# field; bumping it is a minor (not patch) change.
#
# 1.88 is dictated by ratatui 0.30. Everything else in the tree needs less: the
# graphics and colour code is plain std.
rust-version = "1.88"
description = "Draw pixel art in your GitHub contribution graph — a terminal chart, an editor, and a planner that says what today owes"
# `tui` earns its place over `contributions`, which `contribution-art` already
# covers: the chart, the designer and the glyph viewer are all terminal UIs, and
# that is how someone looking for one searches.
keywords = ["github", "contribution-art", "tui", "sixel", "kitty"]
categories = ["command-line-utilities", "visualization"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/vyncint/mossaic"
authors = ["Vyncint Ng <[email protected]>"]
readme = "README.md"
# The chart is what `cargo run` means; `mossaic-art` and `mossaic-glyphs` are asked for by name.
default-run = "mossaic"
# Kept out of the published archive: they serve the repository, not the crate.
exclude = [".github/*", ".claude/*", "action/*", "docs/*", "deny.toml", "rust-toolchain.toml"]
[package.metadata.docs.rs]
all-features = true
[dependencies]
ratatui = "0.30"
chrono = "0.4"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# zlib, so a kitty image is a few kilobytes on the wire instead of half a megabyte.
miniz_oxide = "0.9"
[target.'cfg(unix)'.dependencies]
# O_NONBLOCK, to read the terminal's capability replies without blocking on a
# terminal that never answers. One constant, no unsafe.
libc = "0.2"
# Restoring the terminal on SIGINT/SIGTERM/SIGHUP/SIGQUIT without an unsafe
# `sigaction`. Unix-only by nature — Windows has no POSIX signals — and
# already in the tree at this version, since crossterm pulls it through
# ratatui for its event stream.
signal-hook = { version = "0.3", default-features = false, features = ["iterator"] }
[dev-dependencies]
# The end-to-end suite: the real binary, in a real PTY, asserted on the rendered
# screen — and, with `decode`, on the pixels of the images that went out over
# kitty and sixel, which no rendered screen can show.
termlens = { version = "0.11", features = ["decode", "regex", "serde"] }
[profile.release]
lto = true
strip = true
[lints.rust]
rust_2018_idioms = { level = "warn", priority = -1 }
# Nothing here needs it: the terminal probe uses one libc constant, not a call.
unsafe_code = "forbid"
unreachable_pub = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
[lints.clippy]
all = { level = "warn", priority = -1 }
dbg_macro = "warn"
todo = "warn"
unimplemented = "warn"