Wichna
V2EX  ›  Rust

Rust search extension 0.7 发布!在地址栏快速搜索 Rust 文档、attributes、crates 的浏览器插件

  •  
  •   Wichna · Feb 5, 2020 · 2106 views
    This topic created in 2316 days ago, the information mentioned may be changed or developed.

    大家好,

    Rust Search Extension是我从 2018 年开始开发的浏览器插件,方便大家在浏览器地址栏快速搜索官方文档、内置属性、crates 和错误码。目前发布了 v0.7 版!

    目前在 Reddit 上获得了将近 200 个赞,欢迎大家下载体验。

    Reddit 帖子:Announcing rust-search-extension v0.7! Search std docs, crates, error codes, and attributes in your address bar instantly!

    主要功能如下:

    实时搜索官方文档

    • 目前支持搜索官方文档上 std,proc_macro,test 三个 crate 的文档;
    • 支持离线模式搜索本地文档

    实时搜索 top 10K 的 crates

    输入关键字就能搜索下载量排名前 10K 的 crates ( crates.io 上总共 35+K 个 crate ),并且每一个小时会提供最新的 crates 索引文件。打开插件的 popup 页面就能自动更新到最新的 crates 索引。

    在关键字前面拼接!(英文叹号)即可只搜索 crates。

    支持在前面拼接 type 来只搜索该类型的文档

    这些 type 包括:

    • mod
    • struct
    • enum
    • fn
    • trait
    • type
    • static
    • macro
    • const

    比如, 输入fn:asref 只搜索函数里面包含asref的结果,或者输入trait:iterator只搜索 trait 名包括 iterator 的结果。

    搜索内置 rust 属性

    #[derive], #[non_exhaustive]等这些内置属性也能被搜索,但是搜索的结果会和文档或 crates 混在一起,可以在最前面拼接#(井号)过滤掉其他结果。

    搜索 Rust 官方错误码

    全新的官网

    https://rust-search-extension.now.sh 官网上详细列举了各个功能,并配备了 GIF 图片示例。

    Github

    rust-search-extension在 Github https://github.com/Folyd/rust-search-extension开源,欢迎大家提 issue 或 PR !

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5365 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 08:36 · PVG 16:36 · LAX 01:36 · JFK 04:36
    ♥ Do have faith in what you're doing.