[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[03d537cd] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8d0270d1] | 7 | <!ENTITY rust-download-http "https://static.rust-lang.org/dist/rustc-&rust-version;-src.tar.xz">
|
---|
[d9bcc5f] | 8 | <!ENTITY rust-download-ftp " ">
|
---|
[8213da3] | 9 | <!ENTITY rust-md5sum "0b00381728b6c005e95194f7e44cff33">
|
---|
| 10 | <!ENTITY rust-size "191 MB">
|
---|
[d71f68c9] | 11 | <!ENTITY rust-buildsize "8.9 GB (298 MB installed); add 6.4 GB if running the tests">
|
---|
[1fd7593] | 12 | <!ENTITY rust-time "6.7 SBU (including download time; add 6.2 SBU for tests, both using parallelism=8)">
|
---|
[03d537cd] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="rust" xreflabel="rustc-&rust-version;">
|
---|
| 16 | <?dbhtml filename="rust.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Rustc-&rust-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="rust">
|
---|
| 22 | <primary sortas="a-rust">Rust</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Rust</title>
|
---|
| 27 | <para>
|
---|
| 28 | The <application>Rust</application> programming language is designed
|
---|
| 29 | to be a safe, concurrent, practical language.
|
---|
| 30 | </para>
|
---|
| 31 |
|
---|
[25997c4a] | 32 | <para>
|
---|
| 33 | This package is updated on a six-weekly release cycle. Because it is
|
---|
[ec2353a] | 34 | such a large and slow package to build, is at the moment only required
|
---|
| 35 | by a few packages in this book, and particularly because newer versions
|
---|
| 36 | tend to break older mozilla packages, the BLFS editors take the view that
|
---|
| 37 | it should only be updated when that is necessary (either to fix problems,
|
---|
| 38 | or to allow a new version of a package to build).
|
---|
[25997c4a] | 39 | </para>
|
---|
| 40 |
|
---|
[03d537cd] | 41 | <para>
|
---|
| 42 | As with many other programming languages, rustc (the rust compiler)
|
---|
[97e7219] | 43 | needs a binary from which to bootstrap. It will download a stage0
|
---|
| 44 | binary at the start of the build, so you cannot compile it without an
|
---|
| 45 | Internet connection.
|
---|
[25997c4a] | 46 | </para>
|
---|
| 47 |
|
---|
| 48 | <note>
|
---|
| 49 | <para>
|
---|
[d396c65] | 50 | Although BLFS usually installs in <filename
|
---|
| 51 | class="directory">/usr</filename>, when you later upgrade to a newer
|
---|
| 52 | version of <application>rust</application> the old libraries in <filename
|
---|
| 53 | class="directory">/usr/lib/rustlib</filename> will remain, with various
|
---|
| 54 | hashes in their names, but will not be usable and will waste space. The
|
---|
| 55 | editors recommend placing the files in the <filename
|
---|
| 56 | class="directory">/opt</filename> directory. In particular, if you
|
---|
| 57 | have reason to rebuild with a modified configuration (e.g. using the
|
---|
[e7c8506a] | 58 | shipped LLVM after building with shared LLVM, perhaps to compile crates
|
---|
[ca97a2a] | 59 | for architectures which the BLFS LLVM build does not support)
|
---|
[e7c8506a] | 60 | it is possible for the install to leave a broken
|
---|
[d396c65] | 61 | <command>cargo</command> program. In such a situation, either remove
|
---|
| 62 | the existing installation first, or use a different prefix such as
|
---|
| 63 | /opt/rustc-&rust-version;-build2.
|
---|
[25997c4a] | 64 | </para>
|
---|
[b05ea0b] | 65 |
|
---|
| 66 | <para>
|
---|
[d396c65] | 67 | If you prefer, you can of course change the prefix to <filename
|
---|
[97e7219] | 68 | class="directory">/usr</filename>.
|
---|
[b05ea0b] | 69 | </para>
|
---|
[25997c4a] | 70 | </note>
|
---|
| 71 |
|
---|
[03d537cd] | 72 | <para>
|
---|
| 73 | The current <application>rustbuild</application> build-system will use
|
---|
[bf5fb94] | 74 | all processors, although it does not scale well and often falls
|
---|
[03d537cd] | 75 | back to just using one core while waiting for a library to compile.
|
---|
[5ce1bdb] | 76 | However it can be mostly limited to a specified number of processors by
|
---|
| 77 | a combination of adding the switch <literal>--jobs <N></literal>
|
---|
| 78 | (e.g. '--jobs 4' to limit to 4 processors) on each invocation of
|
---|
[808aeec] | 79 | <command>python3 x.py</command> <emphasis>and</emphasis> using an
|
---|
[5ce1bdb] | 80 | environment variable <envar>CARGO_BUILD_JOBS=<N></envar>. At the
|
---|
| 81 | moment this is not effective when some of the rustc tests are run.
|
---|
[03d537cd] | 82 | </para>
|
---|
| 83 |
|
---|
[bf5fb94] | 84 | <para>
|
---|
| 85 | The current version of rust's num_cpus crate now recognizes that cgroups
|
---|
| 86 | can be used to restrict which processors it is allowed to use. So if your
|
---|
[3d516cf] | 87 | machine lacks DRAM (typically, less than 2 GB DRAM per core) that might be
|
---|
[bf5fb94] | 88 | an alternative to taking CPUs offline.
|
---|
[b6d54494] | 89 | Read <xref linkend='build-in-cgroup'/> for how to use a cgroup.
|
---|
[bf5fb94] | 90 | </para>
|
---|
| 91 |
|
---|
[03d537cd] | 92 | <para>
|
---|
| 93 | At the moment <application>Rust</application> does not provide any
|
---|
[4c6edac] | 94 | guarantees of a stable ABI.
|
---|
[03d537cd] | 95 | </para>
|
---|
| 96 |
|
---|
[326f830] | 97 | <note>
|
---|
[7d259126] | 98 | <para>
|
---|
| 99 | Rustc defaults to building for ALL supported architectures, using a
|
---|
[4f8ca94] | 100 | shipped copy of LLVM. In BLFS the build is only for the X86
|
---|
[925dbb2a] | 101 | architecture.
|
---|
[d396c65] | 102 | If you intend to develop rust crates, this build may not be good
|
---|
[b05ea0b] | 103 | enough for your purposes.
|
---|
[7d259126] | 104 | </para>
|
---|
[326f830] | 105 | <para>
|
---|
[4f9e45d9] | 106 | The build times of this version when repeated on the same machine are
|
---|
| 107 | often reasonably consistent, but as with all compilations using
|
---|
| 108 | <command>rustc</command> there can be some very slow outliers.
|
---|
[326f830] | 109 | </para>
|
---|
| 110 | </note>
|
---|
| 111 |
|
---|
[d4dc5bae] | 112 | &lfs122_checked;
|
---|
[03d537cd] | 113 |
|
---|
| 114 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 115 | <itemizedlist spacing="compact">
|
---|
| 116 | <listitem>
|
---|
| 117 | <para>
|
---|
| 118 | Download (HTTP): <ulink url="&rust-download-http;"/>
|
---|
| 119 | </para>
|
---|
| 120 | </listitem>
|
---|
| 121 | <listitem>
|
---|
| 122 | <para>
|
---|
| 123 | Download (FTP): <ulink url="&rust-download-ftp;"/>
|
---|
| 124 | </para>
|
---|
| 125 | </listitem>
|
---|
| 126 | <listitem>
|
---|
| 127 | <para>
|
---|
| 128 | Download MD5 sum: &rust-md5sum;
|
---|
| 129 | </para>
|
---|
| 130 | </listitem>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>
|
---|
| 133 | Download size: &rust-size;
|
---|
| 134 | </para>
|
---|
| 135 | </listitem>
|
---|
| 136 | <listitem>
|
---|
| 137 | <para>
|
---|
| 138 | Estimated disk space required: &rust-buildsize;
|
---|
| 139 | </para>
|
---|
| 140 | </listitem>
|
---|
| 141 | <listitem>
|
---|
| 142 | <para>
|
---|
| 143 | Estimated build time: &rust-time;
|
---|
| 144 | </para>
|
---|
| 145 | </listitem>
|
---|
| 146 | </itemizedlist>
|
---|
[e1fe4a2] | 147 | <!-- only keep this here for reuse in case we need a patch
|
---|
[948ffd7b] | 148 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[d7e8f67] | 149 | <itemizedlist spacing="compact">
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>
|
---|
[948ffd7b] | 152 | Optional patch (recommended if running the test suite):
|
---|
| 153 | <ulink url="&patch-root;/rustc-&rust-version;-testsuite_fix-1.patch"/>
|
---|
[d7e8f67] | 154 | </para>
|
---|
| 155 | </listitem>
|
---|
[948ffd7b] | 156 | </itemizedlist>
|
---|
[e1fe4a2] | 157 | -->
|
---|
[03d537cd] | 158 | <bridgehead renderas="sect3">Rust Dependencies</bridgehead>
|
---|
| 159 |
|
---|
| 160 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 161 | <para role="required">
|
---|
[e59834d] | 162 | <xref linkend="cmake"/> and
|
---|
| 163 | <!-- Required for downloading stage 0 binaries.
|
---|
| 164 | Otherwise it's recommended (if not installed, a vendored copy
|
---|
| 165 | will be built). -->
|
---|
| 166 | <xref linkend="curl"/>
|
---|
[03d537cd] | 167 | </para>
|
---|
| 168 |
|
---|
[afb71d0a] | 169 | &build-use-internet;
|
---|
| 170 |
|
---|
[69d1a8e] | 171 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[a7b1bddc] | 172 | <para role="recommended">
|
---|
[45b2abd3] | 173 | <xref linkend="libssh2"/>,
|
---|
[0daaefc8] | 174 | <xref linkend="llvm"/>
|
---|
[cbfa153] | 175 | (built with -D LLVM_LINK_LLVM_DYLIB=ON so that rust can link to
|
---|
[45b2abd3] | 176 | system LLVM instead of building its shipped version), and
|
---|
| 177 | <xref linkend="sqlite"/>
|
---|
[69d1a8e] | 178 | </para>
|
---|
[a7b1bddc] | 179 |
|
---|
[f2ae6ba8] | 180 | <note>
|
---|
| 181 | <para>
|
---|
| 182 | If a recommended dependency is not installed, a shipped copy in the
|
---|
| 183 | Rustc source tarball will be built and used.
|
---|
| 184 | </para>
|
---|
| 185 | </note>
|
---|
| 186 |
|
---|
[03d537cd] | 187 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 188 | <para role="optional">
|
---|
[08b315d] | 189 | <xref linkend="gdb"/> (used by the test suite if it is present),
|
---|
[948ffd7b] | 190 | <xref linkend="git"/> (required by the test suite),
|
---|
| 191 | <ulink url="https://github.com/bytecodealliance/wasmtime/tree/main/cranelift">cranelift</ulink>,
|
---|
| 192 | <ulink url="https://jemalloc.net/">jemalloc</ulink>,
|
---|
| 193 | libgccjit (read command explanation in
|
---|
| 194 | <xref role="nodep" linkend="gcc"/>), and
|
---|
[13d9cb6a] | 195 | <ulink url='https://libgit2.org/'>libgit2</ulink>
|
---|
[03d537cd] | 196 | </para>
|
---|
| 197 |
|
---|
| 198 | <para condition="html" role="usernotes">
|
---|
[42ddc30] | 199 | Editor Notes: <ulink url="&blfs-wiki;/rust"/>
|
---|
[03d537cd] | 200 | </para>
|
---|
| 201 | </sect2>
|
---|
| 202 |
|
---|
| 203 | <sect2 role="installation">
|
---|
| 204 | <title>Installation of Rust</title>
|
---|
| 205 |
|
---|
| 206 | <para>
|
---|
[d396c65] | 207 | To install into the
|
---|
[7baeffe] | 208 | <filename class="directory">/opt</filename> directory, remove any
|
---|
| 209 | existing <filename>/opt/rustc</filename> symlink
|
---|
[d396c65] | 210 | and create a new directory (i.e. with a different name if trying a
|
---|
[7baeffe] | 211 | modified build of the same version).
|
---|
[4f9e45d9] | 212 | As the <systemitem class="username">root</systemitem>
|
---|
[b05ea0b] | 213 | user:
|
---|
| 214 | </para>
|
---|
| 215 |
|
---|
[29c8a42] | 216 | <screen role="root"><userinput>mkdir -pv /opt/rustc-&rust-version; &&
|
---|
[0bc808c] | 217 | ln -svfn rustc-&rust-version; /opt/rustc</userinput></screen>
|
---|
[b05ea0b] | 218 |
|
---|
| 219 | <note>
|
---|
| 220 | <para>
|
---|
| 221 | If multiple versions of <application>Rust</application> are installed
|
---|
| 222 | in <filename class="directory">/opt</filename>, changing to another
|
---|
| 223 | version only requires changing the <filename> /opt/rustc</filename>
|
---|
| 224 | symbolic link and then running <command>ldconfig</command>.
|
---|
| 225 | </para>
|
---|
| 226 | </note>
|
---|
| 227 |
|
---|
| 228 | <para>
|
---|
| 229 | Create a suitable <filename>config.toml</filename> file which will
|
---|
[4f9e45d9] | 230 | configure the build.
|
---|
[4c6edac] | 231 | </para>
|
---|
| 232 |
|
---|
[272f28b] | 233 | <screen><userinput>cat << EOF > config.toml
|
---|
[51dfb3e] | 234 | <literal># see config.toml.example for more possible options
|
---|
[7baeffe] | 235 | # See the 8.4 book for an old example using shipped LLVM
|
---|
| 236 | # e.g. if not installing clang, or using a version before 13.0
|
---|
| 237 |
|
---|
[948ffd7b] | 238 | # Tell x.py the editors have reviewed the content of this file
|
---|
| 239 | # and updated it to follow the major changes of the building system,
|
---|
| 240 | # so x.py will not warn us to do such a review.
|
---|
[35cfc2e] | 241 | change-id = 125535
|
---|
[7baeffe] | 242 |
|
---|
[4c6edac] | 243 | [llvm]
|
---|
[4f9e45d9] | 244 | # by default, rust will build for a myriad of architectures
|
---|
[25997c4a] | 245 | targets = "X86"
|
---|
[4f9e45d9] | 246 |
|
---|
[7f057ac] | 247 | # When using system llvm prefer shared libraries
|
---|
| 248 | link-shared = true
|
---|
| 249 |
|
---|
[4c6edac] | 250 | [build]
|
---|
[4f9e45d9] | 251 | # omit docs to save time and space (default is to build them)
|
---|
[25997c4a] | 252 | docs = false
|
---|
| 253 |
|
---|
[7baeffe] | 254 | # install extended tools: cargo, clippy, etc
|
---|
[4c6edac] | 255 | extended = true
|
---|
| 256 |
|
---|
[97e7219] | 257 | # Do not query new versions of dependencies online.
|
---|
| 258 | locked-deps = true
|
---|
| 259 |
|
---|
[7baeffe] | 260 | # Specify which extended tools (those from the default install).
|
---|
[24ecd679] | 261 | tools = ["cargo", "clippy", "rustdoc", "rustfmt"]
|
---|
[7baeffe] | 262 |
|
---|
[97e7219] | 263 | # Use the source code shipped in the tarball for the dependencies.
|
---|
| 264 | # The combination of this and the "locked-deps" entry avoids downloading
|
---|
| 265 | # many crates from Internet, and makes the Rustc build more stable.
|
---|
| 266 | vendor = true
|
---|
| 267 |
|
---|
[4c6edac] | 268 | [install]
|
---|
[ff803c4] | 269 | prefix = "/opt/rustc-&rust-version;"
|
---|
| 270 | docdir = "share/doc/rustc-&rust-version;"
|
---|
[326f830] | 271 |
|
---|
| 272 | [rust]
|
---|
[4c6edac] | 273 | channel = "stable"
|
---|
[97e7219] | 274 | description = "for BLFS &version;"
|
---|
[a7b1bddc] | 275 |
|
---|
[948ffd7b] | 276 | # Enable the same optimizations as the official upstream build.
|
---|
| 277 | lto = "thin"
|
---|
| 278 | codegen-units = 1
|
---|
| 279 |
|
---|
[0f7f7c9] | 280 | [target.x86_64-unknown-linux-gnu]
|
---|
| 281 | # NB the output of llvm-config (i.e. help options) may be
|
---|
| 282 | # dumped to the screen when config.toml is parsed.
|
---|
| 283 | llvm-config = "/usr/bin/llvm-config"
|
---|
| 284 |
|
---|
| 285 | [target.i686-unknown-linux-gnu]
|
---|
| 286 | # NB the output of llvm-config (i.e. help options) may be
|
---|
| 287 | # dumped to the screen when config.toml is parsed.
|
---|
[808aeec] | 288 | llvm-config = "/usr/bin/llvm-config"</literal>
|
---|
[4c6edac] | 289 | EOF</userinput></screen>
|
---|
| 290 |
|
---|
[948ffd7b] | 291 | <note>
|
---|
| 292 | <para>
|
---|
| 293 | The <command>python3 x.py</command> commands may output a warning
|
---|
[af2b317] | 294 | message complaining <computeroutput>no codegen-backends
|
---|
[948ffd7b] | 295 | config matched the requested path to build a codegen
|
---|
[af2b317] | 296 | backend</computeroutput>. And the provided
|
---|
[948ffd7b] | 297 | <quote>suggestion</quote> (<computeroutput>add backend to
|
---|
| 298 | codegen-backends in config.toml</computeroutput>) will not silence
|
---|
| 299 | it. This warning is <ulink
|
---|
| 300 | url='https://github.com/rust-lang/rust/issues/110692'>bogus</ulink>
|
---|
| 301 | and it should be ignored.
|
---|
| 302 | </para>
|
---|
| 303 | </note>
|
---|
| 304 |
|
---|
[4c6edac] | 305 | <para>
|
---|
[ec2353a] | 306 | Compile <application>Rust</application> by running the following
|
---|
[03d537cd] | 307 | commands:
|
---|
| 308 | </para>
|
---|
| 309 |
|
---|
[ca97a2a] | 310 | <!-- fixed in 1.58.0, retain as a reminder that fixed crates can be used
|
---|
[e7c8506a] | 311 | <screen><userinput>sed -i -e '/^curl /s/0.4.38/0.4.40/' \
|
---|
| 312 | -e '/^curl-sys /s/0.4.48/0.4.50/' \
|
---|
[ca97a2a] | 313 | src/tools/cargo/Cargo.toml && -->
|
---|
[e7c8506a] | 314 |
|
---|
[7baeffe] | 315 | <screen><userinput>{ [ ! -e /usr/include/libssh2.h ] ||
|
---|
[45b2abd3] | 316 | export LIBSSH2_SYS_USE_PKG_CONFIG=1; } &&
|
---|
| 317 | { [ ! -e /usr/include/sqlite3.h ] ||
|
---|
| 318 | export LIBSQLITE3_SYS_USE_PKG_CONFIG=1; } &&
|
---|
[808aeec] | 319 | python3 x.py build</userinput></screen>
|
---|
[a7b1bddc] | 320 |
|
---|
[6bcd464] | 321 | <note>
|
---|
[a7b1bddc] | 322 | <para>
|
---|
[48771ae] | 323 | The test suite will generate some messages in the
|
---|
[a7b1bddc] | 324 | <phrase revision="sysv">system log</phrase>
|
---|
| 325 | <phrase revision="systemd">systemd journal</phrase>
|
---|
[6bcd464] | 326 | for traps on invalid opcodes, and for segmentation faults.
|
---|
[25997c4a] | 327 | In themselves these are nothing to worry about, just a way for the
|
---|
[4f9e45d9] | 328 | test to be terminated.
|
---|
[a7b1bddc] | 329 | </para>
|
---|
[6bcd464] | 330 | </note>
|
---|
[a7b1bddc] | 331 |
|
---|
[03d537cd] | 332 | <para>
|
---|
[7baeffe] | 333 | To run the tests (again using all available CPUs) issue:
|
---|
[03d537cd] | 334 | </para>
|
---|
[f15d31df] | 335 |
|
---|
[f764a88] | 336 | <screen remap="test"><userinput>SSL_CERT_DIR=/etc/ssl/certs \
|
---|
[35cfc2e] | 337 | python3 x.py test --verbose --no-fail-fast --keep-stage-std=1 | \
|
---|
| 338 | tee rustc-testlog</userinput></screen>
|
---|
[0c1c573] | 339 |
|
---|
[35cfc2e] | 340 | <!-- Both "unused import: `std::io::BufRead`"
|
---|
| 341 | Test suite internal issues and the unused imports are removed in
|
---|
| 342 | https://github.com/rust-lang/rust/pull/126097. -->
|
---|
[d6b169d] | 343 | <para>
|
---|
[c84b816d] | 344 | Three tests named <filename>tests/run-make/print-cfg</filename>,
|
---|
| 345 | <filename>tests/run-make/print-to-output</filename>, and
|
---|
| 346 | <literal>core::config::tests::download_ci_llvm</literal> are known to
|
---|
| 347 | fail.
|
---|
[35cfc2e] | 348 | </para>
|
---|
[ebffd4b] | 349 |
|
---|
[32a3136] | 350 | <!-- Let's just comment this out. Nobody has tested on a system w/o
|
---|
| 351 | FileCheck for a long time.
|
---|
[03d537cd] | 352 | <para>
|
---|
[7baeffe] | 353 | If <command>FileCheck</command> from <application>LLVM</application> has
|
---|
| 354 | not been installed, all 47 tests from the <quote>assembly</quote> suite
|
---|
| 355 | will fail.
|
---|
[925dbb2a] | 356 | </para>
|
---|
[32a3136] | 357 | -->
|
---|
[925dbb2a] | 358 | <para>
|
---|
[ebffd4b] | 359 | As with all large test suites, some tests might fail on some machines -
|
---|
[320d985] | 360 | if the number of additional failures is low,
|
---|
[ca97a2a] | 361 | check the log for 'failures:' and review lines above that, particularly the
|
---|
[4f9e45d9] | 362 | 'stderr:' lines. Any mention of
|
---|
[4cc77fbd] | 363 | SIGSEGV or signal 11 in a failing test is a cause for concern.
|
---|
[25997c4a] | 364 | </para>
|
---|
| 365 |
|
---|
[b6ff745e] | 366 | <para>
|
---|
[69d1a8e] | 367 | If you get any <emphasis>other</emphasis> failing test which reports an
|
---|
| 368 | issue number then you should search for that issue. For example, when
|
---|
[bf5fb94] | 369 | rustc >= 1.41.1 was built with a version of sysllvm before 10.0 the test
|
---|
[925dbb2a] | 370 | for issue 69225 failed <ulink
|
---|
[69d1a8e] | 371 | url="https://github.com/rust-lang/rust/issues/69225"/> and that should be
|
---|
[0f7f7c9] | 372 | regarded as a critical failure (they released 1.41.1 because of it).
|
---|
[69d1a8e] | 373 | Most other failures will not be critical.
|
---|
| 374 | </para>
|
---|
| 375 |
|
---|
| 376 | <para>
|
---|
[bf5fb94] | 377 | Therefore, you should determine the number of failures.
|
---|
[7baeffe] | 378 | The number of tests which passed and failed can be found by running:
|
---|
[03d537cd] | 379 | </para>
|
---|
| 380 |
|
---|
[7baeffe] | 381 | <!-- split into two lines for narrower screen windows -->
|
---|
| 382 | <screen remap="test"><userinput>grep '^test result:' rustc-testlog |
|
---|
| 383 | awk '{sum1 += $4; sum2 += $6} END { print sum1 " passed; " sum2 " failed" }'</userinput></screen>
|
---|
[03d537cd] | 384 |
|
---|
[4c6edac] | 385 | <para>
|
---|
[7baeffe] | 386 | The other available fields are $8 for those which were ignored
|
---|
| 387 | (i.e. skipped), $10 for 'measured' and $12 for 'filtered out' but both
|
---|
| 388 | those last two are probably zero.
|
---|
[4c6edac] | 389 | </para>
|
---|
| 390 |
|
---|
| 391 | <para>
|
---|
[97e7219] | 392 | Now, as the &root; user, install the package:
|
---|
[4c6edac] | 393 | </para>
|
---|
| 394 |
|
---|
[642fdb7] | 395 | <note>
|
---|
| 396 | <para>
|
---|
| 397 | If <command>sudo</command> or <command>su</command> is invoked for
|
---|
| 398 | switching to the &root; user, ensure
|
---|
[45b2abd3] | 399 | <envar>LIBSSH2_SYS_USE_PKG_CONFIG</envar> and
|
---|
| 400 | <envar>LIBSQLITE3_SYS_USE_PKG_CONFIG</envar> are correctly passed or
|
---|
| 401 | the following command may rebuild <command>cargo</command> with
|
---|
| 402 | shipped copies of libssh2 and sqlite. For <command>sudo</command>,
|
---|
| 403 | use the
|
---|
| 404 | <option>--preserve-env=LIB{SSH2,SQLITE3}_SYS_USE_PKG_CONFIG</option>
|
---|
| 405 | option. For <command>su</command>, do <emphasis>not</emphasis> use
|
---|
| 406 | the <option>-</option> or <option>--login</option> options.
|
---|
[642fdb7] | 407 | </para>
|
---|
| 408 | </note>
|
---|
| 409 |
|
---|
[c1325868] | 410 | <screen role='root'><userinput>python3 x.py install rustc std &&
|
---|
[35cfc2e] | 411 | install -vm755 \
|
---|
| 412 | build/host/stage1-tools/*/*/{cargo{,-clippy,-fmt},clippy-driver,rustfmt} \
|
---|
| 413 | /opt/rustc-&rust-version;/bin &&</userinput>
|
---|
| 414 | install -vDm644 \
|
---|
| 415 | src/tools/cargo/src/etc/_cargo \
|
---|
| 416 | /opt/rustc-&rust-version;/share/zsh/site-functions/_cargo &&
|
---|
| 417 | install -vm644 src/tools/cargo/src/etc/man/* \
|
---|
[2104796d] | 418 | /opt/rustc-&rust-version;/share/man/man1</screen>
|
---|
[a7b1bddc] | 419 |
|
---|
[00e0c9cc] | 420 | <para>
|
---|
[2104796d] | 421 | Still as the &root; user, fix the installation of documentation
|
---|
[e1fe4a2] | 422 | and symlink a <application>Zsh</application>
|
---|
[c407a61f] | 423 | completion file into the correct location:
|
---|
| 424 | </para>
|
---|
| 425 |
|
---|
[e1fe4a2] | 426 | <screen role='root'><userinput>rm -fv /opt/rustc-&rust-version;/share/doc/rustc-&rust-version;/*.old &&
|
---|
| 427 | install -vm644 README.md \
|
---|
| 428 | /opt/rustc-&rust-version;/share/doc/rustc-&rust-version; &&
|
---|
| 429 |
|
---|
| 430 | install -vdm755 /usr/share/zsh/site-functions &&
|
---|
[c407a61f] | 431 | ln -sfv /opt/rustc/share/zsh/site-functions/_cargo \
|
---|
| 432 | /usr/share/zsh/site-functions</userinput></screen>
|
---|
| 433 |
|
---|
[d5b06a4] | 434 | <para>
|
---|
[45b2abd3] | 435 | Finally, unset the exported environment variables:
|
---|
[d5b06a4] | 436 | </para>
|
---|
| 437 |
|
---|
[45b2abd3] | 438 | <screen><userinput>unset LIB{SSH2,SQLITE3}_SYS_USE_PKG_CONFIG</userinput></screen>
|
---|
[d5b06a4] | 439 |
|
---|
[03d537cd] | 440 | </sect2>
|
---|
| 441 |
|
---|
| 442 | <sect2 role="commands">
|
---|
[c87567a] | 443 | <title>Command Explanations</title>
|
---|
[03d537cd] | 444 |
|
---|
| 445 | <para>
|
---|
[d396c65] | 446 | <command>ln -svfn rustc-&rust-version; /opt/rustc</command>: if this is
|
---|
| 447 | not the first use of the <filename class="directory">/opt/rustc</filename>
|
---|
| 448 | symlink, overwrite it by forcing, and use the '-n' flag to avoid getting
|
---|
| 449 | confusing results from e.g. <command>ls -l</command>.
|
---|
| 450 | </para>
|
---|
| 451 |
|
---|
| 452 | <para>
|
---|
[0c1c573] | 453 | <literal>targets = "X86"</literal>: this avoids building all the available
|
---|
[97e7219] | 454 | linux cross-compilers (AArch64, MIPS, PowerPC, SystemZ, etc). Unfortunately,
|
---|
[a7b1bddc] | 455 | rust insists on installing source files for these below
|
---|
[21699c7e] | 456 | <filename class="directory">/opt/rustc/lib/src</filename>.
|
---|
[03d537cd] | 457 | </para>
|
---|
| 458 |
|
---|
| 459 | <para>
|
---|
[0c1c573] | 460 | <literal>extended = true</literal>: this installs several tools
|
---|
[97e7219] | 461 | (specified by the <literal>tools</literal> entry) alongside
|
---|
| 462 | <command>rustc</command>.
|
---|
[03d537cd] | 463 | </para>
|
---|
| 464 |
|
---|
[7baeffe] | 465 | <para>
|
---|
[0c1c573] | 466 | <literal>tools = ["cargo", "clippy", "rustdoc", "rustfmt"]</literal>:
|
---|
[24ecd679] | 467 | only build the tools from the 'default' profile in binary command
|
---|
| 468 | <command>rustup</command> which are recommended for most users.
|
---|
| 469 | The other tools are unlikely to be useful unless using (old) code
|
---|
| 470 | analyzers or editing the standard library.
|
---|
[7baeffe] | 471 | </para>
|
---|
| 472 |
|
---|
[03d537cd] | 473 | <para>
|
---|
[0c1c573] | 474 | <literal>channel = "stable"</literal>: this ensures only stable features
|
---|
[4c6edac] | 475 | can be used, the default in <filename>config.toml</filename> is to use
|
---|
| 476 | development features, which is not appropriate for a released version.
|
---|
[03d537cd] | 477 | </para>
|
---|
| 478 |
|
---|
[5f1b4b5] | 479 | <!-- comment while using shipped LLVM -->
|
---|
[a7b1bddc] | 480 | <para>
|
---|
[0c1c573] | 481 | <literal>[target.x86_64-unknown-linux-gnu]</literal>: the syntax of
|
---|
[a7b1bddc] | 482 | <filename>config.toml</filename> requires an <literal>llvm-config</literal>
|
---|
| 483 | entry for each target for which system-llvm is to be used. Change the target
|
---|
| 484 | to <literal>[target.i686-unknown-linux-gnu]</literal> if you are building
|
---|
| 485 | on 32-bit x86. This whole section may be omitted if you wish to build
|
---|
| 486 | against the shipped llvm, or do not have clang, but the resulting build will
|
---|
[7d259126] | 487 | be larger and take longer.
|
---|
[5f1b4b5] | 488 | </para>
|
---|
[a7b1bddc] | 489 |
|
---|
[ca97a2a] | 490 | <!--<para>
|
---|
[e7c8506a] | 491 | <command>sed -i -e '/^curl /s/0.4.38/0.4.40/' ... </command>: two crates
|
---|
| 492 | normally downloaded for this release do not correctly initialise
|
---|
| 493 | <application>curl</application> if using
|
---|
| 494 | <application>openssl-3.0.0</application>. Upstream has fixed that for a
|
---|
| 495 | future release, this sed causes the fixed versions to be used.
|
---|
[ca97a2a] | 496 | </para>-->
|
---|
[e7c8506a] | 497 |
|
---|
[7baeffe] | 498 | <!-- https://github.com/alexcrichton/ssh2-rs/issues/173 -->
|
---|
[bb0652ca] | 499 | <para>
|
---|
[7baeffe] | 500 | <command>export LIBSSH2_SYS_USE_PKG_CONFIG=1</command>: Allow
|
---|
| 501 | <command>cargo</command> to link to system libssh2.
|
---|
| 502 | </para>
|
---|
| 503 |
|
---|
[45b2abd3] | 504 | <!-- src/tools/cargo/Cargo.toml is specifying "bundled" as the
|
---|
| 505 | upstream is suggesting to avoid issues building for Windoge.
|
---|
| 506 | We don't care about Windoge so override this if we have
|
---|
| 507 | system sqlite3. -->
|
---|
| 508 | <para>
|
---|
[0d411ad] | 509 | <command>export LIBSQLITE3_SYS_USE_PKG_CONFIG=1</command>: Allow
|
---|
[45b2abd3] | 510 | <command>cargo</command> to link to system sqlite.
|
---|
| 511 | </para>
|
---|
| 512 |
|
---|
[7baeffe] | 513 | <!--<para>
|
---|
[bb0652ca] | 514 | <command>export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"</command>:
|
---|
| 515 | This adds a link to libffi to any RUSTFLAGS you may already be passing
|
---|
| 516 | to the build. On some systems, linking fails to include libffi unless
|
---|
| 517 | this is used. The reason why this is needed is not clear.
|
---|
[7baeffe] | 518 | 2023-01-14 : assumed to be no longer needed, but it is some years
|
---|
| 519 | since one person reported needing this, keep it commented for the moment.
|
---|
| 520 | </para>-->
|
---|
[bb0652ca] | 521 |
|
---|
[0c1c573] | 522 | <!-- https://github.com/alexcrichton/openssl-probe/issues/25 -->
|
---|
| 523 | <para>
|
---|
| 524 | <envar>SSL_CERT_DIR=/etc/ssl/certs</envar>: Work around an issue
|
---|
| 525 | causing test failures with the CA certificate store layout used by
|
---|
| 526 | <xref linkend='make-ca'/>.
|
---|
| 527 | </para>
|
---|
| 528 |
|
---|
[03d537cd] | 529 | <para>
|
---|
[0c1c573] | 530 | <parameter>--verbose</parameter>: this switch can sometimes provide more
|
---|
[4c6edac] | 531 | information about a test which fails.
|
---|
[03d537cd] | 532 | </para>
|
---|
[4c6edac] | 533 |
|
---|
| 534 | <para>
|
---|
[0c1c573] | 535 | <parameter>--no-fail-fast</parameter>: this switch ensures that the test suite
|
---|
[4c6edac] | 536 | will not stop at the first error.
|
---|
| 537 | </para>
|
---|
| 538 |
|
---|
[c1325868] | 539 | <para>
|
---|
[35cfc2e] | 540 | <parameter>--keep-stage-std 1</parameter>: this switch prevents
|
---|
| 541 | <command>x.py test</command> from rebuilding the entire package for
|
---|
| 542 | some unknown reason.
|
---|
| 543 | </para>
|
---|
| 544 |
|
---|
| 545 | <!-- https://github.com/rust-lang/rust/issues/94147
|
---|
| 546 | Do a manual installation for these 5 binaries for 1.80.0, the
|
---|
| 547 | build system insists to rebuild them even with this.
|
---|
| 548 | <para>
|
---|
| 549 | <parameter>- -stage=1</parameter>: this switch works around an issue
|
---|
[c1325868] | 550 | causing some Rustc components unnecessarily rebuilt running
|
---|
| 551 | <command>python3 x.py install</command>.
|
---|
[35cfc2e] | 552 | </para>-->
|
---|
| 553 |
|
---|
| 554 | <para>
|
---|
| 555 | <command>install ... /opt/rustc-&rust-version;/...</command>:
|
---|
[67b1fd43] | 556 | these commands explicitly install some Rust components. They are
|
---|
[35cfc2e] | 557 | used instead of relying on <command>x.py install</command> because the
|
---|
| 558 | latter would rebuild these components for some unknown reason.
|
---|
[c1325868] | 559 | </para>
|
---|
| 560 |
|
---|
[03d537cd] | 561 | </sect2>
|
---|
| 562 |
|
---|
[b05ea0b] | 563 | <sect2 role="configuration">
|
---|
| 564 | <title>Configuring Rust</title>
|
---|
| 565 |
|
---|
| 566 | <sect3 id="rustc-config">
|
---|
| 567 | <title>Configuration Information</title>
|
---|
| 568 |
|
---|
| 569 | <para>
|
---|
| 570 | If you installed <application>rustc</application> in
|
---|
| 571 | <filename class="directory">/opt</filename>, you need to update the
|
---|
[de33b2a] | 572 | following configuration files so that <application>rustc</application>
|
---|
| 573 | is correctly found by other packages and system processes.
|
---|
[b05ea0b] | 574 | </para>
|
---|
| 575 |
|
---|
| 576 | <para>
|
---|
| 577 | As the <systemitem class="username">root</systemitem> user, create
|
---|
| 578 | the <filename>/etc/profile.d/rustc.sh</filename> file:
|
---|
| 579 | </para>
|
---|
| 580 |
|
---|
| 581 | <screen role="root"><userinput>cat > /etc/profile.d/rustc.sh << "EOF"
|
---|
| 582 | <literal># Begin /etc/profile.d/rustc.sh
|
---|
| 583 |
|
---|
| 584 | pathprepend /opt/rustc/bin PATH
|
---|
| 585 |
|
---|
| 586 | # End /etc/profile.d/rustc.sh</literal>
|
---|
| 587 | EOF</userinput></screen>
|
---|
| 588 |
|
---|
[de33b2a] | 589 | <para>
|
---|
[8558044] | 590 | Immediately after installation, update the current PATH
|
---|
[de33b2a] | 591 | for your current shell as a normal user:
|
---|
| 592 | </para>
|
---|
[b05ea0b] | 593 |
|
---|
| 594 | <screen><userinput>source /etc/profile.d/rustc.sh</userinput></screen>
|
---|
| 595 |
|
---|
| 596 | </sect3>
|
---|
| 597 | </sect2>
|
---|
| 598 |
|
---|
| 599 |
|
---|
[03d537cd] | 600 | <sect2 role="content">
|
---|
| 601 | <title>Contents</title>
|
---|
| 602 |
|
---|
| 603 | <segmentedlist>
|
---|
[78399edc] | 604 | <segtitle>Installed Programs</segtitle>
|
---|
| 605 | <segtitle>Installed Libraries</segtitle>
|
---|
| 606 | <segtitle>Installed Directories</segtitle>
|
---|
[03d537cd] | 607 |
|
---|
[c87567a] | 608 | <seglistitem>
|
---|
[03d537cd] | 609 | <seg>
|
---|
[7baeffe] | 610 | cargo-clippy, cargo-fmt, cargo, clippy-driver, rust-gdb,
|
---|
[bf4b5fc] | 611 | rust-gdbgui, rust-lldb, rustc, rustdoc, and rustfmt
|
---|
[03d537cd] | 612 | </seg>
|
---|
| 613 | <seg>
|
---|
[3e8c126] | 614 | librustc-driver-<16-byte-hash>.so,
|
---|
| 615 | libstd-<16-byte-hash>.so, and
|
---|
| 616 | libtest-<16-byte-hash>.so
|
---|
[03d537cd] | 617 | </seg>
|
---|
| 618 | <seg>
|
---|
| 619 | ~/.cargo,
|
---|
[3e8c126] | 620 | /opt/rustc, symbolic link to
|
---|
| 621 | /opt/rustc-&rust-version;
|
---|
[03d537cd] | 622 | </seg>
|
---|
| 623 | </seglistitem>
|
---|
| 624 | </segmentedlist>
|
---|
| 625 |
|
---|
| 626 | <variablelist>
|
---|
| 627 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 628 | <?dbfo list-presentation="list"?>
|
---|
| 629 | <?dbhtml list-presentation="table"?>
|
---|
| 630 |
|
---|
[7d259126] | 631 | <varlistentry id="cargo-clippy">
|
---|
| 632 | <term><command>cargo-clippy</command></term>
|
---|
| 633 | <listitem>
|
---|
| 634 | <para>
|
---|
[4c24eb0a] | 635 | provides lint checks for a cargo package
|
---|
[7d259126] | 636 | </para>
|
---|
| 637 | <indexterm zone="rust cargo-clippy">
|
---|
| 638 | <primary sortas="b-cargo-clippy">cargo-clippy</primary>
|
---|
| 639 | </indexterm>
|
---|
| 640 | </listitem>
|
---|
| 641 | </varlistentry>
|
---|
| 642 |
|
---|
[a7b1bddc] | 643 | <varlistentry id="cargo-fmt">
|
---|
| 644 | <term><command>cargo-fmt</command></term>
|
---|
| 645 | <listitem>
|
---|
| 646 | <para>
|
---|
| 647 | formats all bin and lib files of the current crate using
|
---|
[4c24eb0a] | 648 | rustfmt
|
---|
[a7b1bddc] | 649 | </para>
|
---|
| 650 | <indexterm zone="rust cargo-fmt">
|
---|
| 651 | <primary sortas="b-cargo-fmt">cargo-fmt</primary>
|
---|
| 652 | </indexterm>
|
---|
| 653 | </listitem>
|
---|
| 654 | </varlistentry>
|
---|
| 655 |
|
---|
[7baeffe] | 656 | <!-- <varlistentry id="cargo-miri">
|
---|
[4f9e45d9] | 657 | <term><command>cargo-miri</command></term>
|
---|
| 658 | <listitem>
|
---|
| 659 | <para>
|
---|
[bf4b5fc] | 660 | is for use by Miri to interpret bin crates and tests. It is
|
---|
| 661 | not installed by default.
|
---|
[4f9e45d9] | 662 | </para>
|
---|
| 663 | <indexterm zone="rust cargo-miri">
|
---|
| 664 | <primary sortas="b-cargo-miri">cargo-miri</primary>
|
---|
| 665 | </indexterm>
|
---|
| 666 | </listitem>
|
---|
[7baeffe] | 667 | </varlistentry>-->
|
---|
[4f9e45d9] | 668 |
|
---|
[4c6edac] | 669 | <varlistentry id="cargo">
|
---|
| 670 | <term><command>cargo</command></term>
|
---|
| 671 | <listitem>
|
---|
| 672 | <para>
|
---|
[4c24eb0a] | 673 | is the Package Manager for Rust
|
---|
[4c6edac] | 674 | </para>
|
---|
| 675 | <indexterm zone="rust cargo">
|
---|
| 676 | <primary sortas="b-cargo">cargo</primary>
|
---|
| 677 | </indexterm>
|
---|
| 678 | </listitem>
|
---|
| 679 | </varlistentry>
|
---|
| 680 |
|
---|
[7d259126] | 681 | <varlistentry id="clippy-driver">
|
---|
| 682 | <term><command>clippy-driver</command></term>
|
---|
| 683 | <listitem>
|
---|
| 684 | <para>
|
---|
[4c24eb0a] | 685 | provides lint checks for Rust
|
---|
[7d259126] | 686 | </para>
|
---|
| 687 | <indexterm zone="rust clippy-driver">
|
---|
| 688 | <primary sortas="b-clippy-driver">clippy-driver</primary>
|
---|
| 689 | </indexterm>
|
---|
| 690 | </listitem>
|
---|
| 691 | </varlistentry>
|
---|
| 692 |
|
---|
[7baeffe] | 693 | <!-- <varlistentry id="miri">
|
---|
[4f9e45d9] | 694 | <term><command>miri</command></term>
|
---|
| 695 | <listitem>
|
---|
| 696 | <para>
|
---|
| 697 | is an interpreter for Rust's mid-level intermediate representation
|
---|
[bf4b5fc] | 698 | (MIR). It is not installed by default.
|
---|
[4f9e45d9] | 699 | </para>
|
---|
| 700 | <indexterm zone="rust miri">
|
---|
| 701 | <primary sortas="b-miri">miri</primary>
|
---|
| 702 | </indexterm>
|
---|
| 703 | </listitem>
|
---|
| 704 | </varlistentry>
|
---|
| 705 |
|
---|
[326f830] | 706 | <varlistentry id="rls">
|
---|
| 707 | <term><command>rls</command></term>
|
---|
| 708 | <listitem>
|
---|
| 709 | <para>
|
---|
| 710 | is the Rust Language Server. This can run in the background to
|
---|
| 711 | provide IDEs, editors, and other tools with information about Rust
|
---|
[4c24eb0a] | 712 | programs
|
---|
[326f830] | 713 | </para>
|
---|
| 714 | <indexterm zone="rust rls">
|
---|
| 715 | <primary sortas="b-rls">rls</primary>
|
---|
| 716 | </indexterm>
|
---|
| 717 | </listitem>
|
---|
| 718 | </varlistentry>
|
---|
| 719 |
|
---|
[f78dbb74] | 720 | <varlistentry id="rust-analyzer">
|
---|
| 721 | <term><command>rust-analyzer</command></term>
|
---|
| 722 | <listitem>
|
---|
| 723 | <para>
|
---|
| 724 | is an implementation of Language Server Protocol for the Rust
|
---|
| 725 | programming language.
|
---|
| 726 | </para>
|
---|
| 727 | <indexterm zone="rust rust-analyzer">
|
---|
| 728 | <primary sortas="b-rust-analyzer">rust-analyzer</primary>
|
---|
| 729 | </indexterm>
|
---|
| 730 | </listitem>
|
---|
| 731 | </varlistentry>
|
---|
| 732 |
|
---|
[bf4b5fc] | 733 | <varlistentry id="rust-demangler">
|
---|
| 734 | <term><command>rust-demangler</command></term>
|
---|
| 735 | <listitem>
|
---|
| 736 | <para>
|
---|
| 737 | converts a list of Rust mangled symbols into a
|
---|
| 738 | corresponding list of demangled symbols
|
---|
| 739 | </para>
|
---|
| 740 | <indexterm zone="rust rust-demangler">
|
---|
| 741 | <primary sortas="b-rust-demangler">rust-demangler</primary>
|
---|
| 742 | </indexterm>
|
---|
| 743 | </listitem>
|
---|
[7baeffe] | 744 | </varlistentry> -->
|
---|
[bf4b5fc] | 745 |
|
---|
[03d537cd] | 746 | <varlistentry id="rust-gdb">
|
---|
| 747 | <term><command>rust-gdb</command></term>
|
---|
| 748 | <listitem>
|
---|
| 749 | <para>
|
---|
[4c24eb0a] | 750 | is a wrapper script for gdb, pulling in Python pretty-printing
|
---|
| 751 | modules installed in
|
---|
| 752 | <filename class="directory">/opt/rustc-&rust-version;/lib/rustlib/etc</filename>
|
---|
[03d537cd] | 753 | </para>
|
---|
| 754 | <indexterm zone="rust rust-gdb">
|
---|
| 755 | <primary sortas="b-rust-gdb">rust-gdb</primary>
|
---|
| 756 | </indexterm>
|
---|
| 757 | </listitem>
|
---|
| 758 | </varlistentry>
|
---|
| 759 |
|
---|
[ec2353a] | 760 | <varlistentry id="rust-gdbgui">
|
---|
| 761 | <term><command>rust-gdbgui</command></term>
|
---|
| 762 | <listitem>
|
---|
| 763 | <para>
|
---|
| 764 | is a wrapper script for a graphical front end to gdb that runs in a
|
---|
[4c24eb0a] | 765 | browser
|
---|
[ec2353a] | 766 | </para>
|
---|
| 767 | <indexterm zone="rust rust-gdbgui">
|
---|
| 768 | <primary sortas="b-rust-gdbgui">rust-gdbgui</primary>
|
---|
| 769 | </indexterm>
|
---|
| 770 | </listitem>
|
---|
| 771 | </varlistentry>
|
---|
| 772 |
|
---|
[03d537cd] | 773 | <varlistentry id="rust-lldb">
|
---|
| 774 | <term><command>rust-lldb</command></term>
|
---|
| 775 | <listitem>
|
---|
| 776 | <para>
|
---|
[a7b1bddc] | 777 | is a wrapper script for LLDB (the LLVM debugger)
|
---|
[4c24eb0a] | 778 | pulling in the Python pretty-printing modules
|
---|
[03d537cd] | 779 | </para>
|
---|
| 780 | <indexterm zone="rust rust-lldb">
|
---|
| 781 | <primary sortas="b-rust-lldb">rust=lldb</primary>
|
---|
| 782 | </indexterm>
|
---|
| 783 | </listitem>
|
---|
| 784 | </varlistentry>
|
---|
| 785 |
|
---|
| 786 | <varlistentry id="rustc">
|
---|
| 787 | <term><command>rustc</command></term>
|
---|
| 788 | <listitem>
|
---|
| 789 | <para>
|
---|
[4c24eb0a] | 790 | is the rust compiler
|
---|
[03d537cd] | 791 | </para>
|
---|
| 792 | <indexterm zone="rust rustc">
|
---|
| 793 | <primary sortas="b-rustc">rustc</primary>
|
---|
| 794 | </indexterm>
|
---|
| 795 | </listitem>
|
---|
| 796 | </varlistentry>
|
---|
| 797 |
|
---|
| 798 | <varlistentry id="rustdoc">
|
---|
| 799 | <term><command>rustdoc</command></term>
|
---|
| 800 | <listitem>
|
---|
| 801 | <para>
|
---|
[4c24eb0a] | 802 | generates documentation from rust source code
|
---|
[03d537cd] | 803 | </para>
|
---|
| 804 | <indexterm zone="rust rustdoc">
|
---|
| 805 | <primary sortas="b-rustdoc">rustdoc</primary>
|
---|
| 806 | </indexterm>
|
---|
| 807 | </listitem>
|
---|
| 808 | </varlistentry>
|
---|
| 809 |
|
---|
[a7b1bddc] | 810 | <varlistentry id="rustfmt">
|
---|
| 811 | <term><command>rustfmt</command></term>
|
---|
| 812 | <listitem>
|
---|
| 813 | <para>
|
---|
[4c24eb0a] | 814 | formats rust code
|
---|
[a7b1bddc] | 815 | </para>
|
---|
| 816 | <indexterm zone="rust rustfmt">
|
---|
| 817 | <primary sortas="b-rustfmt">rustfmt</primary>
|
---|
| 818 | </indexterm>
|
---|
| 819 | </listitem>
|
---|
| 820 | </varlistentry>
|
---|
| 821 |
|
---|
[03d537cd] | 822 | <varlistentry id="libstd">
|
---|
| 823 | <term><filename class="libraryfile">libstd-<16-byte-hash>.so</filename></term>
|
---|
| 824 | <listitem>
|
---|
| 825 | <para>
|
---|
[4c24eb0a] | 826 | is the Rust Standard Library, the foundation of portable Rust software
|
---|
[03d537cd] | 827 | </para>
|
---|
| 828 | <indexterm zone="rust libstd">
|
---|
| 829 | <primary sortas="c-libstd">libstd-<16-byte-hash>.so</primary>
|
---|
| 830 | </indexterm>
|
---|
| 831 | </listitem>
|
---|
| 832 | </varlistentry>
|
---|
| 833 | </variablelist>
|
---|
| 834 | </sect2>
|
---|
[4c24eb0a] | 835 |
|
---|
[03d537cd] | 836 | </sect1>
|
---|