source: general/prog/rust.xml@ 52f84d9

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 52f84d9 was f764a88, checked in by Xi Ruoyao <xry111@…>, 8 months ago

Update to rustc-1.73.0

  • Property mode set to 100644
File size: 27.5 KB
Line 
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
7 <!ENTITY rust-download-http "https://static.rust-lang.org/dist/rustc-&rust-version;-src.tar.xz">
8 <!ENTITY rust-download-ftp " ">
9 <!ENTITY rust-md5sum "2b5fd1623a6591c3e31eaec674ccc81c">
10 <!ENTITY rust-size "148 MB">
11 <!ENTITY rust-buildsize "8.9 GB (292 MB installed); add 6.4 GB if running the tests">
12 <!ENTITY rust-time "6.7 SBU (including download time; add 6.2 SBU for tests, both using parallelism=8)">
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
32 <para>
33 This package is updated on a six-weekly release cycle. Because it is
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).
39 </para>
40
41 <para>
42 As with many other programming languages, rustc (the rust compiler)
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.
46 </para>
47
48 <note>
49 <para>
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
58 shipped LLVM after building with shared LLVM, perhaps to compile crates
59 for architectures which the BLFS LLVM build does not support)
60 it is possible for the install to leave a broken
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.
64 </para>
65
66 <para>
67 If you prefer, you can of course change the prefix to <filename
68 class="directory">/usr</filename>.
69 </para>
70 </note>
71
72 <para>
73 The current <application>rustbuild</application> build-system will use
74 all processors, although it does not scale well and often falls
75 back to just using one core while waiting for a library to compile.
76 However it can be mostly limited to a specified number of processors by
77 a combination of adding the switch <literal>--jobs &lt;N&gt;</literal>
78 (e.g. '--jobs 4' to limit to 4 processors) on each invocation of
79 <command>python3 x.py</command> <emphasis>and</emphasis> using an
80 environment variable <envar>CARGO_BUILD_JOBS=&lt;N&gt;</envar>. At the
81 moment this is not effective when some of the rustc tests are run.
82 </para>
83
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
87 machine lacks DRAM (typically, less than 2GB DRAM per core) that might be
88 an alternative to taking CPUs offline.
89 Read <xref linkend='build-in-cgroup'/> for how to use a cgroup.
90 </para>
91
92 <para>
93 At the moment <application>Rust</application> does not provide any
94 guarantees of a stable ABI.
95 </para>
96
97 <note>
98 <para>
99 Rustc defaults to building for ALL supported architectures, using a
100 shipped copy of LLVM. In BLFS the build is only for the X86
101 architecture.
102 If you intend to develop rust crates, this build may not be good
103 enough for your purposes.
104 </para>
105 <para>
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.
109 </para>
110 </note>
111
112 &lfs120_checked;
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>
147
148<!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
149 <itemizedlist spacing="compact">
150 <listitem>
151 <para>
152 Required patch:
153 <ulink url="&patch-root;/rustc-&rust-version;-llvm9_fixes-1.patch"/>
154 </para>
155 </listitem>
156 </itemizedlist>-->
157
158 <bridgehead renderas="sect3">Rust Dependencies</bridgehead>
159
160 <bridgehead renderas="sect4">Required</bridgehead>
161 <para role="required">
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"/>
167 </para>
168
169 &build-use-internet;
170
171 <bridgehead renderas="sect4">Recommended</bridgehead>
172 <para role="recommended">
173 <xref linkend="libssh2"/> and
174 <xref linkend="llvm"/>
175 (built with -DLLVM_LINK_LLVM_DYLIB=ON so that rust can link to
176 system LLVM instead of building its shipped version)
177 </para>
178
179 <note>
180 <para>
181 If a recommended dependency is not installed, a shipped copy in the
182 Rustc source tarball will be built and used.
183 </para>
184 </note>
185
186 <bridgehead renderas="sect4">Optional</bridgehead>
187 <para role="optional">
188 <xref linkend="gdb"/> (used by the test suite if it is present),
189 <xref linkend="git"/> (required by the test suite), and
190 <ulink url='https://libgit2.org/'>libgit2</ulink>
191 </para>
192
193 <para condition="html" role="usernotes">
194 Editor Notes: <ulink url="&blfs-wiki;/rust"/>
195 </para>
196 </sect2>
197
198 <sect2 role="installation">
199 <title>Installation of Rust</title>
200
201 <note>
202 <para>
203 Currently the rust compiler produces SSE2 instructions for 32-bit x86,
204 causing the generated code to be broken on 32-bit systems without a
205 SSE2-capable processor. All x86 processor models released after
206 2004 should be SSE2-capable. Run
207 <command>lscpu | grep sse2</command> as a test. If it outputs
208 anything, your CPU is SSE2-capable and OK. Otherwise you may try
209 to build this package <emphasis>on a SSE2-capable system</emphasis>
210 with the following fix applied:
211 </para>
212
213 <!-- computeroutput used deliberately to stop anyone from copying
214 blindly -->
215<screen role="nodump"><computeroutput>sed 's@pentium4@pentiumpro@' -i \
216 compiler/rustc_target/src/spec/i686_unknown_linux_gnu.rs</computeroutput></screen>
217
218 <para>
219 And copy the resulting
220 <filename class="directory">/opt/rustc-&rust-version;</filename>
221 to the system without SSE2 capability. But this change is still
222 under upstream review and not tested by BLFS editors.
223 </para>
224 </note>
225
226 <para>
227 To install into the
228 <filename class="directory">/opt</filename> directory, remove any
229 existing <filename>/opt/rustc</filename> symlink
230 and create a new directory (i.e. with a different name if trying a
231 modified build of the same version).
232 As the <systemitem class="username">root</systemitem>
233 user:
234 </para>
235
236<screen role="root"><userinput>mkdir -pv /opt/rustc-&rust-version; &amp;&amp;
237ln -svfn rustc-&rust-version; /opt/rustc</userinput></screen>
238
239 <note>
240 <para>
241 If multiple versions of <application>Rust</application> are installed
242 in <filename class="directory">/opt</filename>, changing to another
243 version only requires changing the <filename> /opt/rustc</filename>
244 symbolic link and then running <command>ldconfig</command>.
245 </para>
246 </note>
247
248 <para>
249 Create a suitable <filename>config.toml</filename> file which will
250 configure the build.
251 </para>
252
253<screen><userinput>cat &lt;&lt; EOF &gt; config.toml
254<literal># see config.toml.example for more possible options
255# See the 8.4 book for an old example using shipped LLVM
256# e.g. if not installing clang, or using a version before 13.0
257
258# tell x.py to not keep printing an annoying warning
259changelog-seen = 2
260
261[llvm]
262# by default, rust will build for a myriad of architectures
263targets = "X86"
264
265# When using system llvm prefer shared libraries
266link-shared = true
267
268[build]
269# omit docs to save time and space (default is to build them)
270docs = false
271
272# install extended tools: cargo, clippy, etc
273extended = true
274
275# Do not query new versions of dependencies online.
276locked-deps = true
277
278# Specify which extended tools (those from the default install).
279tools = ["cargo", "clippy", "rustdoc", "rustfmt"]
280
281# Use the source code shipped in the tarball for the dependencies.
282# The combination of this and the "locked-deps" entry avoids downloading
283# many crates from Internet, and makes the Rustc build more stable.
284vendor = true
285
286[install]
287prefix = "/opt/rustc-&rust-version;"
288docdir = "share/doc/rustc-&rust-version;"
289
290[rust]
291channel = "stable"
292description = "for BLFS &version;"
293
294# BLFS used to not install the FileCheck executable from llvm,
295# so disabled codegen tests. The assembly tests rely on FileCheck
296# and cannot easily be disabled, so those will anyway fail if
297# FileCheck has not been installed.
298#codegen-tests = false
299
300[target.x86_64-unknown-linux-gnu]
301# NB the output of llvm-config (i.e. help options) may be
302# dumped to the screen when config.toml is parsed.
303llvm-config = "/usr/bin/llvm-config"
304
305[target.i686-unknown-linux-gnu]
306# NB the output of llvm-config (i.e. help options) may be
307# dumped to the screen when config.toml is parsed.
308llvm-config = "/usr/bin/llvm-config"</literal>
309EOF</userinput></screen>
310
311 <para>
312 Compile <application>Rust</application> by running the following
313 commands:
314 </para>
315
316<!-- fixed in 1.58.0, retain as a reminder that fixed crates can be used
317<screen><userinput>sed -i -e '/^curl /s/0.4.38/0.4.40/' \
318 -e '/^curl-sys /s/0.4.48/0.4.50/' \
319 src/tools/cargo/Cargo.toml &amp;&amp; -->
320
321<screen><userinput>{ [ ! -e /usr/include/libssh2.h ] ||
322 export LIBSSH2_SYS_USE_PKG_CONFIG=1; } &amp;&amp;
323python3 x.py build</userinput></screen>
324
325 <note>
326 <para>
327 The test suite will generate some messages in the
328 <phrase revision="sysv">system log</phrase>
329 <phrase revision="systemd">systemd journal</phrase>
330 for traps on invalid opcodes, and for segmentation faults.
331 In themselves these are nothing to worry about, just a way for the
332 test to be terminated.
333 </para>
334 </note>
335
336 <para>
337 To run the tests (again using all available CPUs) issue:
338 </para>
339
340<screen remap="test"><userinput>SSL_CERT_DIR=/etc/ssl/certs \
341python3 x.py test --verbose --no-fail-fast | tee rustc-testlog</userinput></screen>
342
343 <!-- https://github.com/rust-lang/rust/pull/115869 -->
344 <para>
345 The test named <filename>tests/ui/issues/issue-21763.rs</filename>
346 is known to fail.
347 </para>
348
349 <para>
350 If <command>FileCheck</command> from <application>LLVM</application> has
351 not been installed, all 47 tests from the <quote>assembly</quote> suite
352 will fail.
353 </para>
354
355 <para>
356 As with all large test suites, other tests might fail on some machines -
357 if the number of additional failures is low,
358 check the log for 'failures:' and review lines above that, particularly the
359 'stderr:' lines. Any mention of
360 SIGSEGV or signal 11 in a failing test is a cause for concern.
361 </para>
362
363 <para>
364 If you get any <emphasis>other</emphasis> failing test which reports an
365 issue number then you should search for that issue. For example, when
366 rustc &gt;= 1.41.1 was built with a version of sysllvm before 10.0 the test
367 for issue 69225 failed <ulink
368 url="https://github.com/rust-lang/rust/issues/69225"/> and that should be
369 regarded as a critical failure (they released 1.41.1 because of it).
370 Most other failures will not be critical.
371 </para>
372
373 <para>
374 Therefore, you should determine the number of failures.
375 </para>
376
377 <para>
378 The number of tests which passed and failed can be found by running:
379 </para>
380
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>
384
385 <para>
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.
389 </para>
390
391 <para>
392 Now, as the &root; user, install the package:
393 </para>
394
395 <note>
396 <para>
397 If <command>sudo</command> or <command>su</command> is invoked for
398 switching to the &root; user, ensure
399 <envar>LIBSSH2_SYS_USE_PKG_CONFIG</envar> is correctly passed or the
400 following command may completely rebuild this package. For
401 <command>sudo</command>, use the
402 <option>--preserve-env=LIBSSH2_SYS_USE_PKG_CONFIG</option> option.
403 For <command>su</command>, do <emphasis>not</emphasis> use the
404 <option>-</option> or <option>--login</option>.
405 </para>
406 </note>
407
408<screen role='root'><userinput>python3 x.py install</userinput></screen>
409
410 <!-- https://github.com/rust-lang/rust/issues/115213 -->
411 <para>
412 The building system attempts to install some files twice, and during
413 the second attempt it renames the old one (installed in the first
414 attempt) with the <filename class='extension'>.old</filename> suffix.
415 As the &root; user, remove these files:
416 </para>
417
418 <screen role='root'><userinput>find /opt/rustc-&rust-version; -name "*.old" -delete</userinput></screen>
419
420 <para>
421 Still as the &root; user, symlink a <application>Zsh</application>
422 completion file into the correct location:
423 </para>
424
425<screen role='root'><userinput>install -vdm755 /usr/share/zsh/site-functions &amp;&amp;
426ln -sfv /opt/rustc/share/zsh/site-functions/_cargo \
427 /usr/share/zsh/site-functions</userinput></screen>
428
429 </sect2>
430
431 <sect2 role="commands">
432 <title>Command Explanations</title>
433
434 <para>
435 <command>ln -svfn rustc-&rust-version; /opt/rustc</command>: if this is
436 not the first use of the <filename class="directory">/opt/rustc</filename>
437 symlink, overwrite it by forcing, and use the '-n' flag to avoid getting
438 confusing results from e.g. <command>ls -l</command>.
439 </para>
440
441 <para>
442 <literal>targets = "X86"</literal>: this avoids building all the available
443 linux cross-compilers (AArch64, MIPS, PowerPC, SystemZ, etc). Unfortunately,
444 rust insists on installing source files for these below
445 <filename class="directory">/opt/rustc/lib/src</filename>.
446 </para>
447
448 <para>
449 <literal>extended = true</literal>: this installs several tools
450 (specified by the <literal>tools</literal> entry) alongside
451 <command>rustc</command>.
452 </para>
453
454 <para>
455 <literal>tools = ["cargo", "clippy", "rustdoc", "rustfmt"]</literal>:
456 only build the tools from the 'default' profile in binary command
457 <command>rustup</command> which are recommended for most users.
458 The other tools are unlikely to be useful unless using (old) code
459 analyzers or editing the standard library.
460 </para>
461
462 <para>
463 <literal>channel = "stable"</literal>: this ensures only stable features
464 can be used, the default in <filename>config.toml</filename> is to use
465 development features, which is not appropriate for a released version.
466 </para>
467
468 <!-- comment while using shipped LLVM -->
469 <para>
470 <literal>[target.x86_64-unknown-linux-gnu]</literal>: the syntax of
471 <filename>config.toml</filename> requires an <literal>llvm-config</literal>
472 entry for each target for which system-llvm is to be used. Change the target
473 to <literal>[target.i686-unknown-linux-gnu]</literal> if you are building
474 on 32-bit x86. This whole section may be omitted if you wish to build
475 against the shipped llvm, or do not have clang, but the resulting build will
476 be larger and take longer.
477 </para>
478
479<!--<para>
480 <command>sed -i -e '/^curl /s/0.4.38/0.4.40/' ... </command>: two crates
481 normally downloaded for this release do not correctly initialise
482 <application>curl</application> if using
483 <application>openssl-3.0.0</application>. Upstream has fixed that for a
484 future release, this sed causes the fixed versions to be used.
485 </para>-->
486
487 <!-- https://github.com/alexcrichton/ssh2-rs/issues/173 -->
488 <para>
489 <command>export LIBSSH2_SYS_USE_PKG_CONFIG=1</command>: Allow
490 <command>cargo</command> to link to system libssh2.
491 </para>
492
493<!--<para>
494 <command>export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"</command>:
495 This adds a link to libffi to any RUSTFLAGS you may already be passing
496 to the build. On some systems, linking fails to include libffi unless
497 this is used. The reason why this is needed is not clear.
498 2023-01-14 : assumed to be no longer needed, but it is some years
499 since one person reported needing this, keep it commented for the moment.
500 </para>-->
501
502 <!-- https://github.com/alexcrichton/openssl-probe/issues/25 -->
503 <para>
504 <envar>SSL_CERT_DIR=/etc/ssl/certs</envar>: Work around an issue
505 causing test failures with the CA certificate store layout used by
506 <xref linkend='make-ca'/>.
507 </para>
508
509 <para>
510 <parameter>--verbose</parameter>: this switch can sometimes provide more
511 information about a test which fails.
512 </para>
513
514 <para>
515 <parameter>--no-fail-fast</parameter>: this switch ensures that the test suite
516 will not stop at the first error.
517 </para>
518
519 </sect2>
520
521 <sect2 role="configuration">
522 <title>Configuring Rust</title>
523
524 <sect3 id="rustc-config">
525 <title>Configuration Information</title>
526
527 <para>
528 If you installed <application>rustc</application> in
529 <filename class="directory">/opt</filename>, you need to update the
530 following configuration files so that <application>rustc</application>
531 is correctly found by other packages and system processes.
532 </para>
533
534 <para>
535 As the <systemitem class="username">root</systemitem> user, create
536 the <filename>/etc/profile.d/rustc.sh</filename> file:
537 </para>
538
539<screen role="root"><userinput>cat &gt; /etc/profile.d/rustc.sh &lt;&lt; "EOF"
540<literal># Begin /etc/profile.d/rustc.sh
541
542pathprepend /opt/rustc/bin PATH
543
544# Include /opt/rustc/man in the MANPATH variable to access manual pages
545pathappend /opt/rustc/share/man MANPATH
546
547# End /etc/profile.d/rustc.sh</literal>
548EOF</userinput></screen>
549
550 <para>
551 Immediately after installation, update the current PATH
552 for your current shell as a normal user:
553 </para>
554
555<screen><userinput>source /etc/profile.d/rustc.sh</userinput></screen>
556
557 </sect3>
558 </sect2>
559
560
561 <sect2 role="content">
562 <title>Contents</title>
563
564 <segmentedlist>
565 <segtitle>Installed Programs</segtitle>
566 <segtitle>Installed Libraries</segtitle>
567 <segtitle>Installed Directories</segtitle>
568
569 <seglistitem>
570 <seg>
571 cargo-clippy, cargo-fmt, cargo, clippy-driver, rust-gdb,
572 rust-gdbgui, rust-lldb, rustc, rustdoc, and rustfmt
573 </seg>
574 <seg>
575 librustc-driver-&lt;16-byte-hash&gt;.so,
576 libstd-&lt;16-byte-hash&gt;.so, and
577 libtest-&lt;16-byte-hash&gt;.so
578 </seg>
579 <seg>
580 ~/.cargo,
581 /opt/rustc, symbolic link to
582 /opt/rustc-&rust-version;
583 </seg>
584 </seglistitem>
585 </segmentedlist>
586
587 <variablelist>
588 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
589 <?dbfo list-presentation="list"?>
590 <?dbhtml list-presentation="table"?>
591
592 <varlistentry id="cargo-clippy">
593 <term><command>cargo-clippy</command></term>
594 <listitem>
595 <para>
596 provides lint checks for a cargo package
597 </para>
598 <indexterm zone="rust cargo-clippy">
599 <primary sortas="b-cargo-clippy">cargo-clippy</primary>
600 </indexterm>
601 </listitem>
602 </varlistentry>
603
604 <varlistentry id="cargo-fmt">
605 <term><command>cargo-fmt</command></term>
606 <listitem>
607 <para>
608 formats all bin and lib files of the current crate using
609 rustfmt
610 </para>
611 <indexterm zone="rust cargo-fmt">
612 <primary sortas="b-cargo-fmt">cargo-fmt</primary>
613 </indexterm>
614 </listitem>
615 </varlistentry>
616
617<!-- <varlistentry id="cargo-miri">
618 <term><command>cargo-miri</command></term>
619 <listitem>
620 <para>
621 is for use by Miri to interpret bin crates and tests. It is
622 not installed by default.
623 </para>
624 <indexterm zone="rust cargo-miri">
625 <primary sortas="b-cargo-miri">cargo-miri</primary>
626 </indexterm>
627 </listitem>
628 </varlistentry>-->
629
630 <varlistentry id="cargo">
631 <term><command>cargo</command></term>
632 <listitem>
633 <para>
634 is the Package Manager for Rust
635 </para>
636 <indexterm zone="rust cargo">
637 <primary sortas="b-cargo">cargo</primary>
638 </indexterm>
639 </listitem>
640 </varlistentry>
641
642 <varlistentry id="clippy-driver">
643 <term><command>clippy-driver</command></term>
644 <listitem>
645 <para>
646 provides lint checks for Rust
647 </para>
648 <indexterm zone="rust clippy-driver">
649 <primary sortas="b-clippy-driver">clippy-driver</primary>
650 </indexterm>
651 </listitem>
652 </varlistentry>
653
654<!-- <varlistentry id="miri">
655 <term><command>miri</command></term>
656 <listitem>
657 <para>
658 is an interpreter for Rust's mid-level intermediate representation
659 (MIR). It is not installed by default.
660 </para>
661 <indexterm zone="rust miri">
662 <primary sortas="b-miri">miri</primary>
663 </indexterm>
664 </listitem>
665 </varlistentry>
666
667 <varlistentry id="rls">
668 <term><command>rls</command></term>
669 <listitem>
670 <para>
671 is the Rust Language Server. This can run in the background to
672 provide IDEs, editors, and other tools with information about Rust
673 programs
674 </para>
675 <indexterm zone="rust rls">
676 <primary sortas="b-rls">rls</primary>
677 </indexterm>
678 </listitem>
679 </varlistentry>
680
681 <varlistentry id="rust-analyzer">
682 <term><command>rust-analyzer</command></term>
683 <listitem>
684 <para>
685 is an implementation of Language Server Protocol for the Rust
686 programming language.
687 </para>
688 <indexterm zone="rust rust-analyzer">
689 <primary sortas="b-rust-analyzer">rust-analyzer</primary>
690 </indexterm>
691 </listitem>
692 </varlistentry>
693
694 <varlistentry id="rust-demangler">
695 <term><command>rust-demangler</command></term>
696 <listitem>
697 <para>
698 converts a list of Rust mangled symbols into a
699 corresponding list of demangled symbols
700 </para>
701 <indexterm zone="rust rust-demangler">
702 <primary sortas="b-rust-demangler">rust-demangler</primary>
703 </indexterm>
704 </listitem>
705 </varlistentry> -->
706
707 <varlistentry id="rust-gdb">
708 <term><command>rust-gdb</command></term>
709 <listitem>
710 <para>
711 is a wrapper script for gdb, pulling in Python pretty-printing
712 modules installed in
713 <filename class="directory">/opt/rustc-&rust-version;/lib/rustlib/etc</filename>
714 </para>
715 <indexterm zone="rust rust-gdb">
716 <primary sortas="b-rust-gdb">rust-gdb</primary>
717 </indexterm>
718 </listitem>
719 </varlistentry>
720
721 <varlistentry id="rust-gdbgui">
722 <term><command>rust-gdbgui</command></term>
723 <listitem>
724 <para>
725 is a wrapper script for a graphical front end to gdb that runs in a
726 browser
727 </para>
728 <indexterm zone="rust rust-gdbgui">
729 <primary sortas="b-rust-gdbgui">rust-gdbgui</primary>
730 </indexterm>
731 </listitem>
732 </varlistentry>
733
734 <varlistentry id="rust-lldb">
735 <term><command>rust-lldb</command></term>
736 <listitem>
737 <para>
738 is a wrapper script for LLDB (the LLVM debugger)
739 pulling in the Python pretty-printing modules
740 </para>
741 <indexterm zone="rust rust-lldb">
742 <primary sortas="b-rust-lldb">rust=lldb</primary>
743 </indexterm>
744 </listitem>
745 </varlistentry>
746
747 <varlistentry id="rustc">
748 <term><command>rustc</command></term>
749 <listitem>
750 <para>
751 is the rust compiler
752 </para>
753 <indexterm zone="rust rustc">
754 <primary sortas="b-rustc">rustc</primary>
755 </indexterm>
756 </listitem>
757 </varlistentry>
758
759 <varlistentry id="rustdoc">
760 <term><command>rustdoc</command></term>
761 <listitem>
762 <para>
763 generates documentation from rust source code
764 </para>
765 <indexterm zone="rust rustdoc">
766 <primary sortas="b-rustdoc">rustdoc</primary>
767 </indexterm>
768 </listitem>
769 </varlistentry>
770
771 <varlistentry id="rustfmt">
772 <term><command>rustfmt</command></term>
773 <listitem>
774 <para>
775 formats rust code
776 </para>
777 <indexterm zone="rust rustfmt">
778 <primary sortas="b-rustfmt">rustfmt</primary>
779 </indexterm>
780 </listitem>
781 </varlistentry>
782
783 <varlistentry id="libstd">
784 <term><filename class="libraryfile">libstd-&lt;16-byte-hash&gt;.so</filename></term>
785 <listitem>
786 <para>
787 is the Rust Standard Library, the foundation of portable Rust software
788 </para>
789 <indexterm zone="rust libstd">
790 <primary sortas="c-libstd">libstd-&lt;16-byte-hash&gt;.so</primary>
791 </indexterm>
792 </listitem>
793 </varlistentry>
794 </variablelist>
795 </sect2>
796
797</sect1>
Note: See TracBrowser for help on using the repository browser.