-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Cargo.toml
69 lines (63 loc) · 1.76 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
[package]
name = "kubectl-view-allocations"
version = "0.20.1"
authors = ["David Bernard"]
edition = "2021"
description = "kubectl plugin to list allocations (cpu, memory, gpu,... X utilization, requested, limit, allocatable,...)"
readme = "README.md"
license = "CC0-1.0"
keywords = ["kubectl", "k8s"]
repository = "https://github.com/davidB/kubectl-view-allocations"
homepage = "https://github.com/davidB/kubectl-view-allocations"
exclude = ["/.github", ".gitignore"]
[dependencies]
chrono = "0.4"
clap = { version = "4.5", features = ["derive"] }
color-eyre = "0.6"
itertools = "0.13"
k8s-openapi = { version = "0.23", default-features = false }
kube = { version = "0.97", features = [
"client",
"oauth",
"gzip",
"rustls-tls",
"socks5",
], default-features = false }
prettytable-rs = { version = "0.10", default-features = false, optional = true }
serde = "1.0"
serde_json = "1.0"
thiserror = "2.0"
tokio = { version = "1", features = ["full"], optional = true }
tracing = "0.1"
tracing-bunyan-formatter = { version = "0.3", optional = true }
tracing-error = "0.2.0"
tracing-subscriber = { version = "0.3", optional = true, default-features = false, features = [
"env-filter",
] }
[features]
default = ["cli"]
cli = [
"dep:tokio",
"k8s-openapi/earliest",
"dep:tracing-subscriber",
"prettytable",
]
prettytable = ["dep:prettytable-rs"]
[[bin]]
name = "kubectl-view-allocations"
path = "src/main.rs"
doc = false
# HACK to define dependencies only for cli
# see https://github.com/rust-lang/cargo/issues/1982
required-features = ["cli"]
[dev-dependencies]
anyhow = "1"
pretty_assertions = "1"
[profile.release]
lto = true
panic = 'abort'
opt-level = 'z' # Optimize for size.
codegen-units = 1
strip = true
[profile.dev.package.backtrace]
opt-level = 3