Skip to main content

serve

Function serve 

Source
pub async fn serve(port: u16, path: Option<PathBuf>) -> Result<()>
Expand description

Run the background server with live file watching

Improvements over osgrep:

  1. Native Rust HTTP server (axum) - faster than Node.js
  2. Built-in file watching with native notify crate
  3. Two-level change detection (mtime + hash)
  4. Tracks chunk IDs for efficient incremental updates