aboutsummaryrefslogtreecommitdiff
path: root/doc/args/invoke.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-07-23 08:08:33 +0800
committer魏曹先生 <1992414357@qq.com>2026-07-23 14:01:45 +0800
commit68a652ed2f51d366bb8033497e6dfe545895410e (patch)
treed463833846248410733e196a0939c59cd67ca8a2 /doc/args/invoke.md
feat: scaffold crate structure and implement core macros
Add the project skeleton, LICENSE files, README, Makefile, doc examples, and the initial implementation of `#[func]`, `invoke!`, and `select!` procedural macros.
Diffstat (limited to 'doc/args/invoke.md')
-rw-r--r--doc/args/invoke.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/args/invoke.md b/doc/args/invoke.md
new file mode 100644
index 0000000..74a1823
--- /dev/null
+++ b/doc/args/invoke.md
@@ -0,0 +1,8 @@
+Arguments parsed by the `invoke!` macro.
+
+Two forms:
+
+| Variant | Form | Behavior |
+| ---------- | ------------------------- | ---------------------------------- |
+| `Default` | `invoke!(expr)` | Feature name defaults to `"async"` |
+| `Explicit` | `invoke!("feat" => expr)` | Uses the given feature name |