Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
101 lines (85 loc) · 2.95 KB
/
Copy pathCargo.toml
File metadata and controls
101 lines (85 loc) · 2.95 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[package]
name = "malevich"
version = "1.25.0"
edition = "2024"
rust-version = "1.88"
description = "Terminal plotting: a small grammar of marks, honest axes, millions of points"
repository = "https://github.com/shergin/malevich"
homepage = "https://shergin.github.io/malevich/"
license = "MIT OR Apache-2.0"
keywords = ["plot", "chart", "terminal", "ascii", "visualization"]
categories = ["visualization", "command-line-interface"]
# README screenshots live in the repo (crates.io rewrites the relative links to
# GitHub), while the standalone fuzz runner is development-only; neither belongs
# in the published crate.
exclude = ["examples/*.png", "examples/*.jpg", "examples/cards/", "fuzz/", "js/", "python/", "rim/", "site/"]
# Flagship TUI demo apps live in their own workspace member so their heavier deps
# (ratatui, ureq) never touch the published crate or its CI. Build them explicitly:
# `cargo run -p fred`, `cargo run -p sysmon`. The `kaz` CLI (crate `malevich-cli`)
# is a member too — published, but versioned on its own and kept out of the
# default set so core CI and `cargo test` stay the library alone. `rim` is the
# unpublished request decoder the wasm (`js/native`) and Python (`python/native`)
# bindings share.
[workspace]
members = ["cli", "demos/fred", "demos/learn", "demos/sysmon", "js/native", "python/native", "rim", "site"]
# Keep the default build/test/lint set to malevich alone, so CI and `cargo test`
# never pull the demos' or the CLI's deps. Build a member explicitly with `-p`.
default-members = ["."]
resolver = "3"
[dependencies]
ratatui-core = { version = "0.1", optional = true }
ndarray = { version = "0.17", optional = true }
serde = { version = "1", optional = true, features = ["derive"] }
terminal_size = "0.4"
unicode-width = "0.2"
# A proc macro: `Mark` implements the per-mark contract by forwarding to whichever
# mark it holds, and gets its `From` impls, without a hand-written arm per variant.
whichever = "0.2"
# Already in the tree via terminal_size; the direct dependency only reads the
# terminal's cell size in device pixels for Graphics::detect.
[target.'cfg(unix)'.dependencies]
rustix = { version = "1", features = ["termios"], optional = true }
[features]
evcxr = []
ndarray = ["dep:ndarray"]
pixel = ["dep:rustix"]
ratatui = ["dep:ratatui-core"]
serde = ["dep:serde"]
[package.metadata.docs.rs]
all-features = true
[dev-dependencies]
criterion = "0.5"
serde_json = "1"
ratatui = "0.30"
crossterm = "0.29"
[[example]]
name = "tui"
required-features = ["ratatui"]
[[example]]
name = "zoom"
required-features = ["ratatui"]
[[example]]
name = "pixels"
required-features = ["pixel"]
[[example]]
name = "js_goldens"
required-features = ["serde"]
[[bench]]
name = "ticks"
harness = false
[[bench]]
name = "render"
harness = false
[[bench]]
name = "alloc"
harness = false
[[bench]]
name = "pixels"
harness = false
required-features = ["pixel"]
[[bench]]
name = "widget"
harness = false
required-features = ["ratatui"]
[profile.bench]
codegen-units = 1