Remove HostRef as a reexport from wasmtime (#794)

This continues #788 and literally removes the type from the public API
of the `wasmtime` crate, making it inaccessible to the outside world.
Now it's purely an implementation detail, yay!
This commit is contained in:
Alex Crichton
2020-01-10 14:36:31 -06:00
committed by GitHub
parent 90db89d327
commit 2b7d627007
3 changed files with 24 additions and 33 deletions

View File

@@ -26,7 +26,7 @@ pub use crate::callable::Callable;
pub use crate::externals::*;
pub use crate::instance::Instance;
pub use crate::module::Module;
pub use crate::r#ref::{AnyRef, HostInfo, HostRef};
pub use crate::r#ref::AnyRef;
pub use crate::runtime::{Config, Engine, OptLevel, Store, Strategy};
pub use crate::trap::{FrameInfo, Trap};
pub use crate::types::*;

View File

@@ -7,9 +7,10 @@
use super::{
AnyRef, Callable, Engine, ExportType, Extern, ExternType, Func, FuncType, Global, GlobalType,
HostInfo, HostRef, ImportType, Instance, Limits, Memory, MemoryType, Module, Store, Table,
TableType, Trap, Val, ValType,
ImportType, Instance, Limits, Memory, MemoryType, Module, Store, Table, TableType, Trap, Val,
ValType,
};
use crate::r#ref::{HostInfo, HostRef};
use std::cell::RefCell;
use std::rc::Rc;
use std::{mem, ptr, slice};