thlorenz / rid

Rust integrated Dart framework providing an easy way to build Flutter apps with Rust.
64 stars 4 forks source link

rid-macro: adding ability to skip a struct field #26

Closed thlorenz closed 2 years ago

thlorenz commented 2 years ago

NOTE: I tried to opaquely add this derive to each model struct, but caused problems when another proc_macro attribute comes after (derive attrs need to be last). In the future we could explore rewriting the TokenStream and inject the derive in the right place so the user doesn't have to add it explicitly.