Fix cargo test -p wasmer-{cache,engine} and add them to make test-packages.

This commit is contained in:
Nick Lewycky
2020-10-27 13:07:57 -07:00
parent 04091d85d7
commit 986682e12f
3 changed files with 5 additions and 3 deletions

View File

@@ -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(())
/// }