-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conventions for namespaces generated by macros #199
Comments
Hi @NewGyu, thanks for the question! This is a convention that comes from the Functions that are directly exported from the world are represented with a "top-level" Interfaces exported from the world go in the The |
Hello @peterhuene, thank you for the detailed explanation. That was very helpful. |
Just my personal opinion, I think the namespace of the |
Hello developers, I'm one of cargo-component funs.
I have a question about the namespace conventions for
bindings
generated bycargo_component_bindings::generate!()
macro. The namespaces of the bindings generated in the two cases below are different. What are the generation rules? I especially concerned about the lack ofexports
in the namespace forGuest
trait in case1.Case0
Generated bindings.
ramdom
interface.${package name}
::${interface name}
::".Case1
WIT file.
Generated bindings.
rand
function. And the worlduse
sSeed
type the function depends on.binding::
namespace.${package name}
::${interface name}
::".exports
is not contained in the namespace.The text was updated successfully, but these errors were encountered: