-
Notifications
You must be signed in to change notification settings - Fork 46
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
error: an inner attribute is not permitted in this context #138
Comments
This is a consequence of using the Until this Rust limitation is solved, one workaround is to use a path annotation instead of #[path = "path/to/the/generated/cornucopia/module"]
mod cornucopia; Please let me know if this works for you. If not, I have some other ideas up my sleeve, but honestly I'd prefer to keep the attributes as is if possible. Cheers! Thanks for your interest in Cornucopia. FYI, changing the attributes from inner ( |
I think the below doesn't work with #[path = "path/to/the/generated/cornucopia/module"]
mod cornucopia; So I wrote some code to do a search and replace on the |
@ianpurton I can definitely solve this on our side, so please feel free to reopen this issue at any time if you feel like its troublesome for you. If there's a choice to make between codegen complexity and user experience, I'll always pick user experience! I just wanted to try the |
I think it would be great if you could fix this. |
I'll fix this as soon as possible 😃 Should be relatively quick. |
@ianpurton @jgreenbaum I just published a minor release that should fix this issue! Please let me know if there's still something amiss. Thanks for making Cornucopia better! |
@LouisGariepy Thanks. I've tried it and it works. |
I'm getting the following error from the generated code. If I edit cornucopia.rs directly and make the changes the compiler suggests it works again.
The text was updated successfully, but these errors were encountered: