Skip to main content

wasmer_cache/
lib.rs

1//! The `wasmer-cache` crate provides the necessary abstractions
2//! to cache WebAssembly Modules easily.
3
4#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
5#![warn(unused_import_braces)]
6#![allow(clippy::new_without_default)]
7#![warn(
8    clippy::float_arithmetic,
9    clippy::mut_mut,
10    clippy::nonminimal_bool,
11    clippy::map_unwrap_or,
12    clippy::print_stdout,
13    clippy::unicode_not_nfc,
14    clippy::use_self
15)]
16#![cfg_attr(docsrs, feature(doc_cfg))]
17
18mod cache;
19#[cfg(feature = "filesystem")]
20mod filesystem;
21mod hash;
22
23pub use crate::cache::Cache;
24#[cfg(feature = "filesystem")]
25pub use crate::filesystem::FileSystemCache;
26pub use crate::hash::Hash;
27
28// We re-export those for convenience of users
29pub use wasmer::{DeserializeError, SerializeError};