Expand description
Bindings generation support for Rust with the Component Model.
This crate is a bindings generator for WIT and the Component Model.
Users are likely interested in the generate!
macro which actually
generates bindings. Otherwise this crate provides any runtime support
necessary for the macro-generated code.
Modules§
Macros§
- generate
- Generate bindings for an input WIT document.
Structs§
- AbiBuffer
- A helper structure used with a stream to handle the canonical ABI representation of lists and track partial writes.
- Future
Read - Represents a read operation which may be cancelled prior to completion.
- Future
Reader - Represents the readable end of a Component Model
future
. - Future
Write - Represents a write operation which may be cancelled prior to completion.
- Future
Write Error - Error type in the result of
FutureWrite
, or the error type that is a result of a failure to write a future. - Future
Writer - Represents the writable end of a Component Model
future
. - Stream
Read - Represents a read operation which may be cancelled prior to completion.
- Stream
Reader - Represents the readable end of a Component Model
stream
. - Stream
Write - Represents a write operation which may be cancelled prior to completion.
- Stream
Writer - Represents the writable end of a Component Model
stream
.
Enums§
- Future
Write Cancel - Result of
FutureWrite::cancel
. - Stream
Result - Result of a
StreamWriter::write
orStreamReader::read
operation, yielded by theStreamWrite
orStreamRead
futures.
Functions§
- backpressure_
set - Call the
backpressure.set
canonical built-in function. - block_
on - Run the specified future to completion, returning the result.
- spawn
- Defer the specified future to be run after the current async-lifted export task has returned a value.
- yield_
async - The asynchronous counterpart to
yield_blocking
. - yield_
blocking - Call the
yield
canonical built-in function.