A tool to quickly find the relevant item from rustdoc.
$ cargo install rustdoc-index $ rustup component add rust-docs
It requires Rust 1.53 that is now avaible on stable.
$ cargo listdoc
std::prelude mod
std::prelude::v1 mod
std::prelude::rust_2015 mod
std::prelude::rust_2018 mod
std::prelude::rust_2021 mod
std::f32 mod
std::f32::consts mod
std::f32::consts::PI constant
std::f32::consts::TAU constant
std::f32::consts::FRAC_PI_2 constant
...
$ cargo listdoc location "std::f32::consts::PI constant"
file:///home/octaltree/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/doc/rust/html/std/f32/consts/constant.PI.html
With junegunn/fzf
cargo listdoc | fzf --bind 'ctrl-i:execute(cargo listdoc location {}| xargs firefox)'
denite source is available.
This is how to install using dein.
[[plugins]]
repo = 'octaltree/rustdoc-index'
build = 'make denite'
:Denite rustdoc-index
This is highly inspired by rhysd/rust-doc.vim. If you need the unite interface, please use that one.