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 818
818
/// // used in library-like situations. This is `false` by default with
819
819
/// // `#[used]` statics being emitted.
820
820
/// 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/types@0.3.0-draft#[static]body.finish",
841
+ /// "wasi:http/handler@0.3.0-draft#handle",
842
+ /// ],
843
+ /// exports: [
844
+ /// "wasi:http/handler@0.3.0-draft#handle",
845
+ /// ]
846
+ /// }
821
847
/// });
822
848
/// ```
823
849
///
You can’t perform that action at this time.
0 commit comments