mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-30 17:11:33 +00:00
Finalize new cache api
This commit is contained in:
@ -14,7 +14,7 @@ use cranelift_codegen::{
|
||||
};
|
||||
use target_lexicon::Triple;
|
||||
|
||||
use wasmer_runtime_core::cache::{Cache, Error as CacheError};
|
||||
use wasmer_runtime_core::cache::{Error as CacheError, SerializedCache};
|
||||
use wasmer_runtime_core::{
|
||||
backend::{Compiler, Token},
|
||||
error::{CompileError, CompileResult},
|
||||
@ -53,7 +53,11 @@ impl Compiler for CraneliftCompiler {
|
||||
|
||||
/// Create a wasmer Module from an already-compiled cache.
|
||||
|
||||
unsafe fn from_cache(&self, cache: Cache, _: Token) -> Result<ModuleInner, CacheError> {
|
||||
unsafe fn from_cache(
|
||||
&self,
|
||||
cache: SerializedCache,
|
||||
_: Token,
|
||||
) -> Result<ModuleInner, CacheError> {
|
||||
module::Module::from_cache(cache)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user