pub type PostBuildFn = Box<dyn Fn(PathBuf) -> PostBuildFuture + Send + Sync + 'static>;Expand description
Optional post-build hook. Called with the snapshot directory (the gen-N/
directory, whose html/ subdirectory is what the DistPointer points at)
after every successful build, immediately after the pointer flip.
Failure is logged as a warning but does not roll back the pointer flip — the in-process server continues to serve the new snapshot; only the secondary sink (e.g. MinIO publish for the sim tier) is stale.
Wired by camp for the sim tier: the closure calls
cloud::publish_to_local_sim so the Caddy+MinIO stack serves the updated
artifact without requiring a full container restart. The dev tier leaves
this None — the DistPointer alone is sufficient.
Aliased Type§
pub struct PostBuildFn(/* private fields */);