Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
Binding change required for golem-services integration
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo committed Feb 15, 2024
1 parent ebd668f commit 6001df4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
32 changes: 29 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion wasm-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,17 @@ bindgen!({
tracing: false,
async: true,
with: {
"golem:rpc/types/wasm-rpc": WasmRpcEntry
}
});

#[cfg(feature = "host")]
pub use golem::rpc::types::{HostWasmRpc, NodeIndex, WitNode, WitValue};
pub use golem::rpc::types::{Host, HostWasmRpc, NodeIndex, WitNode, WitValue};

#[cfg(feature = "host")]
pub struct WasmRpcEntry {
pub payload: Box<dyn std::any::Any + Send + Sync>,
}

/// A tree representation of Value - isomorphic to the protobuf Val type but easier to work with in Rust
#[derive(Debug, Clone, PartialEq)]
Expand Down

0 comments on commit 6001df4

Please sign in to comment.