-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
202 lines (174 loc) · 5.69 KB
/
Copy pathCargo.toml
File metadata and controls
202 lines (174 loc) · 5.69 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
[package]
name = "flux9s"
version = "0.12.0"
edition = "2024"
authors = ["Dan Guns <danbguns@gmail.com>"]
description = "A K9s-inspired terminal UI for monitoring Flux GitOps resources"
license = "Apache-2.0"
repository = "https://github.com/dgunzy/flux9s"
homepage = "https://github.com/dgunzy/flux9s"
documentation = "https://docs.rs/flux9s"
keywords = ["kubernetes", "flux", "gitops", "tui", "k9s"]
categories = ["command-line-utilities", "development-tools"]
# Exclude large files and directories from crate package
exclude = [
# Documentation site (52MB+ with videos and vendor files)
"docs/",
# Test resources
"test-resources/",
# CI/CD workflows
".github/",
# Large media files
"*.mp4",
"*.mov",
"*.avi",
"*.png",
"*.jpg",
"*.jpeg",
"*.gif",
# Build artifacts
"target/",
# IDE files
".idea/",
".vscode/",
"*.swp",
"*.swo",
# OS files
".DS_Store",
"Thumbs.db",
# Scripts (not needed for crate)
"scripts/",
# Example configs (not needed for crate)
"examples/",
# Testing kubeconfig
"testing-kubeconfig",
# Review documents
"PLUGIN_REVIEW.md",
"PR_REVIEW.md",
# Developer documentation (not needed for crate users)
"AGENTS.md",
"CLAUDE.md",
# Theme files (examples, not needed)
"navy.yaml",
"rose-pine.yaml",
# Build artifacts
"*.rlib",
"manifest.json",
"Cargo.toml.orig",
# Backup files
"*.orig",
]
[features]
default = ["tui"]
# Terminal UI (ratatui + crossterm) — disable for headless library usage
tui = ["dep:ratatui", "dep:crossterm"]
# Vendor OpenSSL for static linking (needed for musl targets)
vendored-openssl = ["openssl/vendored"]
[dependencies]
# Kubernetes client with HTTP proxy support - use openssl-tls for better cert support
# NOTE: "http-proxy" and "socks5" look unused to dependency-pruning tools (no
# code references them) but they gate kubeconfig `proxy-url:` support inside
# kube itself — removing them breaks proxied clusters at runtime (#202).
# Guarded by proxy tests in src/kube/mod.rs.
kube = { version = "4.0.0", default-features = false, features = [
"client",
"runtime",
"derive",
"http-proxy",
"socks5",
"openssl-tls",
] }
# k8s-openapi version feature - must match kube-rs version
k8s-openapi = { version = "0.28.0", default-features = false, features = [
"v1_33",
] }
# Async runtime — only the features flux9s actually uses (no fs/process/net/
# signal/io). kube pulls in any additional tokio features it needs itself.
tokio = { version = "1.48", features = [
"macros",
"rt-multi-thread",
"sync",
"time",
] }
futures = "0.3"
# TUI framework (optional — enable with "tui" feature)
# default-features disabled to keep the dependency tree minimal (no calendar
# widget, macros, or alternate backends). Enable only what flux9s actually uses.
ratatui = { version = "0.30", optional = true, default-features = false, features = [
"crossterm_0_29",
"layout-cache",
] }
crossterm = { version = "0.29", optional = true }
# Error handling
anyhow = "1.0"
thiserror = "1.0"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
async-trait = "0.1"
# Helm release decoding
base64 = "0.22"
flate2 = "1.0"
# Utilities
chrono = { version = "0.4", features = ["serde"] }
url = "2.5"
tempfile = "3.10"
directories = "5.0"
csscolorparser = "0.8"
# CLI argument parsing
clap = { version = "4.5", features = ["derive"] }
# OpenSSL - explicit dependency for vendored feature support
openssl = { version = "0.10", optional = true }
# Logging (tracing is already a transitive dependency via kube-rs, but we need it explicitly for macros)
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "ansi"] }
# Version update notifications
update-informer = "1.1"
[dev-dependencies]
# Testing
mockall = "0.13"
insta = "1.46.0"
[package.metadata.binstall]
# cargo-binstall configuration for pre-built binary installation
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.{ archive-format }"
bin-dir = "{ bin }{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-x86_64-gnu.{ archive-format }"
[package.metadata.binstall.overrides.x86_64-unknown-linux-musl]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-linux-x86_64-musl.{ archive-format }"
[package.metadata.binstall.overrides.x86_64-apple-darwin]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-macos-x86_64.{ archive-format }"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-windows-x86_64.{ archive-format }"
pkg-fmt = "zip"
[[test]]
name = "crd_compatibility"
path = "tests/crd_compatibility.rs"
[[test]]
name = "resource_registry"
path = "tests/resource_registry.rs"
[[test]]
name = "field_extraction"
path = "tests/field_extraction.rs"
[[test]]
name = "trace_tests"
path = "tests/trace_tests.rs"
# Live-cluster regression tests — every test is #[ignore]d; run via
# `just test-live` after `./scripts/dev-clusters.sh ci`, or by the
# live-tests.yml workflow (weekly / manual dispatch).
[[test]]
name = "live_tests"
path = "tests/live_tests.rs"
[[test]]
name = "snapshot_tests"
path = "tests/snapshot_tests.rs"
required-features = ["tui"]
[[test]]
name = "navigation_tests"
path = "tests/navigation_tests.rs"
required-features = ["tui"]
# The OpenSSL `tls-server-name` fix (flux9s #170 / kube-rs #991, PR kube-rs/kube#1993)
# shipped in kube 4.0.0, so the interim [patch.crates-io] fork pin has been removed (flux9s #171).
# Reproduction harness: scripts/repro-tls-server-name.sh.