Knowledge Garden

Search

Search IconIcon to open search

Documentation in Rust

Last updated Dec 1, 2022 Edit Source

# Documentation

use the command cargo doc –no-deps –open the extra stuff only generates docs for your code.

links are wikilinks adding backticks makes it formatted different. you can use standard like formats too []() with a relative or absolute path if not in scope

there are also inner code documentation comments

1
2
3
4
//! inner
/*! !*/ inner block
/// outer
/** **/ outer block

user inner for libraries and modules, everything else use outer.