<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustdoc/html/static, branch 1.80.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.80.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.80.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-05-07T16:12:54+00:00</updated>
<entry>
<title>Rollup merge of #124738 - notriddle:notriddle/search-form-js, r=GuillaumeGomez</title>
<updated>2024-05-07T16:12:54+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-05-07T16:12:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7af9ad1465c32eaa6abdd4469161042467ad01ec'/>
<id>urn:sha1:7af9ad1465c32eaa6abdd4469161042467ad01ec</id>
<content type='text'>
rustdoc: dedup search form HTML

This change constructs the search form HTML using JavaScript, instead of plain HTML. It uses a custom element because

- the [parser]'s insert algorithm runs the connected callback synchronously, so we won't get layout jank
- it requires very little HTML, so it's a real win in size

[parser]: https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-the-token

This shrinks the standard library by about 60MiB, by my test.

There should be no visible changes. Just use less disk space.
</content>
</entry>
<entry>
<title>Rollup merge of #124765 - GuillaumeGomez:fix-wrong-cog-colotr, r=notriddle</title>
<updated>2024-05-06T04:21:04+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-05-06T04:21:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b0fb3c56e012492721d475dabb952610a85dc553'/>
<id>urn:sha1:b0fb3c56e012492721d475dabb952610a85dc553</id>
<content type='text'>
[rustdoc] Fix bad color for setting cog in ayu theme

Before:

![Screenshot from 2024-05-05 19-29-36](https://github.com/rust-lang/rust/assets/3050060/e1f078e5-7fb3-472d-91e7-b4bde551d411)

After:

![image](https://github.com/rust-lang/rust/assets/3050060/0aa115ac-dd69-48e1-b93e-067a39cf25d2)

r? ````@notriddle````
</content>
</entry>
<entry>
<title>Fix bad color for setting cog in ayu theme</title>
<updated>2024-05-05T18:07:12+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2024-05-05T17:27:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0cbebd07ee23cacccf0fa5522d658a3ebfc4c19f'/>
<id>urn:sha1:0cbebd07ee23cacccf0fa5522d658a3ebfc4c19f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc: dedup search form HTML</title>
<updated>2024-05-05T15:15:08+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2024-05-05T05:31:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eeb59f16a5f40e14dc29b95155b7f2569329e3ec'/>
<id>urn:sha1:eeb59f16a5f40e14dc29b95155b7f2569329e3ec</id>
<content type='text'>
This change constructs the search form HTML using JavaScript, instead of plain HTML. It uses a custom element because

- the [parser]'s insert algorithm runs the connected callback synchronously, so we won't get layout jank
- it requires very little HTML, so it's a real win in size

[parser]: https://html.spec.whatwg.org/multipage/parsing.html#create-an-element-for-the-token

This shrinks the standard library by about 60MiB, by my test.
</content>
</entry>
<entry>
<title>Rollup merge of #124148 - notriddle:notriddle/reference, r=GuillaumeGomez</title>
<updated>2024-05-05T14:42:46+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2024-05-05T14:42:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=042d0f5266f474491852b2055732698fceb41f14'/>
<id>urn:sha1:042d0f5266f474491852b2055732698fceb41f14</id>
<content type='text'>
rustdoc-search: search for references

This feature extends rustdoc with syntax and search index information for searching borrow references. Part of https://github.com/rust-lang/rust/issues/60485

## Preview

- [`&amp;mut`](https://notriddle.com/rustdoc-html-demo-11/reference/std/index.html?search=%26mut)
- [`&amp;Option&lt;T&gt; -&gt; Option&lt;&amp;T&gt;`](https://notriddle.com/rustdoc-html-demo-11/reference/std/index.html?search=%26Option%3CT%3E%20-%3E%20Option%3C%26T%3E)
- [`&amp;mut Option&lt;T&gt; -&gt; Option&lt;&amp;mut T&gt;`](https://notriddle.com/rustdoc-html-demo-11/reference/std/index.html?search=%26mut%20Option%3CT%3E%20-%3E%20Option%3C%26mut%20T%3E)

Updated chapter of the book: https://notriddle.com/rustdoc-html-demo-11/reference/rustdoc/read-documentation/search.html

## Motivation

See https://github.com/rust-lang/rust/pull/119676

## Guide-level explanation

You can't search by lifetimes, but other than that it's the same syntax references normally use.

## Reference-level description

&lt;table&gt;
&lt;thead&gt;
  &lt;tr&gt;
    &lt;th&gt;Shorthand&lt;/th&gt;
    &lt;th&gt;Explicit names&lt;/th&gt;
  &lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
  &lt;tr&gt;&lt;td colspan="2"&gt;Before this PR&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;[]&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;primitive:slice&lt;/code&gt; and/or &lt;code&gt;primitive:array&lt;/code&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;[T]&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;primitive:slice&amp;lt;T&amp;gt;&lt;/code&gt; and/or &lt;code&gt;primitive:array&amp;lt;T&amp;gt;&lt;/code&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;!&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;primitive:never&lt;/code&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;()&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;primitive:unit&lt;/code&gt; and/or &lt;code&gt;primitive:tuple&lt;/code&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;(T)&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;T&lt;/code&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;(T,)&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;primitive:tuple&amp;lt;T&amp;gt;&lt;/code&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;(T, U -&gt; V, W)&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;fn(T, U) -&gt; (V, W)&lt;/code&gt;, Fn, FnMut, and FnOnce&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;&lt;td colspan="2"&gt;New additions with this PR&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;&amp;&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;primitive:reference&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;&amp;mut&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;primitive:reference&amp;lt;keyword:mut&amp;gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;&amp;T&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;primitive:reference&amp;lt;T&amp;gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;&lt;code&gt;&amp;mut T&lt;/code&gt;&lt;/td&gt;
    &lt;td&gt;&lt;code&gt;primitive:reference&amp;lt;keyword:mut, T&amp;gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

### Search query grammar

&lt;code&gt;&lt;pre&gt;&lt;strong&gt;borrow-ref = AMP *WS [MUT] *WS [arg]&lt;/strong&gt;
arg = [type-filter *WS COLON *WS] (path [generics] / slice-like / tuple-like / &lt;strong&gt;borrow-ref&lt;/strong&gt;)&lt;/pre&gt;&lt;/code&gt;

```
AMP = "&amp;"
MUT = "mut"
```

## Future direction

As described in https://github.com/rust-lang/rust/pull/118194 and https://github.com/rust-lang/rust/pull/119676

* The remaining type expression grammar (this is another step in the type expression grammar: `ReferenceType` is now supported)
* Search subtyping and traits
</content>
</entry>
<entry>
<title>Add some missing comments to describe what the inlined SVG is</title>
<updated>2024-04-28T15:23:12+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2024-04-10T18:36:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5a3509c2f47758cc714381bc2f2fa68583bd5a5a'/>
<id>urn:sha1:5a3509c2f47758cc714381bc2f2fa68583bd5a5a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Inline `wheel.svg` into CSS</title>
<updated>2024-04-28T15:23:12+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2024-04-10T18:29:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f780913c722a78ab87e3fea10af4b75c0e4c1b66'/>
<id>urn:sha1:f780913c722a78ab87e3fea10af4b75c0e4c1b66</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Inline `clipboard.svg` into CSS</title>
<updated>2024-04-28T15:23:11+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume.gomez@huawei.com</email>
</author>
<published>2024-04-10T18:14:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f5b3b400f7c5f85d3e0a821d83f41b2b71985f9b'/>
<id>urn:sha1:f5b3b400f7c5f85d3e0a821d83f41b2b71985f9b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc-search: add parser for `&amp;` syntax</title>
<updated>2024-04-19T21:31:21+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2024-04-19T04:30:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3c4e180e681e9c3e8c68de51585a1debd1f4bbdb'/>
<id>urn:sha1:3c4e180e681e9c3e8c68de51585a1debd1f4bbdb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustdoc-search: fix description on aliases in results</title>
<updated>2024-04-19T05:21:29+00:00</updated>
<author>
<name>Michael Howell</name>
<email>michael@notriddle.com</email>
</author>
<published>2024-04-19T05:20:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2e7d9e9acbdb48620e347529796bf1e35fd97c19'/>
<id>urn:sha1:2e7d9e9acbdb48620e347529796bf1e35fd97c19</id>
<content type='text'>
This needs to start downloading the descriptions after aliases
have been added to the result set.
</content>
</entry>
</feed>
