Browse Source

wasmtime-runtime: Re-export backtrace `Frame` type (#6280)

This crate re-exports the `Backtrace` type at top-level from a nested
module. `Backtrace` in turn has `Frame` in its public API, which is not
re-exported anywhere. This is legal and external users can call methods
on `Frame`, but it doesn't appear in the rustdocs, making it
unnecessarily difficult to figure out how to use this API. Re-exporting
`Frame` fixes that, and also allows naming the type directly if needed.
pull/6289/head
Jamey Sharp 2 years ago
committed by GitHub
parent
commit
bd473dba31
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      crates/runtime/src/lib.rs
  2. 2
      crates/runtime/src/traphandlers.rs

2
crates/runtime/src/lib.rs

@ -68,7 +68,7 @@ pub use crate::table::{Table, TableElement};
pub use crate::trampolines::prepare_host_to_wasm_trampoline;
pub use crate::traphandlers::{
catch_traps, init_traps, raise_lib_trap, raise_user_trap, resume_panic, tls_eager_initialize,
Backtrace, SignalHandler, TlsRestore, Trap, TrapReason,
Backtrace, Frame, SignalHandler, TlsRestore, Trap, TrapReason,
};
pub use crate::vmcontext::{
VMCallerCheckedFuncRef, VMContext, VMFunctionBody, VMFunctionImport, VMGlobalDefinition,

2
crates/runtime/src/traphandlers.rs

@ -11,7 +11,7 @@ use std::mem::MaybeUninit;
use std::ptr;
use std::sync::Once;
pub use self::backtrace::Backtrace;
pub use self::backtrace::{Backtrace, Frame};
pub use self::tls::{tls_eager_initialize, TlsRestore};
#[link(name = "wasmtime-helpers")]

Loading…
Cancel
Save