smart_patcher/lib.rs
1//! Patcher based on rules.
2//!
3//! Main features:
4//!
5//! - `check` command to test patch (featured by `tests`, enabled by default)
6//! - rules to select files and patch areas
7//! - file content encoders/decoders support
8//! - regex support
9//! - Python, Lua and Rhai scripts support (featured by `python`, `lua` and `rhai`)
10//!
11//! See [`PatchFile`] for further details.
12
13#![deny(warnings, clippy::todo, clippy::unimplemented)]
14
15pub(crate) mod interactive;
16pub(crate) mod patch;
17
18pub(crate) mod utils;
19
20pub use crate::patch::{AreaRule, DecodeBy, EncodeBy, FilePath, Patch, PatchFile, Replacer};
21pub use crate::utils::RegexIR;
22
23#[cfg(feature = "generate-examples")]
24pub use crate::patch::generate_examples;