Benign rust 7,438 installs Download

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

imports proc_macro::TokenStream lines 1–6
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 …
English function-word token "for" lines 13–19
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 …
English function-word token "the" lines 137–140
137:7… if meta.path.is_ident("cmd") {
138 // This parses the `cmd` value.
139 let value = meta.value()?;
140 let lit_str: Li …
English function-word token "with" lines 157–162
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 …
Contains an unbounded block loop lines 218–229
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

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.