Skip to main content

legacy_cache_format_version

Function legacy_cache_format_version 

Source
pub fn legacy_cache_format_version(payload: &[u8]) -> Option<u32>
Expand description

Returns the historical enum version encoded at the beginning of an unheadered bincode cache. The configured bincode format uses a single-byte variable integer for the historical versions. Versions 3 and above are intentionally not compatible with v0.4.3 and must be rebuilt by safe-migrate sync.