Skip to main content

Crate rustafari_core

Crate rustafari_core 

Source
Expand description

Offline developer utilities, free of any UI dependency.

Everything here is pure and synchronous: no network, no filesystem, no globals. The GUI is one consumer; a CLI or a test harness could be another.

§Adding a tool

  1. Write src/tools/<name>.rs with a unit struct that implements Tool.
  2. Register it in the mod tools list and in all_tools.

There is no third step — the frontend renders whatever options the tool declares.

Structs§

Input
What the user typed.
Options
The current setting of every knob a tool declared.
ToolError
A human-readable failure. Tools surface these to the output pane, so the message is user-facing copy, not a debug dump.
ToolMeta
Identity and search metadata for a tool.

Enums§

Category
Format
What a tool’s text is, so a chain can refuse a link that cannot work.
InputMode
Whether the tool transforms text or produces it from nothing.
OptionPane
Which pane a group of options belongs beside.
OptionSpec
OptionValue

Traits§

Tool

Functions§

all_tools
Every tool the app ships, in menu order.
matches_query
Case-insensitive match against a tool’s name, description and keywords.

Type Aliases§

ToolResult