Add deny missing docs to runtime lib

This commit is contained in:
Brandon Fish
2019-11-13 22:59:21 -06:00
parent fff16c08d0
commit 929bff9df8
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
//! The cache module provides the common data structures used by compiler backends to allow
//! serializing compiled wasm code to a binary format. The binary format can be persisted,
//! and loaded to allow skipping compilation and fast startup.
use crate::Module; use crate::Module;
use memmap::Mmap; use memmap::Mmap;
use std::{ use std::{

View File

@ -1,5 +1,6 @@
#![deny( #![deny(
dead_code, dead_code,
missing_docs,
nonstandard_style, nonstandard_style,
unused_imports, unused_imports,
unused_mut, unused_mut,
@ -104,6 +105,8 @@ pub use wasmer_runtime_core::{compile_with, validate};
pub use wasmer_runtime_core::{func, imports}; pub use wasmer_runtime_core::{func, imports};
pub mod memory { pub mod memory {
//! The memory module contains the implementation data structures and helper functions used to
//! manipulate and access wasm memory.
pub use wasmer_runtime_core::memory::{Atomically, Memory, MemoryView}; pub use wasmer_runtime_core::memory::{Atomically, Memory, MemoryView};
} }
@ -117,6 +120,8 @@ pub mod wasm {
} }
pub mod error { pub mod error {
//! The error module contains the data structures and helper functions used to implement errors that
//! are produced and returned from the wasmer runtime.
pub use wasmer_runtime_core::cache::Error as CacheError; pub use wasmer_runtime_core::cache::Error as CacheError;
pub use wasmer_runtime_core::error::*; pub use wasmer_runtime_core::error::*;
} }