pub fn create_rmeta_file(sess: &Session, metadata: &[u8]) -> Vec<u8>