Purpose of module macro? #718
-
This leads to two questions:
|
Beta Was this translation helpful? Give feedback.
Answered by
udoprog
Jul 5, 2024
Replies: 1 comment
-
You don't need to use the macro. It's only used to define the name and documentation for the internal modules right now, something you can do by hand with If you want to put something in the root namespace, you use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
VorpalBlade
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You don't need to use the macro. It's only used to define the name and documentation for the internal modules right now, something you can do by hand with
Module::item_mut
.If you want to put something in the root namespace, you use
Module::new
.