'Only allow one proc-macro per rs file
I have a proc-macro-attribute like this:
// my_file.rs
#[my-proc-attr]
pub struct NotAJavaClass {
//* fields */
}
Exists some way of restrict the user to only have one #[my-proc-attr] per file?
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
