Cargo doc output to pdf?

OK, cargo doc output doc string to html is great. How can I render the doc to pdf? Anyone know any tool? Thank you!

Are you looking at converting a single page to pdf? Or all the pages output by cargo doc? There are plenty of tools out there for a single page. I'm not aware of any to convert a many pages to a single pdf.

I'm looking for a tool like Doxygen for Python, it allows you to output those docstring to HTML or pdf.

Wkhtmltopdf might work.

Cd to the directory with documentation and

find -name '*.html' -execdir wkhtmltopdf {} {}.pdf \;

will generate a .pdf file for every .html file there.

There is no inbuilt tool in Rust for outputting to a pdf.

This may do

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.