From 850f7f7c5bdc6746287cf258501ecd954c052a44 Mon Sep 17 00:00:00 2001 From: "Y.D.X." <73375426+YDX-2147483647@users.noreply.github.com> Date: Fri, 6 Mar 2026 16:20:17 +0800 Subject: [PATCH] Document the `bool` field in `wast::core::FuncKind::Import` --- crates/wast/src/core/func.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/wast/src/core/func.rs b/crates/wast/src/core/func.rs index 52e89c6430..c51f9e6c75 100644 --- a/crates/wast/src/core/func.rs +++ b/crates/wast/src/core/func.rs @@ -33,6 +33,8 @@ pub enum FuncKind<'a> { /// ```text /// (func (type 3) (import "foo" "bar")) /// ``` + /// + /// The second element (`bool`) of the tuple means whether the function is _exact_. This concept is part of the custom descriptors proposal. Import(InlineImport<'a>, bool), /// Almost all functions, those defined inline in a wasm module.