pub const FORMAT_VERSION: u32 = 1;Expand description
The format version this crate writes and the only one it reads.
The version changes whenever the encoding or any instruction’s meaning
changes; decode refuses every other version rather than guess.
§Examples
use bytecode_lang::{encode, ModuleBuilder, FORMAT_VERSION};
let bytes = encode(&ModuleBuilder::new().finish().unwrap());
assert_eq!(bytes[4..8], FORMAT_VERSION.to_le_bytes());