pupactor_macro 0.2.6
“Macros for pupactor”
Basename is uppercase README.mdC header template (.h.in) file
SHA-2566a1ed648e3b6dbddce4996478347edde4e67240d550cc28dac2f4e28cd8084c1
MaleculeO(S)H(Db)Md
Evidence
1use proc_macro::TokenStream;
2use quote::quote;
3use syn::{Data, DeriveInput, Fields, Ident, LitStr, parse_macro_input};
4
5#[proc_macro_derive(ActorMsgHandle, attributes(actor, actor_boxed))]
6pub fn actor_msg_handle_deri …
13:3… }
14
15 let mut actor_kinds = Vec::new();
16
17 for attr in &input.attrs {
18 let boxed = if attr.path().is_ident("actor") {
19 false …
137:7… if meta.path.is_ident("cmd") {
138 // This parses the `cmd` value.
139 let value = meta.value()?;
140 let lit_str: Li …
157:41… nfallible },
158 };
159
160 // Find all properties with attr #[listener]
161 let listeners = if let Data::Struct(data_struct) = input.data {
162 da …
218:14… }
219 }
220 });
221 quote! {
222 loop {
223 tokio::select! {
224 #(#listener_branches)*
225 }
⋯4 lines
No evidence locations were recorded for this file. Raw result