-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
109 lines (95 loc) · 3.39 KB
/
Cargo.toml
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
102
103
104
105
106
107
108
109
[package]
name = "prodash"
version = "29.0.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and possibly blocking tasks"
edition = "2021"
include = ["src/**/*", "README.md", "LICENSE.md", "CHANGELOG.md"]
license = "MIT"
repository = "https://github.com/Byron/prodash"
readme = "README.md"
[lib]
doctest = true
[[example]]
name = "dashboard"
path = "examples/dashboard.rs"
required-features = ["render-tui", "render-tui-crossterm", "render-line", "render-line-crossterm", "signal-hook", "render-line-autoconfigure", "progress-tree"]
[[example]]
name = "units"
path = "examples/units.rs"
required-features = [
"unit-bytes",
"unit-duration",
"unit-human",
"render-tui",
"render-tui-crossterm",
"render-line",
"render-line-crossterm",
"signal-hook"
]
[features]
default = ["progress-tree", "progress-tree-log"]
progress-tree = ["parking_lot"]
progress-tree-hp-hashmap = ["dashmap"]
progress-tree-log = ["log"]
progress-log = ["log"]
unit-bytes = ["bytesize"]
unit-human = ["human_format"]
unit-duration = ["humantime"]
render-tui-crossterm = ["crosstermion/tui-react-crossterm", "crosstermion/input-async-crossterm"]
render-tui = ["tui",
"unicode-segmentation",
"unicode-width",
"crosstermion/input-async",
"tui-react",
"futures-lite",
"futures-core",
"async-io",
"humantime"]
render-line = ["crosstermion/color", "humantime", "unicode-width"]
render-line-crossterm = ["crosstermion/crossterm"]
render-line-autoconfigure = ["is-terminal"]
local-time = ["jiff"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dashmap = { version = "6.0.1", optional = true, default-features = false }
parking_lot = { version = "0.12.1", optional = true, default-features = false }
# with-logging
log = { version = "0.4.8", optional = true }
# render-tui
tui = { package = "ratatui", version = "0.26.0", optional = true, default-features = false }
tui-react = { version = "0.23.0", optional = true }
futures-core = { version = "0.3.4", optional = true, default-features = false }
futures-lite = { version = "2.1.0", optional = true }
humantime = { version = "2.1.0", optional = true }
unicode-segmentation = { version = "1.6.0", optional = true }
unicode-width = { version = "0.1.7", optional = true }
crosstermion = { version = "0.14.0", optional = true, default-features = false }
async-io = { version = "2.2.1", optional = true }
# localtime support for render-tui
jiff = { version = "0.1.1", optional = true }
# line renderer
ctrlc = { version = "3.1.4", optional = true, default-features = false, features = ['termination'] }
signal-hook = { version = "0.3.9", optional = true, default-features = false }
is-terminal = { version = "0.4.9", optional = true }
# units
bytesize = { version = "1.0.1", optional = true }
human_format = { version = "1.0.3", optional = true }
[package.metadata.docs.rs]
all-features = true
[dev-dependencies]
rand = "0.8.1"
env_logger = { version = "0.11.0", default-features = false, features = ["humantime"] }
criterion = { version = "0.5.1", default-features = false }
futures-util = { version = "0.3.4", default-features = false }
argh = "0.1.3"
futures = "0.3.5"
is-terminal = "0.4.9"
blocking = "1.0.0"
once_cell = "1.4.0"
async-executor = "1.1.0"
async-io = "2.2.1"
[[bench]]
name = "usage"
path = "benches/usage.rs"
harness = false