Skip to content

cargo check - make possible to use "pipes" instead of files #3892

Open
@Dushistov

Description

@Dushistov

As I understand cargo check works only with files,
so work pattern should looks like:

  1. Enter a couple of symbols
  2. Save file to disk
  3. Run cargo check

A lot of saves, bad for SSD.

So it would be good if cargo check provide interface like:

cargo check --temp-file-name src/lib.rs

in such mode cargo read content of modified src/lib.rs from stdin,
and do cargo check as src/lib.rs contains data that cargo read from stdin.

This helps for example flycheck-rust: flycheck/flycheck-rust#29

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-checkS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions