Don't export the 'Local' type from cton_wasm.

This type is not longer used in any public interface, it has become an
internal implementation detail.

Also remove some unused exported types from the crate.
This commit is contained in:
Jakob Stoklund Olesen
2017-09-06 15:56:39 -07:00
parent b10faca534
commit 062dd41c93
2 changed files with 2 additions and 6 deletions

View File

@@ -25,5 +25,5 @@ mod translation_utils;
pub use module_translator::{translate_module, TranslationResult}; pub use module_translator::{translate_module, TranslationResult};
pub use runtime::{FuncEnvironment, WasmRuntime, DummyRuntime}; pub use runtime::{FuncEnvironment, WasmRuntime, DummyRuntime};
pub use translation_utils::{Local, FunctionIndex, GlobalIndex, TableIndex, MemoryIndex, RawByte, pub use translation_utils::{FunctionIndex, GlobalIndex, TableIndex, MemoryIndex, SignatureIndex,
MemoryAddress, SignatureIndex, Global, GlobalInit, Table, Memory}; Global, GlobalInit, Table, Memory};

View File

@@ -13,10 +13,6 @@ pub type GlobalIndex = usize;
pub type MemoryIndex = usize; pub type MemoryIndex = usize;
/// Index of a signature (imported or defined) inside the WebAssembly module. /// Index of a signature (imported or defined) inside the WebAssembly module.
pub type SignatureIndex = usize; pub type SignatureIndex = usize;
/// Raw byte read from memory.
pub type RawByte = u8;
/// Pointer referring to a memory address.
pub type MemoryAddress = usize;
/// WebAssembly import. /// WebAssembly import.
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]