You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build script is simply another Rust file that will be compiled and invoked
187
203
prior to compiling anything else in the package. Hence it can be used to fulfill
188
-
pre-requisites of your crate.</p>
189
-
<p>Cargo provides the script with inputs via environment variables <ahref="https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts">specified
190
-
here</a> that can be used.</p>
191
-
<p>The script provides output via stdout. All lines printed are written to
192
-
<code>target/debug/build/<pkg>/output</code>. Further, lines prefixed with <code>cargo:</code> will be
<p>To tell <code>cargo</code> to compile or run this binary as opposed to the default or other
192
-
binaries, we just pass <code>cargo</code> the <code>--bin my_other_bin</code> flag, where <code>my_other_bin</code>
193
-
is the name of the binary we want to work with.</p>
194
-
<p>In addition to extra binaries, <code>cargo</code> supports <ahref="https://doc.rust-lang.org/cargo/guide/project-layout.html">more features</a> such as
195
-
benchmarks, tests, and examples.</p>
196
-
<p>In the next chapter, we will look more closely at tests.</p>
203
+
<!--
204
+
To tell `cargo` to compile or run this binary as opposed to the default or other
205
+
binaries, we just pass `cargo` the `--bin my_other_bin` flag, where `my_other_bin`
0 commit comments