Build¶
Prerequisites¶
- Rust 2021 edition (1.70+)
- For Windows cross-compilation:
cargo install cargo-xwin(auto-downloads Windows SDK)
Linux / macOS (stub collector)¶
The collector is a no-op stub on non-Windows (collect() returns an empty vector, not an error).
The pipeline still runs end-to-end (rule loading, matching on empty event set, skip-set logic).
Windows¶
Full Winevt collection via EvtQueryW → EvtNext → EvtRender on configured channels.
Requires admin rights for Security and System channels.
Windows cross-compilation (from Linux)¶
The resulting binary is at target/x86_64-pc-windows-msvc/release/sigmacatch.exe.
Binary size¶
Optimized release build: ~12MB (single headless binary).
Applied profile:
- strip = true
- lto = true
- codegen-units = 1
- tokio features: rt, rt-multi-thread, macros, sync, time, signal
Binary¶
| Binary | Path | Description |
|---|---|---|
sigmacatch |
src/main.rs |
Headless only. Outputs stats as JSON to stdout, writes regression data to disk |