> Aquamarine is a procedural macro extension for rustdoc, that aims to improve the visual component of Rust documentation through use of the mermaid.js diagrams.
Quite neat. I’m unsure what are the benefits over providing an image (even vectorised, eg SVG), but it’s possible.
The rustdoc search query syntax evolved a bit: whitespace characters are not considered the same as , anymore but instead as equivalent of ::. Example:
@janriemer@laund Discussed and rejected. You can see some screenshots of the results in the few PRs on this feature. Basically, it was too much visual information and also shifted focus from the "primary" information. We want the users attention to be first on the result itself, then eventually on the docs/type name.
The type of the item is now before the item name in rustdoc search results (first text on the left). It should make it much easier for everyone to make it more obvious what each type is without having to remember colors.
It seems like the re-export fixes marathon in rustdoc is finished (let's cross fingers!). My PR to document re-exports behaviour in rustdoc just got merged (https://github.com/rust-lang/rust/pull/112304)! \o/
I'll make another post once the chapter will be available in the rustdoc book.
More work on rustdoc re-exports. I continue to fix the corner cases I find around. Hopefully (strong hopes) we'll have an official handling of re-exports and its documentation ready in the next weeks.
Je viens tout juste de mettre à jour mon tutoriel pour apprendre le langage Rust en français. Notamment les parties sur les durées de vie et la généricité. Vous pouvez voir tout ça ici : https://blog.guillaume-gomez.fr/Rust
docs.rs navigation should now be much faster overall: the release list is now only loaded when the dropdown menu is opened, greatly reducing the default amount of data downloaded and rendered.
I have some improvements and fixes for the sysinfo crate that I've been wanted to do for weeks but can't find the time for it... T_T
One of them I discovered thanks to @slomo is that some C functions could error with "EINTR", which means you should call it again and not return with an error. The more you know...