source: general/prog/rust.xml@ ca97a2a

11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ca97a2a was ca97a2a, checked in by Ken Moffat <ken@…>, 2 years ago

Update to rustc-1.58.1.

  • Property mode set to 100644
File size: 28.2 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.gz">
8 <!ENTITY rust-download-ftp " ">
9 <!ENTITY rust-md5sum "275744c77bf07fd07abe0fd829e6dafb">
10 <!ENTITY rust-size "176 MB">
11 <!-- Gentle Reminder: buildsize is how much the user requires for the real
12 install, i.e. the source with its DESTDIR *plus* the DESTDIR. You
13 can 'mkdir /tmp/RUST ; cp -a install/* /tmp/RUST' and then run 'du -sch'
14 to measure it, or du -sm to look at the size of the build tree before and
15 after the tests. -->
16
17 <!ENTITY rust-buildsize "8.7 GB (417 MB installed) including 296 MB of ~/.cargo files for the user building this. Add 6.5 GB including extra 281 MB of ~/.cargo files if running the tests">
18 <!ENTITY rust-time "25 SBU (including download time; add 13 SBU for tests, both on a 4-core machine)">
19]>
20
21<sect1 id="rust" xreflabel="rustc-&rust-version;">
22 <?dbhtml filename="rust.html"?>
23
24 <sect1info>
25 <date>$Date$</date>
26 </sect1info>
27
28 <title>Rustc-&rust-version;</title>
29
30 <indexterm zone="rust">
31 <primary sortas="a-rust">Rust</primary>
32 </indexterm>
33
34 <sect2 role="package">
35 <title>Introduction to Rust</title>
36
37 <para>
38 The <application>Rust</application> programming language is designed
39 to be a safe, concurrent, practical language.
40 </para>
41
42 <para>
43 This package is updated on a six-weekly release cycle. Because it is
44 such a large and slow package to build, is at the moment only required
45 by a few packages in this book, and particularly because newer versions
46 tend to break older mozilla packages, the BLFS editors take the view that
47 it should only be updated when that is necessary (either to fix problems,
48 or to allow a new version of a package to build).
49 </para>
50
51 <para>
52 As with many other programming languages, rustc (the rust compiler)
53 needs a binary from which to bootstrap. It will download a stage0 binary
54 and many cargo crates (these are actually .tar.gz source archives) at
55 the start of the build, so you cannot compile it without an internet
56 connection.
57 </para>
58
59 <para>
60 These crates will then remain in various forms (cache, directories of
61 extracted source), in <filename class="directory">~/.cargo</filename> for
62 ever more. It is common for large <application>rust</application> packages
63 to use multiple versions of some crates. If you purge the files before
64 updating this package, very few crates will need to be updated by the
65 packages in this book which use it (and they will be downloaded as
66 required). But if you retain an older version as a fallback option and
67 then use it (when <emphasis>not</emphasis> building in
68 <filename class="directory">/usr</filename>), it is likely that it will
69 then have to re-download some crates. For a full download (i.e. starting
70 with an empty or missing <filename class="directory">~/.cargo</filename>)
71 downloading the external cargo files for this version only takes a minute
72 or so on a fast network.
73 </para>
74
75 <note>
76 <para>
77 Although BLFS usually installs in <filename
78 class="directory">/usr</filename>, when you later upgrade to a newer
79 version of <application>rust</application> the old libraries in <filename
80 class="directory">/usr/lib/rustlib</filename> will remain, with various
81 hashes in their names, but will not be usable and will waste space. The
82 editors recommend placing the files in the <filename
83 class="directory">/opt</filename> directory. In particular, if you
84 have reason to rebuild with a modified configuration (e.g. using the
85 shipped LLVM after building with shared LLVM, perhaps to compile crates
86 for architectures which the BLFS LLVM build does not support)
87 it is possible for the install to leave a broken
88 <command>cargo</command> program. In such a situation, either remove
89 the existing installation first, or use a different prefix such as
90 /opt/rustc-&rust-version;-build2.
91 </para>
92
93 <para>
94 If you prefer, you can of course change the prefix to <filename
95 class="directory">/usr</filename> and omit the
96 <command>ldconfig</command> and the actions to add rustc to the PATH.
97 </para>
98 </note>
99
100 <para>
101 The current <application>rustbuild</application> build-system will use
102 all processors, although it does not scale well and often falls
103 back to just using one core while waiting for a library to compile.
104 However it can be mostly limited to a specified number of processors by
105 a combination of adding the switch <literal>--jobs &lt;N&gt;</literal>
106 (e.g. '--jobs 4' to limit to 4 processors) on each invocation of
107 <command>python3 ./x.py</command> <emphasis>and</emphasis> using an
108 environment variable <envar>CARGO_BUILD_JOBS=&lt;N&gt;</envar>. At the
109 moment this is not effective when some of the rustc tests are run.
110 </para>
111
112 <para>
113 The current version of rust's num_cpus crate now recognizes that cgroups
114 can be used to restrict which processors it is allowed to use. So if your
115 machine lacks DRAM (typically, less than 2GB DRAM per core) that might be
116 an alternative to taking CPUs offline.
117 <phrase revision="sysv">In sysv systems cgroups requires <ulink
118 url="https://sourceforge.net/projects/libcg/">libcgroup</ulink>.</phrase>
119 <phrase revision="systemd">That can apparently be achieved by writing
120 custom unit files.</phrase>
121 </para>
122
123 <para>
124 At the moment <application>Rust</application> does not provide any
125 guarantees of a stable ABI.
126 </para>
127
128 <note>
129 <para>
130 Rustc defaults to building for ALL supported architectures, using a
131 shipped copy of LLVM. In BLFS the build is only for the X86
132 architecture.
133 If you intend to develop rust crates, this build may not be good
134 enough for your purposes.
135 </para>
136 <para>
137 The build times of this version when repeated on the same machine are
138 often reasonably consistent, but as with all compilations using
139 <command>rustc</command> there can be some very slow outliers.
140 </para>
141 <para>
142 Unusually, a DESTDIR-style method is being used to install this package.
143 This is because running the install as root not only downloads all of the
144 cargo files again (to <filename>/root/.cargo</filename>), it then spends
145 a very long time recompiling. Using this method saves a lot of time, at
146 the cost of extra disk space.
147 </para>
148 </note>
149
150 &lfs110a_checked;
151
152 <bridgehead renderas="sect3">Package Information</bridgehead>
153 <itemizedlist spacing="compact">
154 <listitem>
155 <para>
156 Download (HTTP): <ulink url="&rust-download-http;"/>
157 </para>
158 </listitem>
159 <listitem>
160 <para>
161 Download (FTP): <ulink url="&rust-download-ftp;"/>
162 </para>
163 </listitem>
164 <listitem>
165 <para>
166 Download MD5 sum: &rust-md5sum;
167 </para>
168 </listitem>
169 <listitem>
170 <para>
171 Download size: &rust-size;
172 </para>
173 </listitem>
174 <listitem>
175 <para>
176 Estimated disk space required: &rust-buildsize;
177 </para>
178 </listitem>
179 <listitem>
180 <para>
181 Estimated build time: &rust-time;
182 </para>
183 </listitem>
184 </itemizedlist>
185
186<!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
187 <itemizedlist spacing="compact">
188 <listitem>
189 <para>
190 Required patch:
191 <ulink url="&patch-root;/rustc-&rust-version;-llvm9_fixes-1.patch"/>
192 </para>
193 </listitem>
194 </itemizedlist>-->
195
196 <bridgehead renderas="sect3">Rust Dependencies</bridgehead>
197
198 <bridgehead renderas="sect4">Required</bridgehead>
199 <para role="required">
200 <xref linkend="curl"/>,
201 <xref linkend="cmake"/>, and
202 <xref linkend="libssh2"/>
203 </para>
204
205 <bridgehead renderas="sect4">Recommended</bridgehead>
206 <para role="recommended">
207 <package>clang</package> from <xref linkend="llvm"/>
208 (built with -DLLVM_LINK_LLVM_DYLIB=ON so that rust can link to
209 system LLVM instead of building its shipped version)
210 <!-- the versions of LLVM in LFS-10.0, 10.1 and 11.0 are good enough
211 to use for this version of rustc, so do not mention builds
212 using shipped LLVM here, those are a lot bigger.
213 If using an older version, see the config.toml file below re
214 using the shipped llvm, because of rust issue 69225.-->
215 </para>
216
217 <bridgehead renderas="sect4">Optional</bridgehead>
218 <para role="optional">
219 <xref linkend="gdb"/> (used by the testsuite if it is present)
220 </para>
221
222 <para condition="html" role="usernotes">
223 User Notes: <ulink url="&blfs-wiki;/rust"/>
224 </para>
225 </sect2>
226
227 <sect2 role="installation">
228 <title>Installation of Rust</title>
229
230 <para>
231 To install into the
232 <filename class="directory">/opt</filename> directory, remove the symlink
233 and create a new directory (i.e. with a different name if trying a
234 modified build).
235 As the <systemitem class="username">root</systemitem>
236 user:
237 </para>
238
239<screen role="root"><userinput>mkdir /opt/rustc-&rust-version; &amp;&amp;
240ln -svfin rustc-&rust-version; /opt/rustc</userinput></screen>
241
242 <note>
243 <para>
244 If multiple versions of <application>Rust</application> are installed
245 in <filename class="directory">/opt</filename>, changing to another
246 version only requires changing the <filename> /opt/rustc</filename>
247 symbolic link and then running <command>ldconfig</command>.
248 </para>
249 </note>
250
251 <para>
252 Create a suitable <filename>config.toml</filename> file which will
253 configure the build.
254 </para>
255
256<screen><userinput>cat &lt;&lt; EOF &gt; config.toml
257<literal># see config.toml.example for more possible options
258# See the 8.4 book for an example using shipped LLVM
259# e.g. if not installing clang, or using a version before 10.0
260[llvm]
261# by default, rust will build for a myriad of architectures
262targets = "X86"
263
264# When using system llvm prefer shared libraries
265link-shared = true
266
267[build]
268# omit docs to save time and space (default is to build them)
269docs = false
270
271# install cargo as well as rust
272extended = true
273
274[install]
275prefix = "/opt/rustc-&rust-version;"
276docdir = "share/doc/rustc-&rust-version;"
277
278[rust]
279channel = "stable"
280rpath = false
281
282# BLFS does not install the FileCheck executable from llvm,
283# so disable codegen tests
284codegen-tests = false
285
286[target.x86_64-unknown-linux-gnu]
287# NB the output of llvm-config (i.e. help options) may be
288# dumped to the screen when config.toml is parsed.
289llvm-config = "/usr/bin/llvm-config"
290
291[target.i686-unknown-linux-gnu]
292# NB the output of llvm-config (i.e. help options) may be
293# dumped to the screen when config.toml is parsed.
294llvm-config = "/usr/bin/llvm-config"
295
296</literal>
297EOF</userinput></screen>
298
299<!--<para>
300 Adapt rustc to allow it to build and function with the changes in LLVM-9:
301 </para>
302
303<screen><userinput remap="pre">patch -Np1 -i ../rustc-&rust-version;-llvm9_fixes-1.patch</userinput></screen>-->
304
305 <para>
306 Compile <application>Rust</application> by running the following
307 commands:
308 </para>
309
310<!-- fixed in 1.58.0, retain as a reminder that fixed crates can be used
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/' \
313 src/tools/cargo/Cargo.toml &amp;&amp; -->
314
315<screen><userinput>export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi" &amp;&amp;
316python3 ./x.py build --exclude src/tools/miri</userinput></screen>
317
318 <note>
319 <para>
320 The testsuite will generate some messages in the
321 <phrase revision="sysv">system log</phrase>
322 <phrase revision="systemd">systemd journal</phrase>
323 for traps on invalid opcodes, and for segmentation faults.
324 In themselves these are nothing to worry about, just a way for the
325 test to be terminated.
326 </para>
327 </note>
328
329 <para>
330 To run the tests issue <command>python3 ./x.py test --verbose
331 --no-fail-fast | tee rustc-testlog</command>: as with the build, that
332 will use all available CPUs.
333 </para>
334
335 <para>
336 At a minimum, 49 tests will fail: all 48 of the tests in
337 the <quote>assembly</quote> suite which are not skipped (various lints
338 cause the warnings in these tests to be treated as errors), and
339 run-make-fulldeps/long-linker-command-lines.
340<!-- If <command>gdb</command> is installed, another failure
341 (debuginfo/function-names.rs) can be expected.
342 # seems ok with 11.2 ken -->
343 </para>
344
345 <para>
346 As with all large testsuites, other tests might fail on some machines -
347 if the number of additional failures is in the single digits,
348 check the log for 'failures:' and review lines above that, particularly the
349 'stderr:' lines. Any mention of
350 SIGSEGV or signal 11 in a failing test is a cause for concern.
351 </para>
352
353 <para>
354 If you get any <emphasis>other</emphasis> failing test which reports an
355 issue number then you should search for that issue. For example, when
356 rustc &gt;= 1.41.1 was built with a version of sysllvm before 10.0 the test
357 for issue 69225 failed <ulink
358 url="https://github.com/rust-lang/rust/issues/69225"/> and that should be
359 regarded as a critical failure (they released 1.41.1 because of it).
360 Most other failures will not be critical.
361 </para>
362
363 <para>
364 Therefore, you should determine the number of failures.
365 </para>
366
367<!--
368 The total number
369 of tests varies depending on which dependencies are present, e.g. more
370 will be run if <command>gdb</command> is available. If you wish, the
371 total number which were considered can be found if you run:
372 </para>
373
374<screen remap="test"><userinput>egrep 'running [[:digit:]]+ test' rustc-testlog | awk '{ sum += $2 } END { print sum }'</userinput></screen>-->
375
376 <para>
377 The number of tests which failed can be found by running:
378 </para>
379
380<screen remap="test"><userinput>grep '^test result:' rustc-testlog | awk '{ sum += $6 } END { print sum }'</userinput></screen>
381
382 <para>
383 And similarly if you care about how many tests passed use $4, for those
384 which were ignored (i.e. skipped) use $8 (and $10 for 'measured', $12 for
385 'filtered out' but both are probably zero).
386 </para>
387
388 <para>
389 Still as your normal user, do a DESTDIR install:
390 </para>
391
392<screen><userinput>export LIBSSH2_SYS_USE_PKG_CONFIG=1 &amp;&amp;
393DESTDIR=${PWD}/install python3 ./x.py install &amp;&amp;
394unset LIBSSH2_SYS_USE_PKG_CONFIG</userinput></screen>
395
396 <para>
397 Now, as the <systemitem class="username">root</systemitem> user
398 install the files from the DESTDIR:
399 </para>
400
401<screen role="root"><userinput>chown -R root:root install &amp;&amp;
402cp -a install/* /</userinput></screen>
403
404 </sect2>
405
406 <sect2 role="commands">
407 <title>Command Explanations</title>
408
409 <para>
410 <command>ln -svfn rustc-&rust-version; /opt/rustc</command>: if this is
411 not the first use of the <filename class="directory">/opt/rustc</filename>
412 symlink, overwrite it by forcing, and use the '-n' flag to avoid getting
413 confusing results from e.g. <command>ls -l</command>.
414 </para>
415
416 <para>
417 <command>targets = "X86"</command>: this avoids building all the available
418 linux cross-compilers (Aarch64, MIPS, PowerPC, SystemZ, etc). Unfortunately,
419 rust insists on installing source files for these below
420 <filename class="directory">/opt/rustc/lib/src</filename>.
421 </para>
422
423 <para>
424 <command>extended = true</command>: this installs Cargo alongside Rust.
425 </para>
426
427 <para>
428 <command>channel = "stable"</command>: this ensures only stable features
429 can be used, the default in <filename>config.toml</filename> is to use
430 development features, which is not appropriate for a released version.
431 </para>
432
433 <para>
434 <command>rpath = false</command>: by default, <command>rust</command> can
435 be run from where it was built, without being installed. That adds DT_RPATH
436 entries to all of the ELF files, which produces very messy output from
437 <command>ldd</command>, showing the libraries in the place they were built,
438 even if they have been deleted from there after the install.
439 </para>
440
441 <!-- comment while using shipped LLVM -->
442 <para>
443 <command>[target.x86_64-unknown-linux-gnu]</command>: the syntax of
444 <filename>config.toml</filename> requires an <literal>llvm-config</literal>
445 entry for each target for which system-llvm is to be used. Change the target
446 to <literal>[target.i686-unknown-linux-gnu]</literal> if you are building
447 on 32-bit x86. This whole section may be omitted if you wish to build
448 against the shipped llvm, or do not have clang, but the resulting build will
449 be larger and take longer.
450 </para>
451
452<!--<para>
453 <command>sed -i -e '/^curl /s/0.4.38/0.4.40/' ... </command>: two crates
454 normally downloaded for this release do not correctly initialise
455 <application>curl</application> if using
456 <application>openssl-3.0.0</application>. Upstream has fixed that for a
457 future release, this sed causes the fixed versions to be used.
458 </para>-->
459
460 <para>
461 <command>export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"</command>:
462 This adds a link to libffi to any RUSTFLAGS you may already be passing
463 to the build. On some systems, linking fails to include libffi unless
464 this is used. The reason why this is needed is not clear.
465 </para>
466
467 <para>
468 <command>--exclude src/tools/miri</command>: For a long time, the miri
469 crate (an interpreter for the Midlevel Intermediate Representation)
470 has failed to build on releases. It is optional, but the failure
471 messages can persuade people that the whole build failed. However,
472 although it is not built in the main compile, with rustc-1.35.0 it
473 now got compiled during the install, but it was broken in that version.
474 <!-- might be unbroken in 1.36.0, if so remove broken from description
475 of miri below. https://github.com/rust-lang/rust/issues/61830 -->
476 Omitting it should save a little time.
477 </para>
478
479 <para>
480 <command>--verbose</command>: this switch can sometimes provide more
481 information about a test which fails.
482 </para>
483
484 <para>
485 <command>--no-fail-fast</command>: this switch ensures that the testsuite
486 will not stop at the first error.
487 </para>
488
489 <para>
490 <command>export LIBSSH2_SYS_USE_PKG_CONFIG=1</command>: On some systems,
491 cairo fails to link during the install because it cannot find libssh2.
492 This seems to fix it, but again the reason why the problem occurs is not
493 understood.
494 </para>
495
496 <para>
497 <command>DESTDIR=${PWD}/install python3 ./x.py install</command>: This
498 effects a DESTDIR-style install in the source tree,creating an <filename
499 class="directory">install</filename> directory. Note that DESTDIR installs
500 need an absolute path, passing 'install' will not work.
501 </para>
502
503 <para>
504 <command>chown -R root:root install</command>: the DESTDIR install
505 was run by a regular user, who owns the files. For security, change their
506 owner before doing a simple copy to install them.
507 </para>
508
509 </sect2>
510
511 <sect2 role="configuration">
512 <title>Configuring Rust</title>
513
514 <sect3 id="rustc-config">
515 <title>Configuration Information</title>
516
517 <para>
518 If you installed <application>rustc</application> in
519 <filename class="directory">/opt</filename>, you need to update the
520 following configuration files so that <application>rustc</application>
521 is correctly found by other packages and system processes.
522 </para>
523
524 <para>
525 As the <systemitem class="username">root</systemitem> user, update
526 the <filename>/etc/ld.so.conf</filename> file and the dynamic linker's
527 run-time cache file:
528 </para>
529
530<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
531<literal># Begin rustc addition
532
533/opt/rustc/lib
534
535# End rustc addition</literal>
536EOF
537
538ldconfig</userinput></screen>
539
540 <indexterm zone="rust rustc-config">
541 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
542 </indexterm>
543
544 <para>
545 As the <systemitem class="username">root</systemitem> user, create
546 the <filename>/etc/profile.d/rustc.sh</filename> file:
547 </para>
548
549<screen role="root"><userinput>cat &gt; /etc/profile.d/rustc.sh &lt;&lt; "EOF"
550<literal># Begin /etc/profile.d/rustc.sh
551
552pathprepend /opt/rustc/bin PATH
553
554# End /etc/profile.d/rustc.sh</literal>
555EOF</userinput></screen>
556
557 <para>
558 Immediately after installation, update the current PATH
559 for your current shell as a normal user:
560 </para>
561
562<screen><userinput>source /etc/profile.d/rustc.sh</userinput></screen>
563
564 </sect3>
565 </sect2>
566
567
568 <sect2 role="content">
569 <title>Contents</title>
570
571 <segmentedlist>
572 <segtitle>Installed Programs</segtitle>
573 <segtitle>Installed Libraries</segtitle>
574 <segtitle>Installed Directories</segtitle>
575
576 <seglistitem>
577 <seg>
578 cargo-clippy, cargo-fmt, cargo-miri (optional), cargo, clippy-driver,
579 miri (optional),
580 rls, rust-demangler, rust-gdb, rust-gdbgui, rust-lldb, rustc,
581 rustdoc, rustfmt.
582 </seg>
583 <seg>
584 librustc-driver-&lt;16-byte-hash&gt;.so,
585 libstd-&lt;16-byte-hash&gt;.so, and
586 libtest-&lt;16-byte-hash&gt;.so
587 </seg>
588 <seg>
589 ~/.cargo,
590 /opt/rustc, symbolic link to
591 /opt/rustc-&rust-version;
592 </seg>
593 </seglistitem>
594 </segmentedlist>
595
596 <variablelist>
597 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
598 <?dbfo list-presentation="list"?>
599 <?dbhtml list-presentation="table"?>
600
601 <varlistentry id="cargo-clippy">
602 <term><command>cargo-clippy</command></term>
603 <listitem>
604 <para>
605 provides lint checks for a cargo package
606 </para>
607 <indexterm zone="rust cargo-clippy">
608 <primary sortas="b-cargo-clippy">cargo-clippy</primary>
609 </indexterm>
610 </listitem>
611 </varlistentry>
612
613 <varlistentry id="cargo-fmt">
614 <term><command>cargo-fmt</command></term>
615 <listitem>
616 <para>
617 formats all bin and lib files of the current crate using
618 rustfmt
619 </para>
620 <indexterm zone="rust cargo-fmt">
621 <primary sortas="b-cargo-fmt">cargo-fmt</primary>
622 </indexterm>
623 </listitem>
624 </varlistentry>
625
626 <varlistentry id="cargo-miri">
627 <term><command>cargo-miri</command></term>
628 <listitem>
629 <para>
630 <!-- FIXME reword to 'is used by' if Miri installed
631 AND works enough to report its \-\-help -->
632 is for use by Miri to interpret bin crates and tests
633 </para>
634 <indexterm zone="rust cargo-miri">
635 <primary sortas="b-cargo-miri">cargo-miri</primary>
636 </indexterm>
637 </listitem>
638 </varlistentry>
639
640 <varlistentry id="cargo">
641 <term><command>cargo</command></term>
642 <listitem>
643 <para>
644 is the Package Manager for Rust
645 </para>
646 <indexterm zone="rust cargo">
647 <primary sortas="b-cargo">cargo</primary>
648 </indexterm>
649 </listitem>
650 </varlistentry>
651
652 <varlistentry id="clippy-driver">
653 <term><command>clippy-driver</command></term>
654 <listitem>
655 <para>
656 provides lint checks for Rust
657 </para>
658 <indexterm zone="rust clippy-driver">
659 <primary sortas="b-clippy-driver">clippy-driver</primary>
660 </indexterm>
661 </listitem>
662 </varlistentry>
663
664 <varlistentry id="miri">
665 <term><command>miri</command></term>
666 <listitem>
667 <para>
668 is an interpreter for Rust's mid-level intermediate representation
669 (MIR). It is broken in this version
670 </para>
671 <indexterm zone="rust miri">
672 <primary sortas="b-miri">miri</primary>
673 </indexterm>
674 </listitem>
675 </varlistentry>
676
677 <varlistentry id="rls">
678 <term><command>rls</command></term>
679 <listitem>
680 <para>
681 is the Rust Language Server. This can run in the background to
682 provide IDEs, editors, and other tools with information about Rust
683 programs
684 </para>
685 <indexterm zone="rust rls">
686 <primary sortas="b-rls">rls</primary>
687 </indexterm>
688 </listitem>
689 </varlistentry>
690
691 <varlistentry id="rust-analyzer">
692 <term><command>rust-analyzer</command></term>
693 <listitem>
694 <para>
695 is an implementation of Language Server Protocol for the Rust
696 programming language.
697 </para>
698 <indexterm zone="rust rust-analyzer">
699 <primary sortas="b-rust-analyzer">rust-analyzer</primary>
700 </indexterm>
701 </listitem>
702 </varlistentry>
703
704 <varlistentry id="rust-gdb">
705 <term><command>rust-gdb</command></term>
706 <listitem>
707 <para>
708 is a wrapper script for gdb, pulling in Python pretty-printing
709 modules installed in
710 <filename class="directory">/opt/rustc-&rust-version;/lib/rustlib/etc</filename>
711 </para>
712 <indexterm zone="rust rust-gdb">
713 <primary sortas="b-rust-gdb">rust-gdb</primary>
714 </indexterm>
715 </listitem>
716 </varlistentry>
717
718 <varlistentry id="rust-gdbgui">
719 <term><command>rust-gdbgui</command></term>
720 <listitem>
721 <para>
722 is a wrapper script for a graphical front end to gdb that runs in a
723 browser
724 </para>
725 <indexterm zone="rust rust-gdbgui">
726 <primary sortas="b-rust-gdbgui">rust-gdbgui</primary>
727 </indexterm>
728 </listitem>
729 </varlistentry>
730
731 <varlistentry id="rust-lldb">
732 <term><command>rust-lldb</command></term>
733 <listitem>
734 <para>
735 is a wrapper script for LLDB (the LLVM debugger)
736 pulling in the Python pretty-printing modules
737 </para>
738 <indexterm zone="rust rust-lldb">
739 <primary sortas="b-rust-lldb">rust=lldb</primary>
740 </indexterm>
741 </listitem>
742 </varlistentry>
743
744 <varlistentry id="rustc">
745 <term><command>rustc</command></term>
746 <listitem>
747 <para>
748 is the rust compiler
749 </para>
750 <indexterm zone="rust rustc">
751 <primary sortas="b-rustc">rustc</primary>
752 </indexterm>
753 </listitem>
754 </varlistentry>
755
756 <varlistentry id="rustdoc">
757 <term><command>rustdoc</command></term>
758 <listitem>
759 <para>
760 generates documentation from rust source code
761 </para>
762 <indexterm zone="rust rustdoc">
763 <primary sortas="b-rustdoc">rustdoc</primary>
764 </indexterm>
765 </listitem>
766 </varlistentry>
767
768 <varlistentry id="rustfmt">
769 <term><command>rustfmt</command></term>
770 <listitem>
771 <para>
772 formats rust code
773 </para>
774 <indexterm zone="rust rustfmt">
775 <primary sortas="b-rustfmt">rustfmt</primary>
776 </indexterm>
777 </listitem>
778 </varlistentry>
779
780 <varlistentry id="libstd">
781 <term><filename class="libraryfile">libstd-&lt;16-byte-hash&gt;.so</filename></term>
782 <listitem>
783 <para>
784 is the Rust Standard Library, the foundation of portable Rust software
785 </para>
786 <indexterm zone="rust libstd">
787 <primary sortas="c-libstd">libstd-&lt;16-byte-hash&gt;.so</primary>
788 </indexterm>
789 </listitem>
790 </varlistentry>
791 </variablelist>
792 </sect2>
793
794</sect1>
Note: See TracBrowser for help on using the repository browser.