cargo pantry is a cargo subcommand that launches and scaffolds TUI Pantry projects.
Commands
cargo pantry
Launch the Pantry. Requires a pantry.toml in the current directory (or a -p flag targeting a workspace package that has one).
cargo run --example widget_preview --features tui-pantry with inherited stdio so the TUI owns the terminal. Falls back to --features pantry if the first feature name is not found.
cargo pantry init
Scaffold a new pantry in the current crate. Requires a Cargo.toml in the working directory.
tui-pantryas an optional dependency (viacargo add tui-pantry --optional)pantry.tomlwith default configexamples/widget_preview/main.rs: entry point usingtui_pantry::run!()examples/widget_preview/widgets.rs: sample Widget tab ingredientsexamples/widget_preview/panes.rs: sample Panes tab ingredientsexamples/widget_preview/views.rs: sample Views tab ingredients
Flags
-p <package> / --package <package>
Target a specific workspace package:
cargo run.