//! Registration helpers for blueprints.
//!
//! These utilities make it easier to participate in the preregistration flow by
//! writing TLV payloads to the location expected by the runner.
use crateBlueprintEnvironment;
use PathBuf;
use fs;
/// Persist a blueprint-specific registration payload to the agreed upon path.
///
/// When [`BlueprintEnvironment::registration_mode`] is enabled, the runner will
/// poll the file produced by this helper and forward the bytes to the manager.
///
/// # Errors
///
/// Returns any IO error raised while creating parent directories or writing the file.
pub async