Closed ephraimkunz closed 3 years ago
Closes #101.
As I mentioned in that issue, I'm not sure if the previous behavior of reading any attribute that had the correct string inside was intended or not. Assuming that it wasn't, the solution is to just filter out all non-yaserde attributes.
For reference, serde also filters out other attributes except for the serde attribute: https://github.com/serde-rs/serde/blob/b054ea41053ea4047882cc33970d2257cdfe04ac/serde_derive/src/internals/attr.rs#L1568
Closes #101.
As I mentioned in that issue, I'm not sure if the previous behavior of reading any attribute that had the correct string inside was intended or not. Assuming that it wasn't, the solution is to just filter out all non-yaserde attributes.
For reference, serde also filters out other attributes except for the serde attribute: https://github.com/serde-rs/serde/blob/b054ea41053ea4047882cc33970d2257cdfe04ac/serde_derive/src/internals/attr.rs#L1568