Give the web runtime support for resources #327
Labels
area - runtime
The Rust Rune runtime
category - bug
Something isn't working
category - enhancement
New feature or request
effort - easy
This should be pretty simple
good first issue
Good for newcomers
In #273 we added resources to
rune build
and the Rust runtime, but because the web runtime can't be used outside the browser (#270) we didn't detect that the web runtime doesn't support resources.We need to add the following host functions to the web runtime.
(source)
This implements a file-like API, where you'll open a resource and get a handle back (or a negative number indicating something went wrong), keep reading until EOF, then close the resource. I imagine the API changes will be something like this:
The text was updated successfully, but these errors were encountered: