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
<p>The extension rules are released with each release of <code>rules_rust</code> (core) which can be found on <ahref="https://github.com/bazelbuild/rules_rust/releases">the GitHub Releases page</a>. We recommend using the latest release from that page.</p>
<p>Note that rules_rust bzlmod support is still a work in progress. Most features should work, but bugs are more likely. This is not a desired end-state - please report (or better yet, help fix!) bugs you run into.</p>
164
-
<p>To use <code>rules_rust</code> extensions in a project using bzlmod, add the following to your <code>MODULE.bazel</code> file:</p>
165
-
<pre><codeclass="language-python">bazel_dep(name = "rules_rust_{EXTENSION}", version = "{VERSION}")
166
-
</code></pre>
167
-
<p>Don't forget to substitute in your desired release's version number and <code>{EXTENSION}</code> with the
168
-
name of the desired extension. E.g.:</p>
169
-
<pre><codeclass="language-python">bazel_dep(name = "rules_rust_bindgen", version = "0.55.0")
<p>To use <code>rules_rust</code> extensions in a project using a WORKSPACE file, add the following to your <code>WORKSPACE</code> file to add the external repositories for the Rust toolchain:</p>
# Refer to the documentation of the desired rules for how to load other necessary dependencies.
183
-
</code></pre>
184
-
<p>Don't forget to substitute in your desired release's version number, integrity hash, and <code>{EXTENSION}</code> with the name of the desired extension.</p>
<p>The extension rules are released with each release of <code>rules_rust</code> (core) which can be found on <ahref="https://github.com/bazelbuild/rules_rust/releases">the GitHub Releases page</a>. We recommend using the latest release from that page.</p>
<p>Note that rules_rust bzlmod support is still a work in progress. Most features should work, but bugs are more likely. This is not a desired end-state - please report (or better yet, help fix!) bugs you run into.</p>
2992
-
<p>To use <code>rules_rust</code> extensions in a project using bzlmod, add the following to your <code>MODULE.bazel</code> file:</p>
2993
-
<pre><codeclass="language-python">bazel_dep(name = "rules_rust_{EXTENSION}", version = "{VERSION}")
2994
-
</code></pre>
2995
-
<p>Don't forget to substitute in your desired release's version number and <code>{EXTENSION}</code> with the
2996
-
name of the desired extension. E.g.:</p>
2997
-
<pre><codeclass="language-python">bazel_dep(name = "rules_rust_bindgen", version = "0.55.0")
<p>To use <code>rules_rust</code> extensions in a project using a WORKSPACE file, add the following to your <code>WORKSPACE</code> file to add the external repositories for the Rust toolchain:</p>
# Refer to the documentation of the desired rules for how to load other necessary dependencies.
3011
-
</code></pre>
3012
-
<p>Don't forget to substitute in your desired release's version number, integrity hash, and <code>{EXTENSION}</code> with the name of the desired extension.</p>
3013
2987
<divstyle="break-before: page; page-break-before: always;"></div><!-- Generated with Stardoc: http://skydoc.bazel.build -->
<p>These rules are for using <ahref="https://github.com/rust-lang/rust-bindgen">Bindgen</a> to generate <ahref="http://www.rust-lang.org/">Rust</a> bindings to C (and some C++) libraries.</p>
<p>To use the Rust bindgen rules, add the following to your <code>WORKSPACE</code> file to add the
3024
2998
external repositories for the Rust bindgen toolchain (in addition to the <ahref="https://bazelbuild.github.io/rules_rust/#setup">rust rules setup</a>):</p>
<p>These build rules are used for building <ahref="https://developers.google.com/protocol-buffers/">protobufs</a>/<ahref="https://grpc.io">gRPC</a> in <ahref="http://www.rust-lang.org/">Rust</a> with Bazel
3392
3366
using <ahref="https://github.com/stepancheg/rust-protobuf/"><code>rust-protobuf</code></a>.</p>
0 commit comments