-
Notifications
You must be signed in to change notification settings - Fork 225
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
Support for namespaced module generation #173
Comments
Hi! Did you try using the |
I tried following along with the example, so now I have @0xa850d6aba0560467;
using Rust = import "rust.capnp";
$Rust.parentModule("newworld");
interface Peer {
heartbeat @0 ();
} but I'm getting a capnp compilation error:
|
You'll need to have |
Hmm, I see... Is there any way that |
I think the ideal solution would involve something like this: rust-lang/cargo#3544 Another thing we might try is to get If we're really ambitious, we could rewrite the capnp tool in Rust and inject Aside from those approaches, I think the best we can do for now is to copy |
Yeah it does seem a bit hacky... It's not ideal but I'm ok with having things at the root of my project for now, so I think I'll revisit this once it get too unwieldy. |
Closing, because I've added a few doc comments: 998510c. |
Right now if you try to include a generated rust capnp module outside the root module, you run into some problems:
We get a bunch of errors like:
The text was updated successfully, but these errors were encountered: