Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Indicating which version of a crate generated docs are for

Tags:

rust

rustdoc

When you generate documentation for a Rust crate with Cargo and rustdoc, I don't see any indication in the generated pages which version of the crate it's for. For example, take a look at the log crate's documentation. Is there a way to know which version of the crate a set of docs are for?

like image 469
Jimmy Avatar asked Oct 19 '22 12:10

Jimmy


1 Answers

There isn't a straight forward way to do this, but there is an issue about it. You may be able to hack something that uses the "extra html" feature of rustdoc though.

like image 186
Shepmaster Avatar answered Oct 22 '22 21:10

Shepmaster