Skip to main content

METADATA_HEADER

Constant METADATA_HEADER 

Source
pub const METADATA_HEADER: &[u8];
Expand description

Metadata header which includes METADATA_VERSION.

This header is followed by the CrateRoot and CrateRootUnhashed positions which represent the hashed and unhashed metadata contents respectively, the crate hash (SVH), and the rustc version string. See the offset constants below for the exact layout.