rust/src
Yuki Okushi 75f17ed909
Rollup merge of #98124 - jsha:defer-crates, r=GuillaumeGomez
Improve loading of crates.js and sidebar-items.js

Now that the "All Crates" dropdown is only rendered on the search results page,
there is no need to load crates.js on most pages. Load it only on crate pages.
Also, add the `defer` attribute so it does not block HTML parsing.

For sidebar-items.js, move the script tag to `<head>`. Since it already has the
defer attribute it won't block loading. The defer attribute does preserve
ordering between scripts, so instead of the callback on load, it can set a
global variable on load, which is slightly simpler. Also, since it is required
to finish rendering the page, beginning its load earlier is better.

Remove generation and handling of sidebar-vars. Everything there can be computed
with information available in JS via other means.

Remove the extra_scripts fields of the `Page` template. They were only
used by source-script.js and source-files.js, which are now linked by the template
based on whether it is rendering a source page.

Remove the "other" wrapper in the sidebar. It was unnecessary.

r? ```@GuillaumeGomez```

Demo: https://rustdoc.crud.net/jsha/defer-crates/std/index.html
2022-06-21 20:08:11 +09:00
..
bootstrap Auto merge of #97268 - jyn514:faster-assemble, r=Mark-Simulacrum 2022-06-19 22:22:07 +00:00
ci Update FreeBSD toolchain to 12.3 2022-06-10 15:14:31 +02:00
doc Auto merge of #95897 - AzureMarker:feature/horizon-std, r=nagisa 2022-06-15 14:21:28 +00:00
etc Rollup merge of #98105 - notriddle:notriddle/tuple-links, r=jsha 2022-06-19 15:26:27 +02:00
librustdoc Rollup merge of #98124 - jsha:defer-crates, r=GuillaumeGomez 2022-06-21 20:08:11 +09:00
llvm-project@c9e2e89ed3 Update LLVM submodule 2022-06-03 15:57:32 +02:00
rustdoc-json-types rustdoc-json: Fix HRTBs for WherePredicate::BoundPredicate 2022-05-04 21:03:01 +02:00
test Rollup merge of #98124 - jsha:defer-crates, r=GuillaumeGomez 2022-06-21 20:08:11 +09:00
tools Auto merge of #98242 - matthiaskrgr:rollup-qbbkwtf, r=matthiaskrgr 2022-06-19 00:25:25 +00:00
README.md
stage0.json change stage0.json to reduce the chance of merge conflicts 2022-06-09 19:43:11 +02:00
version Bump to 1.63 2022-05-13 10:08:03 -04:00

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.