Skip to content

wit-dylib: Support async WIT functions and futures/streams. #2309

@alexcrichton

Description

@alexcrichton

Right now there's effectively no support for async with wit-dylib. This'll be two components:

  • One is that lifted/lowered functions need to update ABI bits and pieces for async. This will also need to be accompanied with generated bindings for a task.return function, for example. Static imports such as those for waitable-sets can probably be skipped since the original interpreter can import those and work with those itself.
  • Right now futures/streams are bound, but their intrinsics aren't available in type information. We should fill these out and whenever a stream/future type are encountered they should be accompanied with imported or generated functions to work. For example creating a stream, reading/writing, cancelling, etc, should all be possible.

Metadata

Metadata

Assignees

Labels

wit-dylibIssues for the `wit-dylib` crate and subcommand

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions