Question for those who use @rustlang: is it acceptable to do network requests in a proc macro to fetch non http://crates.io dependencies needed for code gen? How would you do this otherwise? http://build.rs and store in target folder?
-
-
This assumes it's stored as git which these dependencies are not, but I get the point. I think we should have a http://build.rs step for bringing them in locally to a well known place, and then reading from them in proc-macro
-
I guess I'm suggesting to *make* them a git dep. As others have pointed out network access may be restricted during build, and don't benefit from e.g. network retry mechanisms CI providers ensure for git.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.