summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
blob: 026f1307eddd99e39c928bfcc5ec69653f31ee6d (plain)
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
[package]
name = "dua-cli"
version = "2.14.1"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
edition = "2018"
repository = "https://github.com/Byron/dua-cli"
readme = "README.md"
description = "A tool to conveniently learn about the disk usage of directories, fast!"
license = "MIT"
include = ["src/**/*", "Cargo.*", "LICENSE", "README.md", "CHANGELOG.md", "!**/tests/*"]

[features]
default = ["tui-crossplatform"]
tui-unix = ["crosstermion/tui-react-termion", "tui-shared"]
tui-crossplatform = ["crosstermion/tui-react-crossterm", "tui-shared"]

tui-shared = ["tui", "tui-react", "open", "unicode-segmentation"]

[dependencies]
clap = "3.0.0-beta.2"
jwalk = "0.6.0"
byte-unit = "4"
atty = "0.2.11"
petgraph = "0.6"
itertools = "0.10.0"
num_cpus = "1.10.0"
filesize = "0.2.0"
anyhow = "1.0.31"
colored = "2.0.0"
trash = "2.0.1"

# 'tui' related
unicode-segmentation = { version = "1.3.0", optional = true }
crosstermion = { optional = true, version = "0.7.0", default-features = false }
tui = { version = "0.15.0", optional = true, default-features = false }
tui-react = { version = "0.15.0", optional = true }
open = { version = "1.2.2", optional = true }
wild = "2.0.4"

[target.'cfg(all(target_os = "macos", target_arch = "aarch64"))'.dependencies]
sysinfo = { version = "0.19.0", default-features = false }

[[bin]]
name="dua"
path="src/main.rs"

[lib]
name="dua"

[profile.release]
panic = 'abort'
incremental = false
overflow-checks = false
lto = "fat"
codegen-units = 1
build-override = { opt-level = 0 }

[dev-dependencies]
pretty_assertions = "0.7.0"