Skip to content

Purpose of module macro? #718

Closed Answered by udoprog
VorpalBlade asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by VorpalBlade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants