rustafari-core
The tool logic behind rustafari, a Swiss Army knife devtoy for developers.
This crate has no UI dependency. Everything in it is pure and synchronous: no network, no filesystem, no globals — so it works equally well behind the desktop app, a CLI, or your own tooling.
use ;
let tools = all_tools;
let json = &tools;
let opts = from_specs;
assert_eq!;
Tools declare their options via OptionSpec rather than drawing them, so a
frontend can render any tool generically and adding a tool needs no UI code.
run takes an Input, which a single document converts into; comparison
tools read both its left and right sides.
Included: JSON formatter; structural JSON, YAML and XML diffs sharing one comparison engine; Base64; URL encoder; hash generator (MD5/SHA-1/SHA-256/ SHA-512); UUID generator (v4/v7); a cron expression builder (UTC); and a list comparator.
License
MIT OR Apache-2.0