Skip to content

Commit

Permalink
export host_call for actors (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevelr authored Sep 12, 2022
1 parent e020e88 commit 8b18c85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rpc-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmbus-rpc"
version = "0.10.0"
version = "0.10.1"
authors = [ "wasmcloud Team" ]
license = "Apache-2.0"
description = "Runtime library for actors and capability providers"
Expand Down
1 change: 1 addition & 0 deletions rpc-rs/src/actor_wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extern "C" {
}

/// The function through which all host calls (from actors) take place.
#[doc(hidden)]
pub fn host_call(binding: &str, ns: &str, op: &str, msg: &[u8]) -> RpcResult<Vec<u8>> {
let callresult = unsafe {
__host_call(
Expand Down
2 changes: 1 addition & 1 deletion rpc-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ pub mod actor {
cfg_if::cfg_if! {

if #[cfg(target_arch = "wasm32")] {
pub use crate::actor_wasm::{console_log, WasmHost};
pub use crate::actor_wasm::{console_log, host_call, WasmHost};
} else {
// this code is non-functional, since actors only run in wasm32,
// but it reduces compiler errors if you are building a cargo multi-project workspace for non-wasm32
Expand Down

0 comments on commit 8b18c85

Please sign in to comment.