Generate docs *without* including source code


I would like to generate rustdoc that doesn't contain the crates sources. In best case the source is not in the pages and the src button (on the right) is not there. The documentation of rustdoc did't offer me a solution for that.

I probably could create a facade crate with a 1:1 copy of my crates interface but this feels odd...

Any ideas?

Thanks @flxo

I think you need to use #![doc(html_no_source)].

1 Like

Dam. Missed that. Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.