update the binary too

This commit is contained in:
Mark
2019-03-18 17:40:36 -07:00
parent a152b85729
commit 2580871f63
2 changed files with 4 additions and 3 deletions

View File

@ -6,8 +6,8 @@ use std::{
path::PathBuf,
};
use wasmer_runtime_core::cache::{Error as CacheError, cache_versioned_sub_directory};
pub use wasmer_runtime_core::cache::{Artifact, Cache, WasmHash};
use wasmer_runtime_core::cache::{Error as CacheError};
pub use wasmer_runtime_core::cache::{Artifact, Cache, WasmHash, cache_versioned_sub_directory};
/// Representation of a directory that contains compiled wasm artifacts.
///

View File

@ -12,7 +12,7 @@ use structopt::StructOpt;
use wasmer::webassembly::InstanceABI;
use wasmer::*;
use wasmer_emscripten;
use wasmer_runtime::cache::{Cache as BaseCache, FileSystemCache, WasmHash};
use wasmer_runtime::cache::{Cache as BaseCache, FileSystemCache, WasmHash, cache_versioned_sub_directory};
#[derive(Debug, StructOpt)]
#[structopt(name = "wasmer", about = "Wasm execution runtime.")]
@ -71,6 +71,7 @@ fn get_cache_dir() -> PathBuf {
Err(_) => {
// We use a temporal directory for saving cache files
let mut temp_dir = env::temp_dir();
temp_dir.push(cache_versioned_sub_directory());
temp_dir.push("wasmer");
temp_dir
}