-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Should include! be recommended? #824
Comments
This seems more relevant as a Rust bug than a Cargo bug in the sense that this is the only way I know of to do this sort of inclusion today. I'd personally love to have I suppose I would say, "I agree", but this isn't entirely Cargo's problem. If we had another solution it would be nice, but we need to develop on in rustc first. The answer may be adding another macro which does behave like Note that the bit about being hygienic I think would mean that the entire output of |
I also noticed that |
Due to the lack of other infrastructure in the compiler for doing an equivalent task, I'm going to close this issue. |
Is it possible to add support for |
Of course! |
Cargo recommends the
include!
macro to use generated code.However, it doesn’t seem to be documented, and its source comments say
So, is
include!
the way forward, or should we find some other mechanism? Maybe make something like this work? (It currently giveserror: unexpected token:
concat``)The text was updated successfully, but these errors were encountered: