zjp-CN / term-rustdoc

[WIP] A TUI for Rust docs that aims to improve the UX on tree view and generic code.
17 stars 1 forks source link

Reexported external items need external crates compiled to know the details #8

Open zjp-CN opened 6 months ago

zjp-CN commented 6 months ago

nucleo is an example for this.

截图_20240301134538

pub use nucleo_matcher::{chars, Config, Matcher, Utf32Str, Utf32String}; is written under root, but not shown in term-rustdoc for now.

They are not in IndexMap which is the only source for Import kind. They are in PathMap, but only without any details.

https://github.com/zjp-CN/term-rustdoc/blob/4591e8b24e2d01a13531874267029e9fcf4544c0/src/tree/nodes/imports.rs#L33

zjp-CN commented 6 months ago

https://github.com/zjp-CN/term-rustdoc/commit/07f9e84e2ec67a56f87efc2606ed791905f0f17c mitigates the lack of external items. We can see the item nodes, but neither markdown docs nor inner stuff will be shown.