Skip to main content

rs_guard/
lib.rs

1#![deny(missing_docs)]
2//! rs-guard — AI-powered code review CLI for GitHub Pull Requests.
3//!
4//! This crate provides the core functionality for fetching PR diffs,
5//! sending them to an LLM for review, parsing structured verdicts,
6//! and submitting review states back to GitHub.
7//!
8//! # Modules
9//!
10//! - [`cache`] — LLM response caching with SHA-256 keyed entries
11//! - [`cli`] — Command-line argument parsing
12//! - [`config`] — Environment and configuration resolution
13//! - [`diff`] — PR diff fetching (GitHub API and local git)
14//! - [`error`] — Unified error types
15//! - [`github`] — GitHub review submission and dismissal
16//! - [`http`] — Shared HTTP utilities and URL validation
17//! - [`llm`] — LLM provider abstraction and implementations
18//! - [`output`] — Terminal output and artifact writing
19//! - [`pipeline`] — Orchestration of the full review workflow
20//! - [`redact`] — Secret redaction and content filtering
21//! - [`retry`] — Transient failure retry logic and circuit breaker
22//! - [`verdict`] — Verdict parsing and review state determination
23
24pub mod cache;
25pub mod cli;
26pub mod config;
27pub mod diff;
28pub mod error;
29pub mod github;
30pub mod http;
31pub mod llm;
32pub mod output;
33pub mod pipeline;
34pub mod redact;
35pub mod retry;
36pub mod verdict;