structmap icon indicating copy to clipboard operation
structmap copied to clipboard

Any other macro collision

Open Dzordzu opened this issue 1 year ago • 1 comments

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 avatar Feb 01 '24 16:02 Dzordzu

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

Dzordzu avatar Feb 01 '24 17:02 Dzordzu