emk / accessors

(WIP) Getters and setters for Rust using macros 1.1
11 stars 6 forks source link

Refactor and update for macro 1.1 semantics #7

Open Palladinium opened 5 years ago

Palladinium commented 5 years ago

I couldn't figure out how to preserve the #[setters] attribute in its existing form as rustc always ends up complaining that 'setters' is a derive mode, so I rewrote it as a per-field attribute which should be easily extendable with other per-field settings.

Other notes: