parlov-output 0.1.0

Output formatters for parlov: SARIF, terminal table, and raw JSON.
Documentation

parlov-output

Output formatters for parlov. Renders OracleResult as terminal tables or JSON.

table

use parlov_output::render_table;

let output = render_table(&result);
println!("{output}");
+-----------+-----------+----------+-------------------------------+
| Oracle    | Verdict   | Severity | Evidence                      |
+==================================================================+
| Existence | Confirmed | High     | 403 (baseline) vs 404 (probe) |
+-----------+-----------+----------+-------------------------------+

ANSI-colored by verdict (red = Confirmed, yellow = Likely, green = NotPresent) and severity (red = High, yellow = Medium, cyan = Low). Multiple evidence lines get their own rows.

json

use parlov_output::render_json;

let json = render_json(&result)?;
{
  "class": "Existence",
  "verdict": "Confirmed",
  "evidence": [
    "403 (baseline) vs 404 (probe)"
  ],
  "severity": "High"
}

Pretty-printed via serde_json. Consumes the same OracleResult struct — no separate schema.

planned

  • SARIF v2.1.0 output via serde-sarif for CI/CD integration

license

MIT OR Apache-2.0