doc(interface-types) Add #[deny(missing_docs)].

This commit is contained in:
Ivan Enderlin 2020-02-13 14:34:45 +01:00
parent 32bf806f9b
commit 836c848c61
4 changed files with 23 additions and 6 deletions

View File

@ -4,19 +4,31 @@ use crate::ast::InterfaceType;
#[derive(PartialEq, Debug)]
pub enum Instruction<'input> {
/// The `arg.get` instruction.
ArgumentGet { index: u64 },
ArgumentGet {
/// The argument index.
index: u64,
},
/// The `call` instruction.
Call { function_index: usize },
Call {
/// The function index.
function_index: usize,
},
/// The `call-export` instruction.
CallExport { export_name: &'input str },
CallExport {
/// The exported function name.
export_name: &'input str,
},
/// The `read-utf8` instruction.
ReadUtf8,
/// The `write-utf8` instruction.
WriteUtf8 { allocator_name: &'input str },
WriteUtf8 {
/// The allocator function name.
allocator_name: &'input str,
},
/// The `as-wasm` instruction.
AsWasm(InterfaceType),

View File

@ -1,3 +1,5 @@
#![allow(missing_docs)]
use super::values::{InterfaceType, InterfaceValue};
use std::{cell::Cell, ops::Deref};

View File

@ -1,3 +1,5 @@
#![allow(missing_docs)]
use std::convert::TryFrom;
pub use crate::ast::InterfaceType;

View File

@ -33,12 +33,13 @@
#![deny(
dead_code,
missing_docs,
nonstandard_style,
unreachable_patterns,
unused_imports,
unused_mut,
unused_variables,
unused_unsafe,
unreachable_patterns
unused_variables
)]
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
#![doc(html_logo_url = "https://github.com/wasmerio.png")]