aboutsummaryrefslogtreecommitdiff
path: root/doc/usage/func_async_expand.rs
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/usage/func_async_expand.rs
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/usage/func_async_expand.rs')
-rw-r--r--doc/usage/func_async_expand.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/usage/func_async_expand.rs b/doc/usage/func_async_expand.rs
new file mode 100644
index 0000000..ac52411
--- /dev/null
+++ b/doc/usage/func_async_expand.rs
@@ -0,0 +1,3 @@
+pub async fn greet(name: &str) -> String {
+ "Hello, {name}!".to_string()
+}