Skip to main content

Crate diffguard_core

Crate diffguard_core 

Source
Expand description

Core engine: orchestrates diff parsing + rule evaluation + reporting.

Structs§

CheckPlan
CheckRun
RuleMetadata
Metadata for a rule (help text, URL, and tags).
SarifReport
Root SARIF document structure.
SensorReportContext
Context for rendering a sensor report.
Settings
Consolidated input for the diffguard sensor engine.

Enums§

PathFilterError

Traits§

Substrate
Optional shared substrate from the Cockpit runtime.

Functions§

compute_fingerprint
Computes a stable fingerprint for a finding.
compute_fingerprint_raw
Computes a full SHA-256 fingerprint from an arbitrary input string.
render_csv_for_receipt
Renders a CheckReceipt as a CSV report (RFC 4180 compliant).
render_junit_for_receipt
Renders a CheckReceipt as a JUnit XML report.
render_markdown_for_receipt
render_sarif_for_receipt
Renders a CheckReceipt as a SARIF 2.1.0 report.
render_sarif_json
Renders a SARIF report as a JSON string.
render_sensor_json
Renders a CheckReceipt as a sensor.report.v1 JSON string.
render_sensor_report
Renders a CheckReceipt as a SensorReport.
render_tsv_for_receipt
Renders a CheckReceipt as a TSV report.
run_check
run_sensor
R2 Library Contract: run the diffguard sensor and return a SensorReport.