-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Bazel: update rules_rust
#18710
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
Bazel: update rules_rust
#18710
Changes from 5 commits
75b5493
f6301b8
a82ba70
cc939e6
0b7cace
15a51c3
5f171b6
c0eaff6
f7ca717
71de5a2
eee82f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -150,10 +150,7 @@ fn write_schema( | |
| .map(|node| node_src_to_schema_class(node, &super_types)), | ||
| ); | ||
| // the concat dance is currently required by bazel | ||
redsun82 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| let template = mustache::compile_str(include_str!(concat!( | ||
| env!("CARGO_MANIFEST_DIR"), | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this is still not fixed :/
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what do you mean? The new code does not need to concat with the
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That rules_rust sets the proper variables here in line with cargo.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, yes, seems like something went astray there, as it was working before but stopped working at some point. So not something required in this instance, but there could be a problem elsewhere. |
||
| "/src/templates/schema.mustache" | ||
| )))?; | ||
| let template = mustache::compile_str(include_str!("templates/schema.mustache"))?; | ||
| let res = template.render_to_string(&schema)?; | ||
| Ok(fix_blank_lines(&res)) | ||
| } | ||
|
|
@@ -558,10 +555,7 @@ fn write_extractor(grammar: &AstSrc) -> mustache::Result<String> { | |
| nodes: grammar.nodes.iter().map(node_to_extractor_info).collect(), | ||
| }; | ||
| // the concat dance is currently required by bazel | ||
|
||
| let template = mustache::compile_str(include_str!(concat!( | ||
| env!("CARGO_MANIFEST_DIR"), | ||
| "/src/templates/extractor.mustache" | ||
| )))?; | ||
| let template = mustache::compile_str(include_str!("templates/extractor.mustache"))?; | ||
| let res = template.render_to_string(&extractor_info)?; | ||
| Ok(fix_blank_lines(&res)) | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.