diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -22,9 +22,17 @@ pub(crate) use syn::Result as SynResult; /// /// The above code will be expanded into the following: /// +/// Sync: +/// /// ``` #[doc = include_str!("../doc/usage/func_expand.rs")] /// ``` +/// +/// Async: +/// +/// ``` +#[doc = include_str!("../doc/usage/func_async_expand.rs")] +/// ``` #[proc_macro_attribute] pub fn func(attr: TokenStream, item: TokenStream) -> TokenStream { func::func(attr, item) @@ -42,9 +50,17 @@ pub fn func(attr: TokenStream, item: TokenStream) -> TokenStream { /// /// The above code will be expanded into the following: /// +/// Sync: +/// /// ``` #[doc = include_str!("../doc/usage/invoke_expand.rs")] /// ``` +/// +/// Async: +/// +/// ``` +#[doc = include_str!("../doc/usage/invoke_async_expand.rs")] +/// ``` #[proc_macro] pub fn invoke(input: TokenStream) -> TokenStream { invoke::invoke(input) @@ -62,9 +78,17 @@ pub fn invoke(input: TokenStream) -> TokenStream { /// /// The above code will be expanded into the following: /// +/// Sync: +/// /// ``` #[doc = include_str!("../doc/usage/select_expand.rs")] /// ``` +/// +/// Async: +/// +/// ``` +#[doc = include_str!("../doc/usage/select_async_expand.rs")] +/// ``` #[proc_macro] pub fn select(input: TokenStream) -> TokenStream { select::select(input) |
