[03d537cd] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 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 |
|
---|
[614fc25f] | 7 | <!ENTITY rust-download-http "https://static.rust-lang.org/dist/rustc-&rust-version;-src.tar.gz">
|
---|
[d9bcc5f] | 8 | <!ENTITY rust-download-ftp " ">
|
---|
[a7b1bddc] | 9 | <!ENTITY rust-md5sum "d8d4d30c8d0b905f978bee3fdd618db5">
|
---|
| 10 | <!ENTITY rust-size "95 MB">
|
---|
| 11 | <!ENTITY rust-buildsize "5.1 GB (440 MB installed) including 379MB of ~/.cargo files for the user building this and 440MB of files in the DESTDIR (add 1.2GB if running the tests)">
|
---|
| 12 | <!ENTITY rust-time "33 SBU (add 17 SBU for tests, both with 4 processors)">
|
---|
[03d537cd] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="rust" xreflabel="rustc-&rust-version;">
|
---|
| 16 | <?dbhtml filename="rust.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Rustc-&rust-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="rust">
|
---|
| 26 | <primary sortas="a-rust">Rust</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Rust</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | The <application>Rust</application> programming language is designed
|
---|
| 34 | to be a safe, concurrent, practical language.
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
| 37 | <para>
|
---|
| 38 | As with many other programming languages, rustc (the rust compiler)
|
---|
[a7b1bddc] | 39 | needs a binary from which to bootstrap. It will download a stage0 binary
|
---|
| 40 | and many cargo crates (these are actually .tar.gz source archives) at
|
---|
[03d537cd] | 41 | the start of the build, so you cannot compile it without an internet
|
---|
| 42 | connection.
|
---|
| 43 | </para>
|
---|
| 44 |
|
---|
| 45 | <para>
|
---|
| 46 | The current <application>rustbuild</application> build-system will use
|
---|
| 47 | all available processors, although it does not scale well and often falls
|
---|
| 48 | back to just using one core while waiting for a library to compile.
|
---|
| 49 | </para>
|
---|
| 50 |
|
---|
| 51 | <para>
|
---|
| 52 | At the moment <application>Rust</application> does not provide any
|
---|
[4c6edac] | 53 | guarantees of a stable ABI.
|
---|
[03d537cd] | 54 | </para>
|
---|
| 55 |
|
---|
[326f830] | 56 | <note>
|
---|
| 57 | <para>
|
---|
| 58 | Repeated builds of this package on the same machine show a wide range
|
---|
| 59 | of build times. Some of this might be due to variations in downloading
|
---|
| 60 | the required cargo files if they are not already present, but this does
|
---|
[a7b1bddc] | 61 | not seem to adequately explain the variations.
|
---|
[326f830] | 62 | </para>
|
---|
| 63 | <para>
|
---|
[bb0652ca] | 64 | Unusually, a DESTDIR-style method is being used to install this package.
|
---|
| 65 | This is because running the install as root not only downloads all of the
|
---|
[a7b1bddc] | 66 | cargo files again (to <filename>/root/.cargo</filename>), it then spends
|
---|
[bb0652ca] | 67 | a very long time recompiling. Using this method saves 30 SBU on the
|
---|
[a7b1bddc] | 68 | 4-core machine where this was tested, at the cost of an extra 60MB of
|
---|
| 69 | disk space for the extra files.
|
---|
[326f830] | 70 | </para>
|
---|
| 71 | </note>
|
---|
| 72 |
|
---|
[272f28b] | 73 | &lfs83_checked;
|
---|
[03d537cd] | 74 |
|
---|
| 75 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>
|
---|
| 79 | Download (HTTP): <ulink url="&rust-download-http;"/>
|
---|
| 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>
|
---|
| 84 | Download (FTP): <ulink url="&rust-download-ftp;"/>
|
---|
| 85 | </para>
|
---|
| 86 | </listitem>
|
---|
| 87 | <listitem>
|
---|
| 88 | <para>
|
---|
| 89 | Download MD5 sum: &rust-md5sum;
|
---|
| 90 | </para>
|
---|
| 91 | </listitem>
|
---|
| 92 | <listitem>
|
---|
| 93 | <para>
|
---|
| 94 | Download size: &rust-size;
|
---|
| 95 | </para>
|
---|
| 96 | </listitem>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>
|
---|
| 99 | Estimated disk space required: &rust-buildsize;
|
---|
| 100 | </para>
|
---|
| 101 | </listitem>
|
---|
| 102 | <listitem>
|
---|
| 103 | <para>
|
---|
| 104 | Estimated build time: &rust-time;
|
---|
| 105 | </para>
|
---|
| 106 | </listitem>
|
---|
| 107 | </itemizedlist>
|
---|
| 108 |
|
---|
| 109 | <bridgehead renderas="sect3">Rust Dependencies</bridgehead>
|
---|
| 110 |
|
---|
| 111 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 112 | <para role="required">
|
---|
| 113 | <xref linkend="curl"/>,
|
---|
[4c6edac] | 114 | <xref linkend="cmake"/>,
|
---|
[272f28b] | 115 | <xref linkend="libssh2"/>,
|
---|
[a7b1bddc] | 116 | <!-- Although this appears to build with python3, there are sometimes strange
|
---|
| 117 | script errors in the compilation (i.e. it exits after the build, without
|
---|
| 118 | any obvious errors and with a good status. Also ,it ships with a configure
|
---|
| 119 | script which invokes python2.7 to create config.toml, and some of the files
|
---|
| 120 | in the package use python2.7. -->
|
---|
[03d537cd] | 121 | <xref linkend="python2"/>
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
[a7b1bddc] | 124 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 125 | <para role="recommended">
|
---|
| 126 | <package>clang</package> from <xref linkend="llvm"/>
|
---|
[bb0652ca] | 127 | (built with -DLLVM_LINK_LLVM_DYLIB=ON)
|
---|
[a7b1bddc] | 128 | </para>
|
---|
| 129 |
|
---|
[03d537cd] | 130 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 131 | <para role="optional">
|
---|
[60ddbaf] | 132 | <xref linkend="gdb"/> (used by debuginfo-gdb in the testsuite)
|
---|
[03d537cd] | 133 | </para>
|
---|
| 134 |
|
---|
| 135 | <para condition="html" role="usernotes">
|
---|
| 136 | User Notes: <ulink url="&blfs-wiki;/rust"/>
|
---|
| 137 | </para>
|
---|
| 138 | </sect2>
|
---|
| 139 |
|
---|
| 140 | <sect2 role="installation">
|
---|
| 141 | <title>Installation of Rust</title>
|
---|
| 142 |
|
---|
[4c6edac] | 143 | <note>
|
---|
| 144 | <para>
|
---|
| 145 | This package is updated on a six-weekly release cycle. Because it is
|
---|
[87dd4d94] | 146 | such a large and slow package to build, and is at the moment only required
|
---|
| 147 | by three packages in this book, the BLFS editors take the view that it
|
---|
[4c6edac] | 148 | should only be updated when that is necessary.
|
---|
| 149 | </para>
|
---|
| 150 | </note>
|
---|
| 151 |
|
---|
[03d537cd] | 152 | <para>
|
---|
[4c6edac] | 153 | First create a suitable <filename>config.toml</filename> file
|
---|
| 154 | which will configure the build :
|
---|
| 155 | </para>
|
---|
| 156 |
|
---|
[272f28b] | 157 | <screen><userinput>cat << EOF > config.toml
|
---|
[326f830] | 158 | # see config.toml.example for more possible options
|
---|
[4c6edac] | 159 | [llvm]
|
---|
| 160 | targets = "X86"
|
---|
| 161 |
|
---|
[a7b1bddc] | 162 | # When using system llvm prefer shared libraries
|
---|
| 163 | link-shared = true
|
---|
| 164 |
|
---|
[4c6edac] | 165 | [build]
|
---|
| 166 | # install cargo as well as rust
|
---|
| 167 | extended = true
|
---|
| 168 |
|
---|
| 169 | [install]
|
---|
| 170 | prefix = "/usr"
|
---|
[326f830] | 171 | docdir = "share/doc/rustc-&rust-version;"
|
---|
| 172 |
|
---|
| 173 | [rust]
|
---|
[4c6edac] | 174 | channel = "stable"
|
---|
[326f830] | 175 | rpath = false
|
---|
[a7b1bddc] | 176 |
|
---|
| 177 | # get reasonably clean output from the test harness
|
---|
| 178 | quiet-tests = true
|
---|
| 179 |
|
---|
| 180 | # BLFS does not install the FileCheck executable from llvm,
|
---|
| 181 | # so disable codegen tests
|
---|
| 182 | codegen-tests = false
|
---|
| 183 |
|
---|
| 184 | [target.x86_64-unknown-linux-gnu]
|
---|
| 185 | # delete this *section* if you are not using system llvm.
|
---|
| 186 | # NB the output of llvm-config (i.e. help options) may be
|
---|
| 187 | # dumped to the screen when config.toml is parsed.
|
---|
| 188 | llvm-config = "/usr/bin/llvm-config"
|
---|
| 189 |
|
---|
[4c6edac] | 190 | EOF</userinput></screen>
|
---|
| 191 |
|
---|
| 192 | <para>
|
---|
| 193 | Now install <application>Rust</application> by running the following
|
---|
[03d537cd] | 194 | commands:
|
---|
| 195 | </para>
|
---|
| 196 |
|
---|
[bb0652ca] | 197 | <screen><userinput>export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi" &&
|
---|
| 198 | ./x.py build</userinput></screen>
|
---|
[03d537cd] | 199 |
|
---|
[a7b1bddc] | 200 | <para>
|
---|
| 201 | The build will report it failed to compile <filename>miri</filename>
|
---|
| 202 | because of multiple potential crates for `log`, but that should be followed
|
---|
| 203 | by a message that the build completed successfully.
|
---|
| 204 | </para>
|
---|
| 205 |
|
---|
| 206 | <caution>
|
---|
| 207 | <para>
|
---|
| 208 | On AMD Ryzen processors (family 17h), the non-optimized version of libstd
|
---|
| 209 | which is compiled at the start of the tests contains two opcodes which are
|
---|
| 210 | not implemented on this CPU family. These will be logged in the
|
---|
| 211 | <phrase revision="sysv">system log</phrase>
|
---|
| 212 | <phrase revision="systemd">systemd journal</phrase>
|
---|
| 213 | and will be followed a few minutes later by segmentation faults. Despite
|
---|
| 214 | that, the tests continue to run, apparently normally. But the system may
|
---|
| 215 | reboot before the tests have completed. The normal optimized libraries
|
---|
| 216 | run without this problem.
|
---|
| 217 | </para>
|
---|
| 218 | <para>
|
---|
| 219 | A mitigation is to install gdb
|
---|
| 220 | <!-- systemd apparently handles this with systemd-coredump -->
|
---|
| 221 | <phrase revision="sysv">and to run the tests with 'ulimit -C disabled'</phrase>
|
---|
| 222 | but this does not always prevent the system rebooting.
|
---|
| 223 | </para>
|
---|
| 224 | </caution>
|
---|
| 225 |
|
---|
[03d537cd] | 226 | <para>
|
---|
[4c6edac] | 227 | To run the tests issue
|
---|
| 228 | <command>./x.py test --verbose --no-fail-fast >../rustc-testlog</command>:
|
---|
[9dc2505] | 229 | as with the build, that will use all available CPUs. This runs many suites
|
---|
[a7b1bddc] | 230 | of tests (in an apparently random order), at least one will fail:
|
---|
| 231 | compile-fail/issue-37131.rs tries to
|
---|
| 232 | compile for the thumbv6m-none-eabi target but the BLFS build does not cater for
|
---|
| 233 | that, and many tests in debuginfo-gdb will fail if
|
---|
| 234 | <application>gdb</application> has not been installed. A few other tests might
|
---|
| 235 | fail.
|
---|
[03d537cd] | 236 | </para>
|
---|
| 237 |
|
---|
| 238 | <para>
|
---|
[4c6edac] | 239 | If you wish to look at the numbers for the results, you can find the total
|
---|
| 240 | number of tests which were considered by running:
|
---|
[03d537cd] | 241 | </para>
|
---|
| 242 |
|
---|
[4c6edac] | 243 | <screen><command>grep 'running .* tests' ../rustc-testlog | awk '{ sum += $2 } END { print sum }'</command></screen>
|
---|
| 244 |
|
---|
[03d537cd] | 245 | <para>
|
---|
[a7b1bddc] | 246 | That should report 13224 tests. Similarly, the total tests which failed can
|
---|
[4c6edac] | 247 | be found by running:
|
---|
[03d537cd] | 248 | </para>
|
---|
| 249 |
|
---|
[4c6edac] | 250 | <screen><command>grep '^test result:' ../rustc-testlog | awk '{ sum += $6 } END { print sum }'</command></screen>
|
---|
[03d537cd] | 251 |
|
---|
[4c6edac] | 252 | <para>
|
---|
| 253 | And similarly for the tests which passed use $4, for those which were ignored
|
---|
| 254 | (i.e. skipped) use $8 (and $10 for 'measured', $12 for 'filtered out' but both
|
---|
| 255 | are probably zero). The breakdown does not match the overall total.
|
---|
| 256 | </para>
|
---|
| 257 |
|
---|
| 258 | <para>
|
---|
[a7b1bddc] | 259 | Still as your normal user, do a DESTDIR install:
|
---|
[4c6edac] | 260 | </para>
|
---|
| 261 |
|
---|
[bb0652ca] | 262 | <screen><userinput>DESTDIR=${PWD}/install ./x.py install</userinput></screen>
|
---|
[a7b1bddc] | 263 |
|
---|
| 264 | <para>
|
---|
| 265 | Now, as the <systemitem class="username">root</systemitem> user
|
---|
| 266 | install the files from the DESTDIR:
|
---|
| 267 | </para>
|
---|
| 268 |
|
---|
[bb0652ca] | 269 | <screen role="root"><userinput>chown -R root:root install &&
|
---|
| 270 | cp -a install/* /</userinput></screen>
|
---|
[a7b1bddc] | 271 |
|
---|
[03d537cd] | 272 | </sect2>
|
---|
| 273 |
|
---|
| 274 | <sect2 role="commands">
|
---|
| 275 | <title>Command Explanations</title>
|
---|
| 276 |
|
---|
| 277 | <para>
|
---|
[4c6edac] | 278 | <command>targets = "X86"</command>: this avoids building all the available
|
---|
[a7b1bddc] | 279 | linux cross-compilers (Aarch64, MIPS, PowerPC, SystemZ, etc). Unfortunately,
|
---|
| 280 | rust insists on installing source files for these below
|
---|
| 281 | <filename class="directory">/usr/lib/rustlib/src</filename>.
|
---|
[03d537cd] | 282 | </para>
|
---|
| 283 |
|
---|
| 284 | <para>
|
---|
[4c6edac] | 285 | <command>extended = true</command>: this installs Cargo alongside Rust.
|
---|
[03d537cd] | 286 | </para>
|
---|
| 287 |
|
---|
| 288 | <para>
|
---|
[4c6edac] | 289 | <command>channel = "stable"</command>: this ensures only stable features
|
---|
| 290 | can be used, the default in <filename>config.toml</filename> is to use
|
---|
| 291 | development features, which is not appropriate for a released version.
|
---|
[03d537cd] | 292 | </para>
|
---|
| 293 |
|
---|
[326f830] | 294 | <para>
|
---|
| 295 | <command>rpath = false</command>: by default, <command>rust</command> can
|
---|
| 296 | be run from where it was built, without being installed. That adds DT_RPATH
|
---|
| 297 | entries to all of the ELF files, which produces very messy output from
|
---|
| 298 | <command>ldd</command>, showing the libraries in the place they were built,
|
---|
| 299 | even if they have been deleted from there after the install.
|
---|
| 300 | </para>
|
---|
| 301 |
|
---|
[a7b1bddc] | 302 | <para>
|
---|
| 303 | <command>[target.x86_64-unknown-linux-gnu]</command>: the syntax of
|
---|
| 304 | <filename>config.toml</filename> requires an <literal>llvm-config</literal>
|
---|
| 305 | entry for each target for which system-llvm is to be used. Change the target
|
---|
| 306 | to <literal>[target.i686-unknown-linux-gnu]</literal> if you are building
|
---|
| 307 | on 32-bit x86. This whole section may be omitted if you wish to build
|
---|
| 308 | against the shipped llvm, or do not have clang, but the resulting build will
|
---|
| 309 | be larger and take a little longer.
|
---|
| 310 | </para>
|
---|
| 311 |
|
---|
[bb0652ca] | 312 | <para>
|
---|
| 313 | <command>export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"</command>:
|
---|
| 314 | This adds a link to libffi to any RUSTFLAGS you may already be passing
|
---|
| 315 | to the build. On some systems, linking fails to include libffi unless
|
---|
| 316 | this is used. The reason why this is needed is not clear.
|
---|
| 317 | </para>
|
---|
| 318 |
|
---|
[03d537cd] | 319 | <para>
|
---|
[4c6edac] | 320 | <command>--verbose</command>: this switch can sometimes provide more
|
---|
| 321 | information about a test which fails.
|
---|
[03d537cd] | 322 | </para>
|
---|
[4c6edac] | 323 |
|
---|
| 324 | <para>
|
---|
| 325 | <command>--no-fail-fast</command>: this switch ensures that the testsuite
|
---|
| 326 | will not stop at the first error.
|
---|
| 327 | </para>
|
---|
| 328 |
|
---|
[326f830] | 329 | <para>
|
---|
[bb0652ca] | 330 | <command>DESTDIR=${PWD}/install ./x.py install</command>: This effects a
|
---|
| 331 | DESTDIR-style install in the source tree,creating an <filename
|
---|
| 332 | class="directory">install</filename> directory. Note that DESTDIR installs
|
---|
| 333 | need an absolute path, passing 'install' will not work.
|
---|
[a7b1bddc] | 334 | </para>
|
---|
| 335 |
|
---|
| 336 | <para>
|
---|
[bb0652ca] | 337 | <command>chown -R root:root install</command>: the DESTDIR install
|
---|
[a7b1bddc] | 338 | was run by a regular user, who owns the files. For security, change their
|
---|
| 339 | owner before doing a simple copy to install them.
|
---|
[326f830] | 340 | </para>
|
---|
| 341 |
|
---|
[03d537cd] | 342 | </sect2>
|
---|
| 343 |
|
---|
| 344 | <sect2 role="content">
|
---|
| 345 | <title>Contents</title>
|
---|
| 346 |
|
---|
| 347 | <segmentedlist>
|
---|
[78399edc] | 348 | <segtitle>Installed Programs</segtitle>
|
---|
| 349 | <segtitle>Installed Libraries</segtitle>
|
---|
| 350 | <segtitle>Installed Directories</segtitle>
|
---|
[03d537cd] | 351 |
|
---|
| 352 | <seglistitem>
|
---|
| 353 | <seg>
|
---|
[a7b1bddc] | 354 | cargo-fmt, cargo, rls, rust-gdb, rust-lldb, rustc, rustdoc, rustfmt.
|
---|
[03d537cd] | 355 | </seg>
|
---|
| 356 | <seg>
|
---|
[4c6edac] | 357 | Many lib*<16-byte-hash>.so libraries.
|
---|
[03d537cd] | 358 | </seg>
|
---|
| 359 | <seg>
|
---|
| 360 | ~/.cargo,
|
---|
[4c6edac] | 361 | /usr/lib/rustlib,
|
---|
| 362 | /usr/share/doc/rustc-&rust-version;, and
|
---|
| 363 | /usr/share/zsh/site-functions/
|
---|
[03d537cd] | 364 | </seg>
|
---|
| 365 | </seglistitem>
|
---|
| 366 | </segmentedlist>
|
---|
| 367 |
|
---|
| 368 | <variablelist>
|
---|
| 369 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 370 | <?dbfo list-presentation="list"?>
|
---|
| 371 | <?dbhtml list-presentation="table"?>
|
---|
| 372 |
|
---|
[a7b1bddc] | 373 | <varlistentry id="cargo-fmt">
|
---|
| 374 | <term><command>cargo-fmt</command></term>
|
---|
| 375 | <listitem>
|
---|
| 376 | <para>
|
---|
| 377 | formats all bin and lib files of the current crate using
|
---|
| 378 | rustfmt.
|
---|
| 379 | </para>
|
---|
| 380 | <indexterm zone="rust cargo-fmt">
|
---|
| 381 | <primary sortas="b-cargo-fmt">cargo-fmt</primary>
|
---|
| 382 | </indexterm>
|
---|
| 383 | </listitem>
|
---|
| 384 | </varlistentry>
|
---|
| 385 |
|
---|
[4c6edac] | 386 | <varlistentry id="cargo">
|
---|
| 387 | <term><command>cargo</command></term>
|
---|
| 388 | <listitem>
|
---|
| 389 | <para>
|
---|
| 390 | is the Package Manager for Rust.
|
---|
| 391 | </para>
|
---|
| 392 | <indexterm zone="rust cargo">
|
---|
| 393 | <primary sortas="b-cargo">cargo</primary>
|
---|
| 394 | </indexterm>
|
---|
| 395 | </listitem>
|
---|
| 396 | </varlistentry>
|
---|
| 397 |
|
---|
[326f830] | 398 | <varlistentry id="rls">
|
---|
| 399 | <term><command>rls</command></term>
|
---|
| 400 | <listitem>
|
---|
| 401 | <para>
|
---|
| 402 | is the Rust Language Server. This can run in the background to
|
---|
| 403 | provide IDEs, editors, and other tools with information about Rust
|
---|
| 404 | programs.
|
---|
| 405 | </para>
|
---|
| 406 | <indexterm zone="rust rls">
|
---|
| 407 | <primary sortas="b-rls">rls</primary>
|
---|
| 408 | </indexterm>
|
---|
| 409 | </listitem>
|
---|
| 410 | </varlistentry>
|
---|
| 411 |
|
---|
[03d537cd] | 412 | <varlistentry id="rust-gdb">
|
---|
| 413 | <term><command>rust-gdb</command></term>
|
---|
| 414 | <listitem>
|
---|
| 415 | <para>
|
---|
[a7b1bddc] | 416 | is a wrapper script for gdb, pulling in Python
|
---|
| 417 | pretty-printing modules installed in <filename
|
---|
| 418 | class="directory">/usr/lib/rustlib/etc</filename>.
|
---|
[03d537cd] | 419 | </para>
|
---|
| 420 | <indexterm zone="rust rust-gdb">
|
---|
| 421 | <primary sortas="b-rust-gdb">rust-gdb</primary>
|
---|
| 422 | </indexterm>
|
---|
| 423 | </listitem>
|
---|
| 424 | </varlistentry>
|
---|
| 425 |
|
---|
| 426 | <varlistentry id="rust-lldb">
|
---|
| 427 | <term><command>rust-lldb</command></term>
|
---|
| 428 | <listitem>
|
---|
| 429 | <para>
|
---|
[a7b1bddc] | 430 | is a wrapper script for LLDB (the LLVM debugger)
|
---|
| 431 | pulling in the Python pretty-printing modules.
|
---|
[03d537cd] | 432 | </para>
|
---|
| 433 | <indexterm zone="rust rust-lldb">
|
---|
| 434 | <primary sortas="b-rust-lldb">rust=lldb</primary>
|
---|
| 435 | </indexterm>
|
---|
| 436 | </listitem>
|
---|
| 437 | </varlistentry>
|
---|
| 438 |
|
---|
| 439 | <varlistentry id="rustc">
|
---|
| 440 | <term><command>rustc</command></term>
|
---|
| 441 | <listitem>
|
---|
| 442 | <para>
|
---|
| 443 | is the rust compiler.
|
---|
| 444 | </para>
|
---|
| 445 | <indexterm zone="rust rustc">
|
---|
| 446 | <primary sortas="b-rustc">rustc</primary>
|
---|
| 447 | </indexterm>
|
---|
| 448 | </listitem>
|
---|
| 449 | </varlistentry>
|
---|
| 450 |
|
---|
| 451 | <varlistentry id="rustdoc">
|
---|
| 452 | <term><command>rustdoc</command></term>
|
---|
| 453 | <listitem>
|
---|
| 454 | <para>
|
---|
| 455 | generates documentation from rust source code.
|
---|
| 456 | </para>
|
---|
| 457 | <indexterm zone="rust rustdoc">
|
---|
| 458 | <primary sortas="b-rustdoc">rustdoc</primary>
|
---|
| 459 | </indexterm>
|
---|
| 460 | </listitem>
|
---|
| 461 | </varlistentry>
|
---|
| 462 |
|
---|
[a7b1bddc] | 463 | <varlistentry id="rustfmt">
|
---|
| 464 | <term><command>rustfmt</command></term>
|
---|
| 465 | <listitem>
|
---|
| 466 | <para>
|
---|
| 467 | formats rust code.
|
---|
| 468 | </para>
|
---|
| 469 | <indexterm zone="rust rustfmt">
|
---|
| 470 | <primary sortas="b-rustfmt">rustfmt</primary>
|
---|
| 471 | </indexterm>
|
---|
| 472 | </listitem>
|
---|
| 473 | </varlistentry>
|
---|
| 474 |
|
---|
[03d537cd] | 475 | <varlistentry id="libstd">
|
---|
| 476 | <term><filename class="libraryfile">libstd-<16-byte-hash>.so</filename></term>
|
---|
| 477 | <listitem>
|
---|
| 478 | <para>
|
---|
| 479 | is the Rust Standard Library, the foundation of portable Rust software.
|
---|
| 480 | </para>
|
---|
| 481 | <indexterm zone="rust libstd">
|
---|
| 482 | <primary sortas="c-libstd">libstd-<16-byte-hash>.so</primary>
|
---|
| 483 | </indexterm>
|
---|
| 484 | </listitem>
|
---|
| 485 | </varlistentry>
|
---|
| 486 | </variablelist>
|
---|
| 487 | </sect2>
|
---|
| 488 | </sect1>
|
---|