User avatar
minwlfNotice flori_ava_star~cursor_blinking @star@amazonawaws.com
10h
the proc macro documentation for Rust is giving me brain damage
2
0
4
0

User avatar
minwlfNotice flori_ava_star~cursor_blinking @star@amazonawaws.com
10h
ok but HOW ABOUT INSTEAD OF "IGNORING IT", YOU INSTEAD TELL ME HOW TO USE IT??
:blobcat_googly_notlikethis@blahaj.zone:1:celeste_heart_lesbian@sk.fedi.gay:1
2
1
14
2
User avatar
mei @mei@donotsta.re
9h
@star I think it will show up within the token stream just like the rest of your input?? but yeah, they should say something about this

unfortunately the standard library is sorely lacking when it comes to proc macros, so writing any examples that don't start with "pull in these useful crates maintained by racist grandpa urethra guy" is... quite cumbersome
0
0
1
0
User avatar
‍headcr4sh good_boy hex_puppy @headcr4sh@corteximplant.com
9h
@star it will just be part of the item tokenstream. parsing the stream is a pain in the ass tho, if you wanna avoid the syn guy, then your best bet is unsynn but it's a bit verbose cus you basically have to declare a struct parser yourself
1
0
0
0
User avatar
minwlfNotice flori_ava_star~cursor_blinking @star@amazonawaws.com
9h
@headcr4sh I am only avoiding syn because I refuse to add the compile time equivalent of 200 tonnes to a crate for something I can do in like 20 lines!
0
0
3
0
10h
@star there’s documentation now? :D
0
0
0
0