Skip to main content

load_embedded_config

Function load_embedded_config 

Source
pub fn load_embedded_config<T: DeserializeOwned>() -> Result<Option<T>, EmbeddedConfigError>
Expand description

Load embedded configuration from the current binary.

Reads the binary’s own file, checks for the magic trailer, extracts the JSON payload, and deserializes it into the requested type.

Returns None if the binary has no embedded config (no magic trailer).