python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Value of a field attribute on a proc macro
I have this struct:
pub struct Thing {
pub some_field: i32,
#[my_attr = some_value]
pub field_attr: String
}
How can I recover the data on the right side of the equals? I can recover per...
Alex Vergara
Votes: 0
Answers: 1
Get module resolution entry point in proc-macros
My question is: Is there a way to get the exact module resolution entry point in the proc-macro stage?
First off some background info on what I'm trying to achieve.
I'm in the process of writing a cra...
Nukesor
Votes: 0
Answers: 0
How to parse other attributes in custom rust proc_macro attribute?
I am writing a proc_macro attribute that add fields to a struct and also implement my trait (and other by adding a #[derive(...)]) to the expanded struct
Here a simplified version of what I want to do...
Jil
Votes: 0
Answers: 1
How do I pass arguments from a generated function to another function in a procedural macro?
I'm trying to create a macro that generates two functions from a function signature. As the signature of the functions is dependent from what is passed to the macro, the number of function arguments i...
Konrad Koschel
Votes: 0
Answers: 2