mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 13:18:20 +00:00
Fix cargo test -p wasmer-{cache,engine} and add them to make test-packages.
This commit is contained in:
4
lib/cache/src/filesystem.rs
vendored
4
lib/cache/src/filesystem.rs
vendored
@@ -22,10 +22,10 @@ use wasmer::{DeserializeError, Module, SerializeError, Store};
|
||||
/// let mut fs_cache = FileSystemCache::new("some/directory/goes/here")?;
|
||||
///
|
||||
/// // Compute a key for a given WebAssembly binary
|
||||
/// let hash = Hash::generate(bytes);
|
||||
/// let key = Hash::generate(bytes);
|
||||
///
|
||||
/// // Store a module into the cache given a key
|
||||
/// fs_cache.store(key, module.clone())?;
|
||||
/// fs_cache.store(key, module)?;
|
||||
///
|
||||
/// Ok(())
|
||||
/// }
|
||||
|
||||
Reference in New Issue
Block a user