| Crates.io | term-rustdoc |
| lib.rs | term-rustdoc |
| version | 0.2.0 |
| created_at | 2024-03-02 14:18:51.963976+00 |
| updated_at | 2024-03-16 06:45:19.686834+00 |
| description | A TUI for Rust docs. |
| homepage | |
| repository | https://github.com/zjp-CN/term-rustdoc |
| max_upload_size | |
| id | 1159735 |
| size | 435,270 |
A TUI for Rust docs that aims to improve the UX on tree view and generic code.
This tool utilizes the nightly compiler to compile JSON doc for a package. Therefore, make sure the nightly toolchain is usable on your machine.
It's recommended to have rust-docs-json too, so you can run:
rustup rustup toolchain install nightly --component rust-docs-json
# or add the component if nightly toolchain lacks it
rustup component add --toolchain nightly rust-docs-json
rustup update nightly
This tool is very immature, and far from the target for now. It only provides the basic ability to compile and cache docs, and view markdown docs.
Key shortcuts or usage help can be found via F1 key press.
More screen shots can be found here.
Type and its ownership variants &Type / &mut Type is
impl Trait for Type vs &mut Type vs &Type vs Box<Type>)~/.cargo/registry/src/ contains the official crates.io registry and other mirror/custom registries~/.cargo/registry/index/ contains the API URLs to query or download crates from these registriesMainly steal from id_from_item_inner
[IMPL:]CRATE_ID:ITEM_ID[:NAME_ID][-EXTRA]:
impl
a: for auto implsb: for blanket implsname is the item's name if available (it's not for impl blocks for example).extra is used for reexports: it contains the ID of the reexported item. It is used to allow
to have items with the same name but different types to both appear in the generated JSON.