Cargo: Could not find `Cargo.toml or any parent directory

Created on 12 May 2017  ·  3Comments  ·  Source: rust-lang/cargo

Hi,

I'm in the process of installing Parity on Win 10 32 bit machine.

I follow download and follow instructions from here:

https://parity.io/parity.html

git clone https://github.com/paritytech/parity.git && cd parity

cargo run --release

and get error:

could not find Cargo.toml in C:\Program Files\Ethcore\Parity or any parent directory

all the cargo.toml files are in sub directories.

Why is cargo looking in parent directories?

How to fix?

Most helpful comment

Hey, I got the same error. But I realized that the installation instructions in Pariti's hub isn't accurate. The commands in the section _Build from source_ doesn't clone the repository.

# download Parity code
$ git clone https://github.com/ethcore/parity
$ cd parity

If you go to https://github.com/ethcore/parity you will see the following message:

Moved to https://github.com/paritytech/parity

Then you should run the following command to clone the project:

$ git clone https://github.com/paritytech/parity.git

It worked for me.

All 3 comments

Thanks for the report! Are you sure you're cd'ing into the parity directory? The repository has a top-level Cargo.toml, so in theory this would work

Hey, I got the same error. But I realized that the installation instructions in Pariti's hub isn't accurate. The commands in the section _Build from source_ doesn't clone the repository.

# download Parity code
$ git clone https://github.com/ethcore/parity
$ cd parity

If you go to https://github.com/ethcore/parity you will see the following message:

Moved to https://github.com/paritytech/parity

Then you should run the following command to clone the project:

$ git clone https://github.com/paritytech/parity.git

It worked for me.

Ah that'd do it, thanks for the comment @tregismoreira!

Was this page helpful?
0 / 5 - 0 ratings