Merge remote-tracking branch 'origin/master' into feature/dynasm-backend

This commit is contained in:
losfair
2019-03-20 19:54:29 +08:00
5 changed files with 47 additions and 5 deletions

View File

@ -207,3 +207,7 @@ pub trait Cache {
fn load(&self, key: WasmHash) -> Result<Module, Self::LoadError>;
fn store(&mut self, key: WasmHash, module: Module) -> Result<(), Self::StoreError>;
}
/// A unique ID generated from the version of Wasmer for use with cache versioning
pub const WASMER_VERSION_HASH: &'static str =
include_str!(concat!(env!("OUT_DIR"), "/wasmer_version_hash.txt"));