mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
5b44bfda7f
The descriptions are, on almost all crates[^1], the majority of the size of the search index, even though they aren't really used for searching. This makes it relatively easy to separate them into their own files. This commit also bumps us to ES8. Out of the browsers we support, all of them support async functions according to caniuse. https://caniuse.com/async-functions [^1]: <https://microsoft.github.io/windows-docs-rs/>, a crate with 44MiB of pure names and no descriptions for them, is an outlier and should not be counted.
11 lines
227 B
Rust
11 lines
227 B
Rust
#![crate_name = "foo"]
|
|
|
|
// @hasraw 'search.desc/foo/foo-desc-0-.js' 'Foo short link.'
|
|
// @!hasraw - 'www.example.com'
|
|
// @!hasraw - 'More Foo.'
|
|
|
|
/// Foo short [link](https://www.example.com/).
|
|
///
|
|
/// More Foo.
|
|
pub struct Foo;
|