rustdoc-index

Crates.iorustdoc-index
lib.rsrustdoc-index
version0.7.1
sourcesrc
created_at2021-03-31 14:05:01.371751
updated_at2022-07-05 14:07:54.692684
descriptionA fast listing tool for rustdoc
homepage
repositoryhttps://github.com/octaltree/rustdoc-index
max_upload_size
id376162
size49,113
octaltree (octaltree)

documentation

https://docs.rs/rustdoc-index/

README

rustdoc-index

crates.io docs.rs

A tool to quickly find the relevant item from rustdoc.

Installation

$ cargo install rustdoc-index $ rustup component add rust-docs

It requires Rust 1.53 that is now avaible on stable.

Usage

$ 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)'

Vim integration

denite source is available.

Installation

This is how to install using dein.

[[plugins]]
repo = 'octaltree/rustdoc-index'
build = 'make denite'

Usage

:Denite rustdoc-index

This is highly inspired by rhysd/rust-doc.vim. If you need the unite interface, please use that one.

Commit count: 86

cargo fmt