Crates.io | panamax-search |
lib.rs | panamax-search |
version | |
source | src |
created_at | 2024-09-24 19:27:01.750521 |
updated_at | 2024-12-05 02:44:03.065354 |
description | Search crates in a panamax mirror like `cargo search` |
homepage | |
repository | https://github.com/qtfkwk/panamax-search |
max_upload_size | |
id | 1385598 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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:
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