cargo

cargo search

Search a registry by text to discover candidate dependencies. Results and versions change over time, and search placement is not evidence that a package is safe or appropriate. Example format: shell. Illustrative only; do not execute against real accounts or unreviewed sources. Expected result (not executed): Up to five matching registry results, subject to availability; no network search was performed. Common mistake: Installing the first result without reviewing maintenance, license and dependency tree.

Formal Syntax & Structure

rust syntaxrust
cargo search [OPTIONS] QUERY

Working Example

Example Snippetrust
cargo search --limit 5 serialization
Rust Reference