as with serde attrs rid(*) are extensible for future needs
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.
#[derive(rid::Config)]
which adds rid config attributes to the model struct it is applied to#[derive(rid::Config)]
itself does not add any generated code, but just serves to introduce the attrs#[rid(skip)]
to omit it from rendering FFI wrapper coderid(*)
are extensible for future needsNOTE: 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.