Skip to content

Commit f8eed8c

Browse files
authored
Merge branch 'main' into workspace
2 parents c6c6610 + 64472b7 commit f8eed8c

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ This repository provides rules for building [Rust](https://www.rust-lang.org/) p
99

1010
## Community
1111

12-
* Developer mailing list: [groups.google.com/g/rules_rust](https://groups.google.com/g/rules_rust)
12+
General discussions and announcements take place in the [GitHub Discussions](https://github.com/bazelbuild/rules_rust/discussions), but there are
13+
additional places where community members gather to discuss `rules_rust`.
14+
1315
* Chat: [#rust](https://bazelbuild.slack.com/archives/CSV56UT0F) channel on Bazel Slack: [https://slack.bazel.build/](https://slack.bazel.build/)
16+
* **Archived** Developer mailing list: [groups.google.com/g/rules_rust](https://groups.google.com/g/rules_rust)
17+
18+
## Documentation
1419

1520
<!-- TODO: Render generated docs on the github pages site again, https://bazelbuild.github.io/rules_rust/ -->
1621

cargo/cargo_build_script_runner/bin.rs

+19-19
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ fn run_buildrs() -> Result<(), String> {
3939
progname,
4040
crate_links,
4141
out_dir,
42-
envfile,
43-
flagfile,
44-
linkflags,
42+
env_file,
43+
compile_flags_file,
44+
link_flags_file,
4545
output_dep_env_path,
4646
stdout_path,
4747
stderr_path,
@@ -136,10 +136,10 @@ fn run_buildrs() -> Result<(), String> {
136136
})?;
137137

138138
write(
139-
&envfile,
139+
&env_file,
140140
BuildScriptOutput::to_env(&buildrs_outputs, &exec_root.to_string_lossy()).as_bytes(),
141141
)
142-
.expect(&format!("Unable to write file {:?}", envfile));
142+
.expect(&format!("Unable to write file {:?}", env_file));
143143
write(
144144
&output_dep_env_path,
145145
BuildScriptOutput::to_dep_env(&buildrs_outputs, &crate_links, &exec_root.to_string_lossy())
@@ -156,10 +156,10 @@ fn run_buildrs() -> Result<(), String> {
156156
link_flags,
157157
} = BuildScriptOutput::to_flags(&buildrs_outputs, &exec_root.to_string_lossy());
158158

159-
write(&flagfile, compile_flags.as_bytes())
160-
.expect(&format!("Unable to write file {:?}", flagfile));
161-
write(&linkflags, link_flags.as_bytes())
162-
.expect(&format!("Unable to write file {:?}", linkflags));
159+
write(&compile_flags_file, compile_flags.as_bytes())
160+
.expect(&format!("Unable to write file {:?}", compile_flags_file));
161+
write(&link_flags_file, link_flags.as_bytes())
162+
.expect(&format!("Unable to write file {:?}", link_flags_file));
163163
Ok(())
164164
}
165165

@@ -168,9 +168,9 @@ struct Options {
168168
progname: String,
169169
crate_links: String,
170170
out_dir: String,
171-
envfile: String,
172-
flagfile: String,
173-
linkflags: String,
171+
env_file: String,
172+
compile_flags_file: String,
173+
link_flags_file: String,
174174
output_dep_env_path: String,
175175
stdout_path: String,
176176
stderr_path: String,
@@ -187,9 +187,9 @@ fn parse_args() -> Result<Options, String> {
187187
Some(progname),
188188
Some(crate_links),
189189
Some(out_dir),
190-
Some(envfile),
191-
Some(flagfile),
192-
Some(linkflags),
190+
Some(env_file),
191+
Some(compile_flags_file),
192+
Some(link_flags_file),
193193
Some(output_dep_env_path),
194194
Some(stdout_path),
195195
Some(stderr_path),
@@ -198,17 +198,17 @@ fn parse_args() -> Result<Options, String> {
198198
progname,
199199
crate_links,
200200
out_dir,
201-
envfile,
202-
flagfile,
203-
linkflags,
201+
env_file,
202+
compile_flags_file,
203+
link_flags_file,
204204
output_dep_env_path,
205205
stdout_path,
206206
stderr_path,
207207
input_dep_env_paths: args.collect(),
208208
})
209209
}
210210
_ => {
211-
Err("Usage: $0 progname out_dir envfile flagfile linkflagfile output_dep_env_path [arg1...argn]".to_owned())
211+
Err(format!("Usage: $0 progname crate_links out_dir env_file compile_flags_file link_flags_file output_dep_env_path stdout_path stderr_path input_dep_env_paths[arg1...argn]\nArguments passed: {:?}", args.collect::<Vec<String>>()))
212212
}
213213
}
214214
}

0 commit comments

Comments
 (0)