Questions tagged [cargo-doc]
2 questions
6
votes
2 answers
Is there any way to inline a const inside a doc comment (rendered by cargo doc)?
With "default" constructors, it can be useful to document what the… defaults are. If this is textually defined in the doc and separately defined as a literal or a static / const, the two can get out of sync:
impl Foo {
/// Creates a [Foo] with a…

Masklinn
- 34,759
- 3
- 38
- 57
5
votes
1 answer
How to use a local file as crate logo when generating rustdoc?
It is possible to set both the favicon and the logo of the rustdoc for a crate by using:
#![doc(html_favicon_url = "/favicon.ico")]
#![doc(html_logo_url = "/logo.png")]
as documented here.
However I do not want to upload my logo…

frankenapps
- 5,800
- 6
- 28
- 69