Skip to content

Is it possible to make export_bindings work for WASI targets? #396

Answered by NyxCode
josephwynn-sc asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, that's particularly annoying. We need some way to actually run tests locally, with access to the filesystem. No way around that.

Splitting your crate into two (types and api) should work, if that's acceptable to you.

Besides that, maybe there is some way to get filesystem access when running the thing with the fastly CLI. I have never used it, so I have no idea why it doesn't work by default and what you'd need to do to make it work.

Also, you could find some other way to get the bindings out of the running binary - maybe by writing them to stdout by calling TS::export_to_string on all types yourself. For this, we might be able to offer a better API in the future - e.g by writing to s…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@josephwynn-sc
Comment options

@NyxCode
Comment options

Answer selected by josephwynn-sc
@josephwynn-sc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants