huhu / rust-search-extension

🦀 The ultimate search extension for Rust
https://rust.extension.sh
Apache License 2.0
1.21k stars 52 forks source link

Fix search of extern crates #276

Closed yescallop closed 6 months ago

yescallop commented 6 months ago

At this moment, search results for extern crates such as std, test, and proc_macro lead to wrong places because their types are incorrectly set to primitive. This PR fixes the bug.

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rust-search-extension ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 25, 2024 1:40am
Folyd commented 6 months ago

Do you mean ~ search for extern crates? https://rust.extension.sh/#search-external-crate-docs

yescallop commented 6 months ago

I mean typing rs std into the search bar and entering the crate-level doc of std. Currently the search result leads you to a wrong link.

Folyd commented 6 months ago

Can you give an example or screenshot? It works well for me when search std docs.

yescallop commented 6 months ago

Sure. First you input rs std into the search bar: image Press enter, and the extension brings you to the link https://doc.rust-lang.org//primitive.std.html: image