Skip to content

cargo add and ctrl + c #11386

Closed
Closed
@cavemanloverboy

Description

@cavemanloverboy

Problem

I hit ctrl+c when cancelling a redundant cargo add command, and discovered that my Cargo.toml had been entirely deleted.

Steps

  1. cargo add a crate
  2. ctrl+c before it finishes successfully

Possible Solution(s)

No response

Notes

No response

Version

cargo version --verbose
cargo 1.65.0 (4bc8f24d3 2022-10-20)
release: 1.65.0
commit-hash: 4bc8f24d3e899462e43621aab981f6383a370365
commit-date: 2022-10-20
host: x86_64-unknown-linux-gnu
libgit2: 1.5.0 (sys:0.15.0 vendored)
libcurl: 7.83.1-DEV (sys:0.4.55+curl-7.83.1 vendored ssl:OpenSSL/1.1.1q)
os: CentOS 7.9.2009 (Core) [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions