Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any other macro collision #13

Open
Dzordzu opened this issue Feb 1, 2024 · 1 comment
Open

Any other macro collision #13

Dzordzu opened this issue Feb 1, 2024 · 1 comment

Comments

@Dzordzu
Copy link

Dzordzu commented Feb 1, 2024

Using serde rename causes proc-macro panic. Maybe avoid using rename field macro and change it to the structmap instead?

Actually any macro (serde default, serde rename, utoipa schema…) causes

Must be `#[rename(name = 'VALUE')]`

error

@Dzordzu Dzordzu closed this as completed Feb 1, 2024
@Dzordzu Dzordzu reopened this Feb 1, 2024
@Dzordzu Dzordzu changed the title Serde collision Any other macro collision Feb 1, 2024
@Dzordzu
Copy link
Author

Dzordzu commented Feb 1, 2024

Ehhs. One must have forgotten about attributes filtering… Maybe someone can add filter() + as_ident() to these lines…

https://github.com/ex0dus-0x/structmap/blob/main/structmap-derive/src/lib.rs#L185-L225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant