Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/diffguard-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ impl ConfigFile {
///
/// Rules are loaded from `rules/built_in.json` at compile time via `include_str!`.
/// This ensures the JSON is embedded in the binary and avoids any I/O at runtime.
///
/// # Panics
///
/// Panics if `built_in.json` cannot be parsed as valid JSON.
#[must_use]
pub fn built_in() -> Self {
serde_json::from_str(include_str!("rules/built_in.json"))
Expand Down
Loading