Skip to content

cargo search now writes search results to stderr #4203

@Arnavion

Description

@Arnavion

Previously only the "Updating registry" used to be written to stderr. Now the search results are as well.

$ cargo --version
cargo 0.21.0-nightly (50b1c24d1 2017-06-17)

$ cargo search error-chain
    Updating registry `https://github.com/rust-lang/crates.io-index`
error-chain = "0.10.0"           # Yet another error boilerplate library.
...

$ cargo search error-chain 2>/dev/null

With an older version I had lying around:

$ cargo --version
cargo 0.20.0-nightly (13d92c64d 2017-05-12)

$ cargo search error-chain
    Updating registry `https://github.com/rust-lang/crates.io-index`
error-chain = "0.10.0"           # Yet another error boilerplate library.
...

$ cargo search error-chain 2>/dev/null
error-chain = "0.10.0"           # Yet another error boilerplate library.
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions