Skip to content

Commit

Permalink
Remove some obsolete re-exports in wasmtime-jit. (#992)
Browse files Browse the repository at this point in the history
These were from when wasmtime-jit was trying to present a different API;
now they're not needed.
  • Loading branch information
sunfishcode authored Feb 26, 2020
1 parent e41cae7 commit d55a996
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions crates/api/src/callable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ use crate::values::Val;
use std::ptr;
use std::rc::Rc;
use wasmtime_environ::ir;
use wasmtime_jit::InstanceHandle;
use wasmtime_runtime::Export;
use wasmtime_runtime::{Export, InstanceHandle};

/// A trait representing a function that can be imported and called from inside
/// WebAssembly.
Expand Down
3 changes: 1 addition & 2 deletions crates/api/src/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ use std::mem;
use std::panic::{self, AssertUnwindSafe};
use std::ptr;
use std::rc::Rc;
use wasmtime_jit::InstanceHandle;
use wasmtime_runtime::{VMContext, VMFunctionBody};
use wasmtime_runtime::{InstanceHandle, VMContext, VMFunctionBody};

/// A WebAssembly function which can be called.
///
Expand Down
4 changes: 0 additions & 4 deletions crates/jit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,5 @@ pub use crate::link::link_module;
pub use crate::resolver::{NullResolver, Resolver};
pub use crate::target_tunables::target_tunables;

// Re-export `InstanceHandle` so that users won't need to separately depend on
// wasmtime-runtime in common cases.
pub use wasmtime_runtime::{InstanceHandle, InstantiationError};

/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

0 comments on commit d55a996

Please sign in to comment.