Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
142 lines (125 loc) · 3.6 KB
/
Copy pathCargo.toml
File metadata and controls
142 lines (125 loc) · 3.6 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[workspace]
members = ["crates/dua-lib"]
resolver = "3"
[workspace.package]
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com"]
edition = "2024"
repository = "https://github.com/Byron/dua-cli"
license = "MIT"
[workspace.dependencies]
crossbeam = "0.8"
tempfile = "3.27.0"
[workspace.lints.clippy]
all = { level = "warn", priority = -2 }
pedantic = { level = "warn", priority = -1 }
enum_glob_use = "allow"
needless_pass_by_value = "allow"
redundant_closure_for_method_calls = "allow"
large_enum_variant = "allow"
missing_fields_in_debug = "allow"
missing_errors_doc = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
too_many_lines = "allow"
format_push_string = "allow"
fn_params_excessive_bools = "allow"
[package]
name = "dua-cli"
version = "3.0.1"
authors.workspace = true
edition.workspace = true
repository.workspace = true
readme = "README.md"
description = "A tool to conveniently learn about the disk usage of directories, fast!"
license.workspace = true
include = [
"src/**/*",
"Cargo.*",
"LICENSE",
"README.md",
"CHANGELOG.md",
"!**/tests/*",
]
[package.metadata.smart-release]
api-check = ["cargo", "api-check", "release"]
[package.metadata.api-check]
profiles = [
{ default-features = false, features = [] },
{ default-features = false, features = ["tui-crossplatform"] },
{ default-features = false, features = ["trash-move"] },
{ default-features = true, features = [] },
]
recursive = true
[features]
default = ["tui-crossplatform", "trash-move"]
tui-crossplatform = [
"crossterm",
"dep:signal-hook",
"tui",
"unicode-segmentation",
"unicode-width",
]
trash-move = ["trash"]
[dependencies]
dua-core = { path = "crates/dua-lib", version = "^6.0.0" }
clap = { version = "4.0.29", features = ["derive", "env"] }
clap_complete = "4.5.54"
byte-unit = { version = "5.2.5", features = ["u128"] }
itertools = "0.15.0"
num_cpus = "1.10.0"
anyhow = "1.0.31"
inferno = { version = "0.12.8", default-features = false }
trash = { version = "5.3.0", optional = true, default-features = false, features = [
"coinit_apartmentthreaded", "chrono"
] }
chrono = { version = "0.4.31", default-features = false, features = ["std"] }
# 'tui' related
unicode-segmentation = { version = "1.3.0", optional = true }
unicode-width = { version = "0.2.0", optional = true }
crossterm = { version = "0.29.0", optional = true }
tui = { package = "ratatui", version = "0.30.2", optional = true, default-features = false, features = [
"crossterm",
] }
open = "5.0"
wild = "2.0.4"
owo-colors = "4.0.0"
human_format = "1.0.3"
gix = { version = "0.87.1", default-features = false, features = [
"excludes",
"sha1",
"sha256",
] }
bstr = "1.8.0"
fern = "0.7.1"
jiff = "0.2.18"
log = "0.4.20"
log-panics = { version = "2", features = ["with-backtrace"] }
crossbeam.workspace = true
tempfile.workspace = true
toml = "1.1.4"
serde = { version = "1.0", features = ["derive"] }
dirs = "6"
shlex = "2.0.1"
[target.'cfg(not(any(windows, target_os = "macos")))'.dependencies]
filesize = "0.2.0"
[target.'cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")))'.dependencies]
trash = { version = "5.3.0", optional = true, default-features = false, features = ["freedesktop"] }
[target.'cfg(unix)'.dependencies]
signal-hook = { version = "0.3.18", optional = true }
[[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 = 3 }
[dev-dependencies]
insta = "1.48.0"
pretty_assertions = "1.0.0"
[lints]
workspace = true