Skip to content

Add support for resources#24

Merged
afsalthaj merged 10 commits intomainfrom
resource_support
Apr 19, 2026
Merged

Add support for resources#24
afsalthaj merged 10 commits intomainfrom
resource_support

Conversation

@afsalthaj
Copy link
Copy Markdown
Collaborator

@afsalthaj afsalthaj commented Apr 19, 2026

There was lot of complexities when it used to work with golem, which doesn't need to exist, when trying to make it directly work with wasmtime. This PR is making sure wasmtime can use rib and make sure all resource method invokes work nicely using repl

wasmtime on  wasmtime_rib !?❯ target/debug/wasmtime repl ../rib-smoke/target/wasm32-wasip1/debug/rib_smoke.wasm
>>>
>>> let x = instance()
()
>>> let r = x.cart("foo")
()
>>> r.add-line({sku: "foo", qty: 42})
()
>>> r.line-count()
1
>>> r.add-line({sku: "foo", qty: 42})
()
>>> r.line-count()
2
>>>

@afsalthaj
Copy link
Copy Markdown
Collaborator Author

There are a few rough edges at host side. I think that needs to be fixed with a few clean ups

@afsalthaj afsalthaj merged commit c5e357c into main Apr 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant