Ruin0x11 / oxidoc

A command line interface to Rust documentation
102 stars 15 forks source link
rust

oxidoc

oxidoc is a command-line interface to Rust documentation.

screenshot

It is alpha-quality software, so some documentation may not be indexed or other strange things may happen.

Building

Before building the crate, make sure that you have install all needed dependencies in the system:

To intall them in Debian GNU/Linux or Ubnutu, do the following:

apt-get install cmake libncursesw6-dev

Build the crate:

cargo build --release

In order to generate documentation for the standard library, the RUST_SRC_PATH environment variable has to be set with the path of the Rust source code.

Generate documentation for all crates in ~/.cargo/registry/src and the standard library:

oxidoc -g all

Generate documentation for the specified crate source directory:

oxidoc -g ~/build/oxidoc/

The generated documentation currently lives in ~/.cargo/registry/doc.

Usage

Provide either an identifier or a partially/fully qualified module path as a search query:

oxidoc rand
oxidoc vec::Vec
oxidoc serde::de::DeserializeOwned

TODO