From c4f3049a74bab0116e3db60f7deaad8ef8aa875b Mon Sep 17 00:00:00 2001 From: Jheison Martinez Bolivar Date: Wed, 1 Apr 2026 10:05:18 -0500 Subject: [PATCH] feat: add texforge build --watch with configurable debounce delay --- Cargo.toml | 5 ++- README.md | 14 ++++++++ src/cli/mod.rs | 17 +++++++-- src/commands/build.rs | 83 +++++++++++++++++++++++++++++++++++++++---- 4 files changed, 109 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bef5592..9ed65f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "texforge" -version = "0.3.0" +version = "0.4.0" edition = "2021" rust-version = "1.75" description = "Self-contained LaTeX to PDF compiler CLI" @@ -38,6 +38,9 @@ flate2 = "1.1" tar = "0.4" zip = { version = "2", default-features = false, features = ["deflate"] } +# File watching for --watch mode +notify = { version = "7", features = ["macos_fsevent"] } + # Mermaid diagram rendering mermaid-rs-renderer = { version = "0.2", default-features = false } resvg = "0.46" diff --git a/README.md b/README.md index 34c6d59..fa6dfc6 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,7 @@ sequenceDiagram | `texforge new -t