Skip to content

Commit 8167517

Browse files
Deploying to gh-pages from @ 2435cae 🚀
1 parent 0eb514a commit 8167517

File tree

4 files changed

+9
-61
lines changed

4 files changed

+9
-61
lines changed

extensions.html

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -156,32 +156,6 @@ <h1 class="menu-title">rules_rust</h1>
156156
<div id="content" class="content">
157157
<main>
158158
<h1 id="extensions"><a class="header" href="#extensions">Extensions</a></h1>
159-
<p>Bazel rules for interfacing with other rules and integrations with popular 3rd party tools.</p>
160-
<h2 id="setup"><a class="header" href="#setup">Setup</a></h2>
161-
<p>The extension rules are released with each release of <code>rules_rust</code> (core) which can be found on <a href="https://github.com/bazelbuild/rules_rust/releases">the GitHub Releases page</a>. We recommend using the latest release from that page.</p>
162-
<h3 id="bzlmod"><a class="header" href="#bzlmod">Bzlmod</a></h3>
163-
<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><code class="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><code class="language-python">bazel_dep(name = "rules_rust_bindgen", version = "0.55.0")
170-
</code></pre>
171-
<h3 id="workspace"><a class="header" href="#workspace">WORKSPACE</a></h3>
172-
<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>
173-
<pre><code class="language-python">load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
174-
175-
# To find additional information on this release or newer ones visit:
176-
# https://github.com/bazelbuild/rules_rust/releases
177-
http_archive(
178-
name = "rules_rust_{EXTENSION}",
179-
# See releases page
180-
)
181-
182-
# 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>
185159

186160
</main>
187161

print.html

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2984,32 +2984,6 @@ <h3 id="repinning--updating-dependencies-1"><a class="header" href="#repinning--
29842984
</code></pre>
29852985
<p>You can run them via <code>bazel run</code>, e.g. <code>bazel run @rules_rust//tools/upstream_wrapper:cargo -- check</code>.</p>
29862986
<div style="break-before: page; page-break-before: always;"></div><h1 id="extensions"><a class="header" href="#extensions">Extensions</a></h1>
2987-
<p>Bazel rules for interfacing with other rules and integrations with popular 3rd party tools.</p>
2988-
<h2 id="setup-6"><a class="header" href="#setup-6">Setup</a></h2>
2989-
<p>The extension rules are released with each release of <code>rules_rust</code> (core) which can be found on <a href="https://github.com/bazelbuild/rules_rust/releases">the GitHub Releases page</a>. We recommend using the latest release from that page.</p>
2990-
<h3 id="bzlmod-1"><a class="header" href="#bzlmod-1">Bzlmod</a></h3>
2991-
<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><code class="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><code class="language-python">bazel_dep(name = "rules_rust_bindgen", version = "0.55.0")
2998-
</code></pre>
2999-
<h3 id="workspace-1"><a class="header" href="#workspace-1">WORKSPACE</a></h3>
3000-
<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>
3001-
<pre><code class="language-python">load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
3002-
3003-
# To find additional information on this release or newer ones visit:
3004-
# https://github.com/bazelbuild/rules_rust/releases
3005-
http_archive(
3006-
name = "rules_rust_{EXTENSION}",
3007-
# See releases page
3008-
)
3009-
3010-
# 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>
30132987
<div style="break-before: page; page-break-before: always;"></div><!-- Generated with Stardoc: http://skydoc.bazel.build -->
30142988
<h1 id="rules_rust_bindgen"><a class="header" href="#rules_rust_bindgen">rules_rust_bindgen</a></h1>
30152989
<p>These rules are for using <a href="https://github.com/rust-lang/rust-bindgen">Bindgen</a> to generate <a href="http://www.rust-lang.org/">Rust</a> bindings to C (and some C++) libraries.</p>
@@ -3019,7 +2993,7 @@ <h2 id="rules-8"><a class="header" href="#rules-8">Rules</a></h2>
30192993
<li><a href="rust_bindgen.html#rust_bindgen_library">rust_bindgen_library</a></li>
30202994
<li><a href="rust_bindgen.html#rust_bindgen_toolchain">rust_bindgen_toolchain</a></li>
30212995
</ul>
3022-
<h2 id="setup-7"><a class="header" href="#setup-7">Setup</a></h2>
2996+
<h2 id="setup-6"><a class="header" href="#setup-6">Setup</a></h2>
30232997
<p>To use the Rust bindgen rules, add the following to your <code>WORKSPACE</code> file to add the
30242998
external repositories for the Rust bindgen toolchain (in addition to the <a href="https://bazelbuild.github.io/rules_rust/#setup">rust rules setup</a>):</p>
30252999
<pre><code class="language-python">load("@rules_rust_bindgen//:repositories.bzl", "rust_bindgen_dependencies", "rust_bindgen_register_toolchains")
@@ -3127,11 +3101,11 @@ <h2 id="rules-9"><a class="header" href="#rules-9">Rules</a></h2>
31273101
<li><a href="rust_mdbook.html#mdbook_server">mdbook_server</a></li>
31283102
<li><a href="rust_mdbook.html#mdbook_toolchain">mdbook_toolchain</a></li>
31293103
</ul>
3130-
<h2 id="setup-8"><a class="header" href="#setup-8">Setup</a></h2>
3131-
<h3 id="bzlmod-2"><a class="header" href="#bzlmod-2">bzlmod</a></h3>
3104+
<h2 id="setup-7"><a class="header" href="#setup-7">Setup</a></h2>
3105+
<h3 id="bzlmod-1"><a class="header" href="#bzlmod-1">bzlmod</a></h3>
31323106
<pre><code class="language-python">bazel_dep(name = "rules_rust_mdbook", version = "{SEE_RELEASE_NOTES}")
31333107
</code></pre>
3134-
<h3 id="workspace-2"><a class="header" href="#workspace-2">WORKSPACE</a></h3>
3108+
<h3 id="workspace-1"><a class="header" href="#workspace-1">WORKSPACE</a></h3>
31353109
<pre><code class="language-python">load("@rules_rust_mdbook//:repositories.bzl", "mdbook_register_toolchains", "rules_mdbook_dependencies")
31363110

31373111
rules_mdbook_dependencies()
@@ -3199,7 +3173,7 @@ <h2 id="rules-10"><a class="header" href="#rules-10">Rules</a></h2>
31993173
<li><a href="rust_prost.html#rust_prost_library">rust_prost_library</a></li>
32003174
<li><a href="rust_prost.html#rust_prost_toolchain">rust_prost_toolchain</a></li>
32013175
</ul>
3202-
<h2 id="setup-9"><a class="header" href="#setup-9">Setup</a></h2>
3176+
<h2 id="setup-8"><a class="header" href="#setup-8">Setup</a></h2>
32033177
<pre><code class="language-python">load("@rules_rust//proto/prost:repositories.bzl", "rust_prost_dependencies")
32043178

32053179
rust_prost_dependencies()
@@ -3390,7 +3364,7 @@ <h2 id="rust_prost_transform"><a class="header" href="#rust_prost_transform">rus
33903364
<h1 id="rules_rust_protobuf"><a class="header" href="#rules_rust_protobuf">rules_rust_protobuf</a></h1>
33913365
<p>These build rules are used for building <a href="https://developers.google.com/protocol-buffers/">protobufs</a>/<a href="https://grpc.io">gRPC</a> in <a href="http://www.rust-lang.org/">Rust</a> with Bazel
33923366
using <a href="https://github.com/stepancheg/rust-protobuf/"><code>rust-protobuf</code></a>.</p>
3393-
<h2 id="setup-10"><a class="header" href="#setup-10">Setup</a></h2>
3367+
<h2 id="setup-9"><a class="header" href="#setup-9">Setup</a></h2>
33943368
<p>To use the Rust proto rules, add the following to your <code>WORKSPACE</code> file to add the
33953369
external repositories for the Rust proto toolchain (in addition to the <a href="..">rust rules setup</a>):</p>
33963370
<pre><code class="language-python">load("@rules_rust//proto/protobuf:repositories.bzl", "rust_proto_protobuf_dependencies", "rust_proto_protobuf_register_toolchains")
@@ -3549,7 +3523,7 @@ <h2 id="rules-11"><a class="header" href="#rules-11">Rules</a></h2>
35493523
<li><a href="rust_wasm_bindgen.html#rust_wasm_bindgen">rust_wasm_bindgen</a></li>
35503524
<li><a href="rust_wasm_bindgen.html#rust_wasm_bindgen_toolchain">rust_wasm_bindgen_toolchain</a></li>
35513525
</ul>
3552-
<h2 id="setup-11"><a class="header" href="#setup-11">Setup</a></h2>
3526+
<h2 id="setup-10"><a class="header" href="#setup-10">Setup</a></h2>
35533527
<p>To begin using the <code>wasm-bindgen</code> rules, users can load the necessary dependencies
35543528
in their workspace by adding the following to their <code>WORKSPACE.bazel</code> file.</p>
35553529
<pre><code class="language-python">load("@rules_rust_wasm_bindgen//:repositories.bzl", "rust_wasm_bindgen_dependencies", "rust_wasm_bindgen_register_toolchains")

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)