Skip to content

Commit a4987fe

Browse files
committed
Add necessary wasmtime environ types as re-exports through rr
1 parent 8bc4c34 commit a4987fe

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

crates/rr/src/events.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
use crate::{ReplayError, prelude::*};
2-
use anyhow::Result;
32
use core::fmt;
4-
use serde::{Deserialize, Serialize};
53

64
/// A serde compatible representation of errors produced during execution
75
/// of certain events

crates/rr/src/events/component_events.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
//! Module comprising of component model wasm events
22
33
use super::*;
4-
use wasmtime_environ::{
5-
self, WasmChecksum,
6-
component::{ExportIndex, InterfaceType, ResourceDropRet},
7-
};
4+
use crate::{ExportIndex, InterfaceType, ResourceDropRet, WasmChecksum};
85

96
/// Representation of a component instance identifier during record/replay.
107
///

crates/rr/src/events/core_events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Module comprising of core wasm events
22
use super::*;
3-
use wasmtime_environ::{EntityIndex, FuncIndex, WasmChecksum};
3+
use crate::{EntityIndex, FuncIndex, WasmChecksum};
44

55
/// Representation of a Wasm module instance identifier during record/replay.
66
///

crates/rr/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ pub use events::{
1313
};
1414
use events::{component_events::RRComponentInstanceId, core_events::RRModuleInstanceId};
1515
pub use io::{RecordWriter, ReplayReader, from_replay_reader, to_record_writer};
16-
use wasmtime_environ::{EntityIndex, WasmChecksum};
16+
// Export necessary environ types for interactions with the crate
17+
pub use wasmtime_environ::{
18+
EntityIndex, FuncIndex, WasmChecksum,
19+
component::{ExportIndex, InterfaceType, ResourceDropRet},
20+
};
1721

1822
/// Encapsulation of event types comprising an [`RREvent`] sum type
1923
mod events;

0 commit comments

Comments
 (0)