Re: [PATCH v6 0/2] docs: Integrate rustdoc into Rust documentation

From: Miguel Ojeda
Date: Fri Feb 03 2023 - 19:05:38 EST


On Fri, Feb 3, 2023 at 6:55 PM Jonathan Corbet <corbet@xxxxxxx> wrote:
>
> - I dumped my Fedora toolchain and did the curl|bash ritual to set up
> the proper versions with rustup. It would be nice to have some better
> documentation on how to do that ... *how* to install bindgen may not
> be obvious to all users. It also failed until I installed lld
> separately.

Are you referring to the Quick Start guide? I am asking because the
guide has a one-line command ready for copy-paste to install
`bindgen`, so I guess you mean something else (?). It also notes that
there are standalone installers available (if you don't want `rustup`)
-- I will change the URL to point directly to the page with the
installers, though, since that should help.

The script behind `make rustavailable` is getting a bunch of
improvements (and tests) in an ongoing patch series -- I will check
the `lld` issue for v2 too. If you don't mind it, I will Cc you then,
in case you could give it a try and confirm it helped.

Thanks!

> I'd really like to see a solution that (1) doesn't kill the docs build
> process if the tool versions are wrong, and (2) doesn't force the
> creation of a kernel configuration. What are our chances of getting
> there?

It may be quite involved, since a few artifacts from the normal build
would be needed [1]. Since some things in the build system will likely
change anyway, it is probably best to come back to this after that.
What do you think, Carlos? Or would you like to give it a try?

[1] https://lore.kernel.org/linux-doc/CANiq72mC+WzOxhZVtEvnsFYzuBPkd51=TYXK01ztcTZ-CAcUiw@xxxxxxxxxxxxxx/

Cheers,
Miguel