Skip to main content

Crate bee_tui

Crate bee_tui 

Source
Expand description

bee-tui — internal library exposing the modules the binary composes. Living as both a [lib] and a [[bin]] lets integration tests in tests/ exercise the cockpit’s components against fixtures, without launching the full TUI loop.

Public exports are stable for tests only — there is no ABI commitment for downstream library users. Use the bee-tui command-line binary, not this lib.

Modules§

action
api
Thin wrapper around bee::Client that binds it to a configured NodeConfig. The cockpit talks to Bee through one ApiClient per active profile.
app
bee_log
Parser for Bee’s logfmt-with-quoted-keys log format. Each Bee log line looks like:
bee_log_tailer
Background task that follows the supervised Bee process’s log file, parses each new line, and ships entries down an mpsc to the cockpit’s crate::components::log_pane::LogPane.
bee_log_writer
Size-bounded rotating writer for the supervised Bee process’s captured stdout + stderr.
bee_supervisor
Spawn + manage a child Bee node from inside bee-tui.
cli
components
config
durability
:durability-check <ref> — the operator-facing answer to the single most-feared question: “is my data still alive?”
errors
log_capture
In-memory ring buffer of HTTP-traffic log events, fed by a custom tracing-subscriber layer that filters to the bee::http target.
logging
manifest_walker
Async walker for Mantaray manifests.
metrics
Prometheus exposition-format renderer for the gauges bee-tui already computes. Pure: takes references to the live snapshots and produces the /metrics body as a String.
metrics_server
Tiny single-route HTTP/1.1 server for /metrics.
pprof_bundle
Async pprof + trace bundling for :diagnose --pprof[=N].
stamp_preview
Pure math + formatting for the four :*-preview command-bar verbs (:topup-preview, :dilute-preview, :extend-preview, :buy-preview).
state
Persisted runtime state — the operator-tweaked, app-written file that’s distinct from config.toml (operator-edited, app-read-only).
theme
Centralized colour palette. Set once at startup from crate::config::UiConfig::theme; read by screens via active.
tui
utility_verbs
Pure-local utility verbs.
watch
k9s-style watch / informer layer.

Macros§

trace_dbg
Similar to the std::dbg! macro, but generates tracing events rather than printing to stdout.