Skip to content

Commit

Permalink
fix: Fix bindgen! macro use for v26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasol committed Oct 31, 2024
1 parent 5fc1c0c commit 3d5c835
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion crates/wasm-workers/src/component_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ pub(crate) mod log_activities {
// Generate `obelisk::log::log`
wasmtime::component::bindgen!({
path: "host-wit/",
// interfaces: "import obelisk:log/log;", // Broken in 26.0.0
inline: "package any:any;
world bindings {
import obelisk:log/log;
}",
world: "any:any/bindings",
async: false,
interfaces: "import obelisk:log/log;",
trappable_imports: false,
});
}
7 changes: 6 additions & 1 deletion crates/wasm-workers/src/host_exports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
wasmtime::component::bindgen!({
path: "host-wit/",
async: true,
interfaces: "import obelisk:workflow/host-activities;",
// interfaces: "import obelisk:workflow/host-activities;", // Broken in 26.0.0
inline: "package any:any;
world bindings {
import obelisk:workflow/host-activities;
}",
world: "any:any/bindings",
trappable_imports: true,
with: {
"obelisk:types/execution/join-set-id": concepts::prefixed_ulid::JoinSetId,
Expand Down

0 comments on commit 3d5c835

Please sign in to comment.