mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-24 14:11:32 +00:00
Fix formatting
This commit is contained in:
@ -36,17 +36,17 @@ impl From<io::Error> for Error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The hash of a wasm module.
|
/// The hash of a wasm module.
|
||||||
///
|
///
|
||||||
/// Used as a key when loading and storing modules in a [`Cache`].
|
/// Used as a key when loading and storing modules in a [`Cache`].
|
||||||
///
|
///
|
||||||
/// [`Cache`]: trait.Cache.html
|
/// [`Cache`]: trait.Cache.html
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||||
pub struct WasmHash([u8; 32]);
|
pub struct WasmHash([u8; 32]);
|
||||||
|
|
||||||
impl WasmHash {
|
impl WasmHash {
|
||||||
/// Hash a wasm module.
|
/// Hash a wasm module.
|
||||||
///
|
///
|
||||||
/// # Note:
|
/// # Note:
|
||||||
/// This does no verification that the supplied data
|
/// This does no verification that the supplied data
|
||||||
/// is, in fact, a wasm module.
|
/// is, in fact, a wasm module.
|
||||||
pub fn generate(wasm: &[u8]) -> Self {
|
pub fn generate(wasm: &[u8]) -> Self {
|
||||||
@ -202,7 +202,7 @@ impl SerializedCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A generic cache for storing and loading compiled wasm modules.
|
/// A generic cache for storing and loading compiled wasm modules.
|
||||||
///
|
///
|
||||||
/// The `wasmer-runtime` supplies a naive `FileSystemCache` api.
|
/// The `wasmer-runtime` supplies a naive `FileSystemCache` api.
|
||||||
pub trait Cache {
|
pub trait Cache {
|
||||||
type LoadError;
|
type LoadError;
|
||||||
|
Reference in New Issue
Block a user