rust - How can I include private modules when generating documentation via Cargo? -


i'm working on project rust , cargo. works well, encounter little issue: code reuse, of project inside lib crate. in crate, lot of things private. when cargo doc, have documentation public, exported stuff... great, because it's easy see exported , not.

but have admit: miss complete documentation of whole project, development purpose...

this can done passing arguments rustdoc, after --, eg.

cargo rustdoc -- \     --no-defaults \     --passes strip-hidden \     --passes collapse-docs \     --passes unindent-comments \     --passes strip-priv-imports 

based on @shepmaster's answer, no need manual copy-pasting.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -