Merge branch 'master' into feat_linearmemory_trait

This commit is contained in:
ptitSeb
2022-08-18 17:46:15 +02:00
committed by GitHub
3 changed files with 61 additions and 121 deletions

View File

@@ -25,6 +25,7 @@ use serde::{Deserialize, Serialize};
PartialOrd,
Ord,
Debug,
Default,
)]
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))]
#[archive(as = "Self")]

View File

@@ -16,7 +16,7 @@ use std::path::Path;
use std::{fs, mem};
/// The compilation related data for a serialized modules
#[derive(Archive, RkyvDeserialize, RkyvSerialize)]
#[derive(Archive, Default, RkyvDeserialize, RkyvSerialize)]
#[allow(missing_docs)]
pub struct SerializableCompilation {
pub function_bodies: PrimaryMap<LocalFunctionIndex, FunctionBody>,