this post was submitted on 30 Sep 2025
35 points (100.0% liked)
Rust
7466 readers
20 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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?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.