[package]
name = "replace_probe"
version = "0.1.0"
author = "Chris Tusa <chris.tusa@leafscale.com>"
description = "Unit-test probe for zyginit live-replace state-file format"
license = "CDDL-1.0"

[build]
entry = "src/main.reef"
output = "replace_probe"
output_dir = "build"
source_dirs = ["src", "../../src"]

# This probe round-trips state.toml serialization without needing a
# running zyginit. Models utils/contract_probe.
#
# NOTE: reefc does not use source_dirs from reef.toml for module resolution.
# Module resolution falls back to src/ in CWD. Build from the zyginit root:
#
# Linux (from zyginit/):
#   clang -c src/helpers.c -o build/helpers.o
#   clang -c src/contract_linux_stubs.c -o build/contract_linux_stubs.o
#   reefc utils/replace_probe/src/main.reef \
#       -o utils/replace_probe/build/replace_probe \
#       --obj build/helpers.o --obj build/contract_linux_stubs.o
