File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 818818/// // used in library-like situations. This is `false` by default with
819819/// // `#[used]` statics being emitted.
820820/// disable_custom_section_link_helpers: false,
821+ ///
822+ /// // Write generated code to a .rs file, which allows the compiler to
823+ /// // emit more useful diagnostics for errors in the generated code. This
824+ /// // is primarily useful for `wit-bindgen` developers.
825+ /// //
826+ /// // This does the same thing as setting `WIT_BINDGEN_DEBUG=1`, except
827+ /// // that it can be used on a more fine-grained basis (i.e. it only affects
828+ /// // the specific `generate!` call where it is used.
829+ /// debug: true,
830+ ///
831+ /// // Generate async import and/or export bindings.
832+ /// //
833+ /// // The resulting bindings will use the component model
834+ /// // [async ABI](https://github.com/WebAssembly/component-model/blob/main/design/mvp/Async.md).
835+ /// // This may be specified either as a boolean (e.g. `async: true`, meaning
836+ /// // all imports and exports should use the async ABI) or as lists of
837+ /// // specific imports and/or exports as shown here:
838+ /// async: {
839+ /// imports: [
840+ /// "wasi:http/[email protected] #[static]body.finish", 841+ /// "wasi:http/[email protected] #handle", 842+ /// ],
843+ /// exports: [
844+ /// "wasi:http/[email protected] #handle", 845+ /// ]
846+ /// }
821847/// });
822848/// ```
823849///
You can’t perform that action at this time.
0 commit comments