Conversation

Jarkko Sakkinen

The only #Rust tutorial you ever need is:

cargo doc --open -p <crate>

This opens documentation in the web browser for any crate that a project might be using.

Example would end up opening documentation for env_logger:

cargo add env_logger
cargo doc --open -p env_logger

#rustlang

2
5
21

@jarkko Have you checked the amount of documentation in for example windows crate? ;)

1
0
0
@oherrala It is still better than auto-complete lottery, Internet forums and ChatGPT ;-)
1
0
2
That said, file path complete in vim is great (C-x and f) if that is considered as auto-complete :-)

Right and BTW I use ctags [not lsp] ;-)
0
0
0

@jarkko whoa, somehow this makes me feel more obligated to write better docs and samples when building libraries now 😅...

Thank you for the tip!

1
0
1
@chez14 Yeah, I think this should be one of first things to learn with Rust ;-) It has super-accessible documentation.
0
0
0