you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 1 year ago (1 child)

Looking at the example code of Export Groups, I don't understand why a #[export] is needed, if there is already a #[export_group(...)] or #[export_subgroup(...)] . Its surely possible in Rust to automatically invoke #[export] if one of the group-macros are invoked, right?

  • source
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    In the initial implementation, export groups have been added as an independent attribute. One attribute creates groups, and the other marks fields for exporting. So yes, this is not being auto-inferred right now, but it could probably be added.

  • source
  • parent