How hasan-bukhari-dev/wcre works
WCRE is an experimental Windows x64 process checkpoint/restart engine, currently focused on inspecting and capturing process state rather than restoring it. The intended user workflow is to select a controlled process, inspect its memory and thread state, and persist a platform-independent checkpoint; the repository also contains early address-space reconstruction planning and exact-allocation support. The graph preserves those capabilities, but source excerpts do not show CLI dispatch or a restore executor, so those links are omitted or marked unverified.
Main entry points: main.rs WCRE CLI · snapshot.rs PSS snapshot capture · memory_read.rs Live memory probe · encode.rs WCR encoding
Components 13
Command interface
- WCRE CLI
crates/wcre-cli/src/main.rs
Windows capture
- Process metadata
crates/wcre-win32/src/process.rs - Memory map
crates/wcre-win32/src/memory.rs - Live memory probe
crates/wcre-win32/src/memory_read.rs - PSS snapshot capture
crates/wcre-win32/src/snapshot.rs
Checkpoint data
- Checkpoint model
crates/wcre-image/src/lib.rs - WCR encoding
crates/wcre-image/src/encode.rs - WCR decoding
crates/wcre-image/src/decode.rs - WCR format
crates/wcre-image/src/format.rs - SHA-256 integrity
crates/wcre-image/src/integrity.rs
Reconstruction
- Address-space plan
crates/wcre-image/src/restore_plan.rs - Exact allocation
crates/wcre-win32/src/exact_allocation.rs
Other components
- Operator
Connections 16
- Operator → WCRE CLI: invokes
- WCRE CLI → PSS snapshot capture: dispatches to
- WCRE CLI → Live memory probe: dispatches to
- WCRE CLI → WCR encoding: dispatches to
- WCRE CLI → WCR decoding: dispatches to
- PSS snapshot capture → Process metadata: queries
crates/wcre-win32/src/snapshot.rs - PSS snapshot capture → Memory map: queries
crates/wcre-win32/src/snapshot.rs - PSS snapshot capture → Checkpoint model: builds
crates/wcre-win32/src/snapshot.rs - Live memory probe → Memory map: enumerates with
crates/wcre-win32/src/memory_read.rs - Memory map → Process metadata: opens process via
crates/wcre-win32/src/memory.rs - Live memory probe → Process metadata: opens process via
crates/wcre-win32/src/memory_read.rs - WCR encoding → WCR format: uses constants
crates/wcre-image/src/encode.rs - WCR decoding → WCR format: uses constants
crates/wcre-image/src/decode.rs - WCR encoding → SHA-256 integrity: hashes with
crates/wcre-image/src/encode.rs - WCR decoding → SHA-256 integrity: verifies with
crates/wcre-image/src/decode.rs - Address-space plan → Exact allocation: may guide