#search #mirror #cargo #cache #io #case-sensitive #panamax

app panamax-search

Search crates in a panamax mirror like cargo search

5 releases

new 0.2.1 Dec 5, 2024
0.2.0 Oct 26, 2024
0.1.2 Sep 25, 2024
0.1.1 Sep 25, 2024
0.1.0 Sep 24, 2024

#179 in Cargo plugins

Download history 335/week @ 2024-09-21 77/week @ 2024-09-28 20/week @ 2024-10-05 5/week @ 2024-10-12 114/week @ 2024-10-26 9/week @ 2024-11-02 1/week @ 2024-11-09 142/week @ 2024-11-30

145 downloads per month

MIT and CC-PDDC licenses

33KB
553 lines

About

Search crates in a panamax mirror like cargo search

Prerequisite: Create a panamax mirror at ~/panamax.

  • panamax-search -P parses the panamax mirror at ~/panamax, or the path given by the -m option, and creates/updates a cache file at ~/panamax/search.json.

    This step enables subsequent searches to load the cache file instead of reparsing the mirror.

  • Search for crates with blah in their name or description: panamax-search blah

    Consider using -s and/or -y options with search commands to enable case sensitive searching or including yanked versions, respectively.

See also:

Notes

  1. Highly recommend running panamax-search -U immmediately following panamax sync so that the cache file is always up-to-date and ready to process any queries as fast as possible. If running panamax sync via cron, recommend creating a script like the following and running that instead.

    #!/usr/bin/env bash
    set -xeo pipefail
    ~/.cargo/bin/panamax sync ~/panamax
    ~/.cargo/bin/panamax-search -Uv
    

Dependencies

~8–18MB
~270K SLoC