Skip to content

Build

Prerequisites

  • Rust 2021 edition (1.70+)
  • For Windows cross-compilation: cargo install cargo-xwin (auto-downloads Windows SDK)

Linux / macOS (stub collector)

# Build
cargo build --release

# Lint
cargo clippy -- -W warnings

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

cargo build --release

Full Winevt collection via EvtQueryWEvtNextEvtRender on configured channels. Requires admin rights for Security and System channels.

Windows cross-compilation (from Linux)

cargo xwin build --release --target x86_64-pc-windows-msvc

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