Skip to main content

Crate dfrs

Crate dfrs 

Source
Expand description

dfrs is a terminal-only filesystem usage viewer.

The executable follows a small pipeline: parse the CLI, discover mounts through the platform provider, collect statfs counters, apply the df-like visibility policy, and render the selected columns. The crate is a binary rather than a reusable library, so these RustDoc comments describe CLI behavior and implementation seams for maintainers and downstream packagers.

ModulesΒ§

args πŸ”’
Command-line parsing and display-policy types for the dfrs executable.
devices πŸ”’
Linux block-device ancestry used by device selectors and optional rows.
errors πŸ”’
Shared error aliases used by the binary’s discovery and reporting stages.
filter πŸ”’
Display policy that selects mount records before filesystem measurement.
mount πŸ”’
Filesystem mount records and platform-aware discovery.
report πŸ”’
Rows shared by filesystem reports and optional block-device output.
theme πŸ”’
Terminal rendering palettes, theme persistence, and glyph choices.
theme_picker πŸ”’
Interactive terminal palette selection.
util πŸ”’
Small, side-effect-free helpers shared by discovery and table rendering.

MacrosΒ§

try_print
try_println

StructsΒ§

MountRequest πŸ”’
Discover, measure, filter, path-select, and sort mount records.

FunctionsΒ§

append_filesystem_total πŸ”’
Append a total computed from filesystem rows only.
column_width πŸ”’
Calculate the widest cell needed for one table column.
display_mounts πŸ”’
Render a complete report, including headings, bars, colors, and rows.
get_mounts πŸ”’
main πŸ”’
Parse arguments, initialize logging, and report failures to stderr.
run πŸ”’
Execute the parsed CLI command and return any user-facing failure.