Skip to content

Commit 1507a01

Browse files
committed
Add serde renames and fix result types for crimp
1 parent 2a8fa1a commit 1507a01

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

crates/wasmtime/src/runtime/rr/backend/crimp/events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ where
9898
/// anyhow results are not serialized directly. They need to specifically check
9999
/// for divergence between recorded and replayed effects with [EventError]
100100
#[derive(Debug, Clone, Serialize, Deserialize)]
101-
pub struct ResultEvent<T, E: EventError>(Result<T, E>);
101+
pub struct ResultEvent<T, E: EventError>(core::result::Result<T, E>);
102102

103103
impl<T, E> ResultEvent<T, E>
104104
where

crates/wasmtime/src/runtime/rr/backend/crimp/events/component_events.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub struct WasmFuncBeginEvent {
2222

2323
/// A instantiatation event for a Wasm component.
2424
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Ord, PartialOrd)]
25+
#[serde(rename = "ComponentInstantiationEvent")]
2526
pub struct InstantiationEvent {
2627
/// Checksum of the bytecode used to instantiate the component
2728
pub component: WasmChecksum,
@@ -40,6 +41,7 @@ pub struct PostReturnEvent {
4041

4142
/// A call event from Host into a Wasm component function.
4243
#[derive(Debug, Clone, Serialize, Deserialize)]
44+
#[serde(rename = "ComponentWasmFuncEntryEvent")]
4345
pub struct WasmFuncEntryEvent {
4446
/// Raw values passed across call boundary.
4547
pub args: RRFuncArgVals,

crates/wasmtime/src/runtime/rr/backend/crimp/events/core_events.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ impl From<FuncIndex> for RRModuleFuncIndex {
3535

3636
/// A core Wasm module instantiatation event.
3737
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Ord, PartialOrd)]
38+
#[serde(rename = "CoreModuleInstantiationEvent")]
3839
pub struct InstantiationEvent {
3940
/// Checksum of the bytecode used to instantiate the module.
4041
pub module: WasmChecksum,
@@ -44,6 +45,7 @@ pub struct InstantiationEvent {
4445

4546
/// A call event from Host into a core Wasm function.
4647
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
48+
#[serde(rename = "CoreWasmFuncEntryEvent")]
4749
pub struct WasmFuncEntryEvent {
4850
/// Instance ID for the instantiated module.
4951
pub instance: RRModuleInstanceId,

0 commit comments

Comments
 (0)