Pulled from #119
As stated by @ry-sun in that issue:
Attribute parsing robustness:
I noticed that multiple #[getset(...)] attributes on the same item only respect the last one (due to using filter_map(...).next_back() in parsing). For example:
#[derive(Getters)]
#[getset(get)]
#[getset(get = "pub")]
#[getset(get)]
struct MyStruct {
a: isize,
}
only the final #[getset(get)] takes effect. We might consider using a helper like darling to simplify and harden attribute parsing; I’m happy to help integrate it.